Bug 28980

Summary: Null-pointer exception on nested class assert
Product: [Eclipse Project] JDT Reporter: Reid Jones <reid.a.jones>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Reid Jones CLA 2003-01-03 13:54:16 EST
Eclipse 2.1 M4 generates a null-pointer exception in the JDT core 
(ClassFile.java) while compiling code that has an assert in a nested class. 
This behavior is repeatable on both PC and Sun platforms.

Using 1.4 VM compatibility the following code generates the null-pointer 
exception:

public class AssertTest {
   public AssertTest() {}
 
  public class InnerClass {
      InnerClass() {
        assert(false);
      }
   }
   
}
Comment 1 Olivier Thomann CLA 2003-01-04 13:02:14 EST

*** This bug has been marked as a duplicate of 28750 ***