Summary: | [1.5][compiler] unecessary cast in case of boxing | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rémi Forax <forax> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Rémi Forax
2005-06-15 09:57:25 EDT
*** Bug 100218 has been marked as a duplicate of this bug. *** There is no boxing there, it is either using PrintStream#println(char) or PrintStream#println(int). Now, there shouldn't be any warning signalled here. Actually, there is some boxing, but the example is wrong, it should be using #printf(...) instead of #println(...) public class X { public static void main(String[] s) { char c = 'a'; System.out.printf("%d\n",(int)c); } } oups, you are right, it's a typo when i report the bug. Rémi Changed diagnosis to tolerate this boxing scenario. Added AutoboxingTest#test114-115. Released both in 3.1.x and 3.2 streams. Verified for 3.1.2 in M20060109-0800. Verified for 3.2M4 in I20051215-1506 |