Re: [abc-users] abc produces broken class files

From: Pavel Avgustinov <pavel.avgustinov_at_magd.ox.ac.uk>
Date: Wed, 26 Mar 2008 20:29:53 +0000

Hi Thomas,

That looks really strange; is the project you're trying to compile
available for download somewhere? We'd be happy to fix this issue if we
can reproduce it, so any instructions to achieve that would be very
welcome...

Cheers,
- Pavel

Thomas Pawlitzki wrote:
> Hello,
>
> I tested the new frontend abc.ja on an old project of mine. The
> frontend is now able to compile the project what the polyglot frontend
> can not.
>
> But after the transforming i receive odd errors from Jasmin
>
> --------------------snipp------------------------
> [java] Jasmin:1: Warning - Syntax error.
> [java] .source D:\
> [java] ^
> [java] Jasmin:1: Error - Couldn't repair and continue parse.
> [java] .source D:\
> [java] ^
> [java] Jasmin: Found 2 errors
> [java] Writing to lobby/classes\chat\client\SmilieDialog$1Anonymous0.class
> [java] Jasmin:1: Warning - Syntax error.
> [java] .source D:\
> [java] ^
> [java] Jasmin:1: Error - Couldn't repair and continue parse.
> [java] .source D:\
> [java] ^
> [java] Jasmin: Found 2 errors
> [java] Writing to lobby/classes\chat\client\SmilieDialog.class
> [java] Jasmin:1: Warning - Syntax error.
> [java] .source D:\
> [java] ^
> [java] Jasmin:1: Error - Couldn't repair and continue parse.
> [java] .source D:\
> [java] ^
> [java] Jasmin: Found 2 errors
> [java] Writing to lobby/classes\chat\client\Client$1Anonymous0.class
> [java] Jasmin:1: Warning - Syntax error.
> [java] Writing to
> lobby/classes\chat\client\Client$OwnActionListener$1.class
> [java] Writing to lobby/classes\chat\client\Client$OwnActionListener.class
> [java] Writing to lobby/classes\chat\client\Client$OwnKeyListener$2.class
> [java] .source D:\
> [java] ^
> [java] Jasmin:1: Error - Couldn't repair and continue parse.
> [java] .source D:\
> [java] ^
> [java] Jasmin: Found 2 errors
> [java] Jasmin:1: Warning - Syntax error.
> [java] .source D:\
> [java] ^
> [java] Writing to lobby/classes\chat\client\Client$OwnKeyListener.class
> [java] Jasmin:1: Error - Couldn't repair and continue parse.
> [java] .source D:\
> [java] Writing to lobby/classes\chat\client\Client.class
> ...
> -----------------------snapp-------------------------------
>
> After the compilation i tried to run the generatd class files and i
> receive the following error:
>
> D:\workspaces\abc-head>java -cp lobby\classes chat.server.Server
> Exception in thread "main" java.lang.ClassFormatError: Truncated class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
> What is the sourc of this error?
>
> Greetings,
> Thomas
>
>
Received on Wed Mar 26 2008 - 20:32:18 GMT

This archive was generated by hypermail 2.2.0 : Thu Mar 27 2008 - 06:40:11 GMT