Name: kaC94536 Date: 11/25/99
Compilation of the following test with Linux JDK1.2.2 and Sparc/Solaric JDK1.2.2 javac
leads to invalid compilation report.
----------------------------- test.java ------------------------
public class test {
public static void main( String[] argv ) {
int i = byte[].length;
}
}
----------------------- compiling results ----------------------
[kdos@linux-1 ~/test]$ /public/jdk/jdk1.2.2/linux/bin/java -fullversion
java full version "1.2.2-G"
[kdos@linux-1 ~/test]$ /public/jdk/jdk1.2.2/linux/bin/javac test.java
sun.tools.java.CompilerError: codeValue
at sun.tools.tree.Expression.codeValue(Expression.java:424)
at sun.tools.tree.LengthExpression.codeValue(LengthExpression.java:45)
at sun.tools.tree.VarDeclarationStatement.code(VarDeclarationStatement.java:232)
at sun.tools.tree.DeclarationStatement.code(DeclarationStatement.java:110)
at sun.tools.javac.SourceMember.code(SourceMember.java, Compiled Code)
at sun.tools.javac.SourceMember.code(SourceMember.java, Compiled Code)
at sun.tools.javac.SourceClass.compileClass(SourceClass.java:2110)
at sun.tools.javac.SourceClass.compile(SourceClass.java:2039)
at sun.tools.javac.Main.compile(Main.java:567)
at sun.tools.javac.Main.main(Main.java:733)
test.java:0: class test:void main(java.lang.String[])@sun.tools.java.CompilerError:
codeValue
public class test {
^
1 error
[kdos@linux-1 ~/test]$
================================================================
======================================================================
- duplicates
-
JDK-4172968 Compiler Throws Exception handling incorrect programm
- Closed