Summary: | Conditional assignment error | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eric Bodden <eric> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Eric Bodden
2004-11-03 07:56:42 EST
Javac 1.4.2 issues an error as well: X.java:9: incompatible types for ?: neither is a subtype of the other second operand: X.B third operand : X.C A a = false ? new B() : new C(); ^ 1 error I suspect you did compare to javac 1.5.0, which now accepts it, like we do when toggle into 1.5 compliant mode. Please reopen if wrong. |