tag 351518 confirmed
forwarded 351518 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26103
thanks
On Sun, Feb 05, 2006 at 02:32:57PM +0100, Stephan Michels wrote:
Package: gcjwebplugin
Version: 0.3.2-1
I got following exception if I try the jmol applet for example from
http://jmol.sourceforge.net/demo/dots/ :
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(int) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at gnu.gcjwebplugin.AppletViewer.createApplet(gnu.gcjwebplugin.AppletTag)
(Unknown Source)
at gnu.gcjwebplugin.PluginAppletWindow.setHandle(long) (Unknown Source)
at gnu.gcjwebplugin.PluginAppletViewer.start(java.io.InputStream,
java.io.OutputStream) (Unknown Source)
at gnu.gcjwebplugin.AppletViewer.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Maybe ClassLoader.loadClass() is called with and should throw a
ClassNotFoundException instead. I packaged a little testcase, which
can download from:
http://vern.chem.tu-berlin.de/~stephan/software/jmol-test.tar.gz
This seems to be a gcj-4.0 (and gcj-4.1) bug. Jamvm, cacao and kaffe are
not affected. I filed a small bug report on gcj upstream.
When this is solved upstream we may need to to something in gcjwebplugin
too to handle the excpectd ClassNotFoundException properly.
Cheers,
Michael
--
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
Join the community at http://planet.classpath.org/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]