Bug 72152 - [1.5] Missing compiler error
Summary: [1.5] Missing compiler error
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-18 05:07 EDT by David Audel CLA
Modified: 2004-10-27 06:36 EDT (History)
0 users

See Also:


Attachments

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