Bug 28980 - Null-pointer exception on nested class assert
Summary: Null-pointer exception on nested class assert
Status: RESOLVED DUPLICATE of bug 28750
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 2.1 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-03 13:54 EST by Reid Jones CLA
Modified: 2003-01-17 07:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***