Summary: | [1.5][compiler] Should autoboxing handle this equal expression? | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.2 | ||
Target Milestone: | 3.2 M3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Olivier Thomann
2005-08-12 12:08:30 EDT
Comparison operators only perform boxing if exactly one operand type is primitive. However, other operations are more tolerant: public class X { float bar(Long l, Float f) { return this == null ? f : l; // both are unboxed to float } } Added AutoboxingTest#test116 |