Summary: | Conditional operand types incorrectly rejected by compiler in 1.3 and 1.4 compliance mode | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Fares Abdullah <fares.abdullah> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.2 | ||
Target Milestone: | 3.2 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Fares Abdullah
2006-04-06 06:03:07 EDT
Actually, this may (oddly) be the "correct" behavior. The Sun 1.5 JDK's javac shows the same error in 1.4 compliance mode, but not in default compliance mode (1.5). This bug may be invalid. Yes, this behavior is intended. With Java5, the compiler is now inferring most specific common supertype, in 1.4 you had to tell him explicitly (i.e. inserted a cast to (I) on one operand). Working as intended. |