Cem, and the list,
>I don't know of a C++ solution to your problems, but if I might ask you
>this: can you mix the Java and C++ code you have together? Using the
>JNI you should be able to access the Java parser/whatever from C++.
I've recently found a problem on both Solaris and Redhat Linux using
JNI with the j2sdk version 1.3. After digging into the Java bug reports,
I found that Sun has posted a showstopper for us.
We found that Java was interfering with C++ exceptions, preventing them
from being caught by the C++ code, then complaining that an uncaught
exception had occurred in the JNI interface, and aborting.
Sun appears to be claiming that the Java language spec does not guarantee
features like exception handling or RTTI will work with JNI, and claims
that since the spec does not require it, there will be no fix for this.
Earlier versions of the j2sdk did not cause this problem. Version 1.2.2_05a
in particular works fine with the same code.
Please see java bug reports 4407211 and 4389172 for details. If Java
cannot support all C++ features, this drastically reduces the usefulness
of JNI. For our purposes, it makes it almost unusable.
I'm very surprised at Sun for marking these bugs 'will not be fixed.'
You'd think they would want to encourage companies to use their language
tools to build enterprise solutions.
--Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]