Dear Octave developers,
I had used the "java" package some time ago to interact with my Java class library from Octave. Recently I upgraded to a more recent version of Octave (3.2) and the java package 1.2.6. Now I have two issues: ----- First: ----- I notice that the docs for this package are almost nonexistent. I can only find a terse list of functions, on Octave-Forge, which declares most fucntions with a "Not implemented." note. For example http://octave.sourceforge.net/java/overview.html says: java_invoke - not implemented It is not clear, why java_invoke is working then. QUESTION: Is it in a different package or is the documentation incomplete? Am I looking in the wrong place? BTW: is there any documentation with examples etc how to use the java package? Should I prepare and submit something like that? ----- Second: ----- In the previous releasees I was able to access public array elements in my classes directly: Java: in a class: ... public double Alfa[] = new double[100]; ... Octave: disp ( myInstance.Alfa(1) ); When I try to run my old code with Octave 3.2, I receive an error message: %% try to access array element of field directly fails: > myInstance.Alfa(1) error: [java] java.lang.NoSuchMethodException: Alfa %% check what my public field is (not a method): > myInstance.Alfa <Java object: double[]> %% now I assign the public field to an Octave variable: > a = myInstance.Alfa a = <Java object: double[]> %% finally try to access the Octave varaible and voila: > a(1) ans = 0.034907 > While the workaround of assigning Java array fields to a temporary Octave variable works, it would be more convenient to be able to access the array elements directly. QUESTION: Can I do this and how? Thank You for your time and effort, Martin + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + | DLR Braunschweig : mailto:[email protected] | | Inst. of Aerodynamics AS : http://www.dlr.de/ | | Dr. Martin Hepperle : | | Lilienthalplatz 7 : Fon: +49 531 295 3337 | | D-38108 Braunschweig : Fax: +49 531 295 2320 | | Germany : | + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + ------------------------------------------------------------------------------ _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
