From: SourceForge.net <no...@so...> - 2006-05-12 19:31:42
|
Bugs item #614605, was opened at 2002-09-25 20:16 Message generated for change (Comment added) made by fwierzbicki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=614605&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Installer Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Daniel L. Rall (dlr) Assigned to: Nobody/Anonymous (nobody) Summary: Java class names cannot contain dashes Initial Comment: According to the JVM, Install.java (?) is compiled to the class named jython-21. The Java Language Specification (JLS) explicitly forbids dashes in class names. See the description of "Java letter" characters in section 3.8 of the JLS: http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#40625 Using Sun's JDK 1.3.1_01 FCS, Jakarta Ant's <java> task pukes on a java.lang.ClassFormatError when trying to invoke the Jython 2.1 installer with the following message: Illegal Class name "jython-21" Note that using <exec> with the java binary seems to work around this most of the time, but also intermittently produces hung builds. I'd be happy to submit a patch correcting this behavior if you can point me to the installer in CVS HEAD. I grepped today's source tree, but didn't find where the installer .class file was built. Perhaps its done via liftoff? ---------------------------------------------------------------------- >Comment By: Frank Wierzbicki (fwierzbicki) Date: 2006-05-12 19:31 Message: Logged In: YES user_id=193969 This is fixed with jython_21 ---------------------------------------------------------------------- Comment By: Daniel L. Rall (dlr) Date: 2002-09-27 22:01 Message: Logged In: YES user_id=6606 Note that invoking the <java> task with fork="true" does not produce the java.lang.ClassFormatError -- it's possible that is caused by Ant's custom class loader (which is the cause of so many problems with Ant, bleh). ---------------------------------------------------------------------- Comment By: Samuele Pedroni (pedronis) Date: 2002-09-26 21:13 Message: Logged In: YES user_id=61408 The only way to solve: (Extra bytes at the end of the class file) would be to use a plain jar. That would be less convenient for installing with 1.1 JVMs, maybe that's less relevant now, otherwise we would have to supply both. ---------------------------------------------------------------------- Comment By: Daniel L. Rall (dlr) Date: 2002-09-26 15:55 Message: Logged In: YES user_id=6606 I tried out the renamed .class file uploaded by Samuele Pedroni. Even though he also patched the name of the actual class inside the binary to the name of .class file, the JVM is rejecting the bytecode with the following error: java.lang.ClassFormatError: jython_21 (Extra bytes at the end of the class file) I've attached the full output. ---------------------------------------------------------------------- Comment By: Finn Bock (bckfnn) Date: 2002-09-26 07:05 Message: Logged In: YES user_id=4201 The name of the generated installerclass is specified in the installer/liftoff.props file. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=614605&group_id=12867 |