I've hit my first glitch... unfortunately too fuzzy at this point to
turn into a crisp defect report. But maybe the fuzzy description will be
illuminating :-)...
I use the generic java compiler, gjc (moving to JDK1.2 also required me
to move to a new gjc, so I've got two new suspects in this mystery).
When I build my complete application with gjc, all is well. When I
recompile only part of it -- necessitated, say, by trivial changes to a
single source file -- I end up with code that the class loader doesn't
like very much. Here's traceback from app startup:
Exception in thread "main" java.lang.ClassFormatError: MyApp (Invalid
start_pc/length in local var table)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Compiled Code)
at java.security.SecureClassLoader.defineClass(Compiled Code)
at java.net.URLClassLoader.defineClass(Compiled Code)
at java.net.URLClassLoader.access$1(Compiled Code)
at java.net.URLClassLoader$1.run(Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
or, running without the JIT compiler:
Exception in thread "main" java.lang.ClassFormatError: MyApp (Invalid
start_pc/length in local var table)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:403)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:280)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:275)
at java.lang.ClassLoader.loadClass(ClassLoader.java:237)
(I'm not loading any classes from URLs at startup, but I suppose this
might be a common path for all class loading?)
It'll probably take considerable sleuthing to point a finger at JDK1.2
vs GJ, and I'm sorry I can't provide any crisper information at the
moment... but maybe this will trigger an "aha!" somewhere.
Nathan
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]