Community
Participate
Working Groups
Using the v2.1.0 M4 Eclipse Linux/GTK (Build Id: 200212181304) and Java 1.4 compliant compiling, the JavaBuilder fails with a NullPointerException when trying to process a java source file with an inner class which uses assert statements. The exception is thrown down in... java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.ClassFile.addFieldInfo(ClassFile.java:434) at org.eclipse.jdt.internal.compiler.ClassFile.addFieldInfos(ClassFile.java:579) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:694) ... Produced by as trivial an example as... public class Foo { public Foo() { super(); assert (true) : "always true"; // no problem here } public class Bar { public Bar() { super(); assert (true) : "always true"; // build fails here } } }
*** This bug has been marked as a duplicate of 28750 ***