On Tue, Aug 18, 2009 at 03:57:35PM +0200, Werner Smekal wrote: > Hi Andrew, > > > > > I encountered a possible bug with the openjdk java compilers. Which > > version > > of java are you using? Everything worked for me with gcj. > > The standard java vm provided by Apple for Mac OS X 10.5. I have no > idea to find out which version exactly. According to > > http://developer.apple.com/technotes/tn2002/tn2110.html > > it's > > 10.5 Java for Mac OS X 10.5, Update 1 1.6.0_05 1.6.0_05-b13-120 > > > > > I must admit I am no expert at all on the java JNI stuff and I am > > somewhat > > at a loss at to why this does not work on some compilers. > > > > If I can't fix it then we may need to disable the plslabelfunc call > > for java > > which would be irritating. A very similar thing works fine with the > > mapform > > callbacks. > > I'm of no help (other then testing), since I don't know Java at all.
I think I've now fixed it. This was an issue with objects no longer being valid between the time plslabelfunc was called and the time the callback function was actually used (when plenv is called). I think I have now done this properly by not caching things which may not be valid and by getting a global reference to the class object containing the callback. This now works for me on sun / openjdk implementations as well as gcj. Werner, can you check on Mac OS X as well? Thanks Andrew ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel