Summary: | [1.5][compiler] Autoboxing: Type mismatch | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martin Trummer <martin.trummer> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | CC: | bmiller |
Version: | 3.1 | ||
Target Milestone: | 3.1.1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Martin Trummer
2005-07-27 07:12:44 EDT
Same type mismatch problem with array initializers: Short[] shortArray = { 7 }; // Type mismatch Short[] shortArray = new Short[] { 7 }; // Type mismatch Both statements work fine with javac (JDK 1.5.0._02) Indeed, we were only tolerating these in variable declarations. Fixed. Added AutoboxingTest#test112-113 Verified in I20050920-0010 for 3.2M2 Verified using M20050923-1430 for 3.1.1 |