Summary: | bytecode generated for evaluation with parentheses is wrong | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Chris Tait <chris_tait> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 3.0 M2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Chris Tait
2003-06-03 19:02:56 EDT
Given Java is left associate, (n == null || n.equals("") || true) is strictly equivalent to ((n == null || n.equal("")) || true) however, I agree we have a bug, since in the end it shouldn't make a difference on this very example. The nuance however explains why we have this bug in this case (and in this case only). Similar defect on: (n != null && (n.equal("")) && false)) Fix under testing. Fixed (will release after 3.0M1 is declared) Verified. |