I recently read that it is possible to use Java methods in a class by using the language attribute.
I tried this:
Method JavaTest() As %String [ Language = java, WebMethod ]
{
string tmp = "Hello World";
return tmp;
}
The code compiles, but when the method is invoked it returns an error:
ERROR #5002: Cache error: <METHOD DOES NOT EXIST>
As far as I can tell, this facility exists for when you use the %Projection.Java class to create a Java class from Cache. At any rate, if you do use a Java projection then the method does actually get projected to the Java class that is created.
generates too much Java to show all of it, but it includes
and