Summary: | [1.5][compiler] Inconsistency with Javac | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jeff McAffer <jeffmcaffer> |
Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | jarthana, Olivier_Thomann |
Version: | 3.6.1 | ||
Target Milestone: | 3.7 M6 | ||
Hardware: | PC | ||
OS: | Mac OS X - Carbon (unsup.) | ||
Whiteboard: |
Description
Jeff McAffer
2011-01-26 12:51:06 EST
Reproduced. Looks like a bug when we check the type of the array type. Investigating. It would work for a static method. It looks like the enclosing type has to be reifiable and this is not the case here. This was changed to fix bug 130543. javac 1.6 (1.6_24) compile that code fine. javac 1.7 (b126) reports an error and javac 1.5 (1.5_22) reports an error. In this case the enclosing type is not reifiable, so it would make sense to report an error. Looking at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6318240, it seems that this would be a bug in javac 1.6. Srikanth, I let you take a look at this and decide if this needs any action. (In reply to comment #2) > It would work for a static method. It looks like the enclosing type has to be > reifiable and this is not the case here. This was changed to fix bug 130543. > > javac 1.6 (1.6_24) compile that code fine. javac 1.7 (b126) reports an error > and javac 1.5 (1.5_22) reports an error. > > In this case the enclosing type is not reifiable, so it would make sense to > report an error. > Looking at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6318240, it seems > that this would be a bug in javac 1.6. > > Srikanth, I let you take a look at this and decide if this needs any action. Agree with the assessment. No action is called for. Resolving as INVALID. Verified for 3.7M6. |