Bug 72152

Summary: [1.5] Missing compiler error
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Audel CLA 2004-08-18 05:07:47 EDT
build I20040812

1) create X.java
public class X<T> {
  public static class Y {}
}

2) create Z.java
public class Z {
  X<Object>.Y var;
}
3) compile these files

There is no error message with JDT compiler
but javac 1.5 gives one error inside Z.java:
"cannot select a static class from a parameterized type"
Comment 1 Olivier Thomann CLA 2004-08-18 13:31:29 EDT
Update title.
Comment 2 Philipe Mulet CLA 2004-10-12 12:15:01 EDT
Got fixed a while ago, we now issue:

The member type X<Object>.Y cannot be qualified with a parameterized type, since
it is static. Remove arguments from qualifying type X<Object>