Bug 78122

Summary: [compiler] Detect and visually indicate auto-boxing in Jdk1.5 code
Product: [Eclipse Project] JDT Reporter: BenH <ben_hutchison>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse, eclipse
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: All   
OS: All   
Whiteboard:

Description BenH CLA 2004-11-08 17:46:12 EST
Putting this good idea lifted from Cedric Beusts blog into bugzilla so it 
doesnt get lost:

"Autoboxing 
I have stayed away from autoboxing so far, probably because I have a vague 
feeling of losing control of the performance of my code. I don't think it is 
justified, though, so autoboxing can come in handy and make your code a little 
bit more readable. I think I would encourage developers to flag their code 
when such autoboxing is happening, and I am pretty sure that IDE's will soon 
be able to do the same."
Comment 1 Philipe Mulet CLA 2004-11-09 09:44:54 EST
This is something we had in mind, like we do optionally warn when performing
innerclass access emulation. Another one would be to warn when inserting generic
cast (implicitly during compile).
Comment 2 Philipe Mulet CLA 2004-12-17 09:10:05 EST
*** Bug 80457 has been marked as a duplicate of this bug. ***
Comment 3 Frederic Fusier CLA 2004-12-17 13:19:20 EST
*** Bug 68269 has been marked as a duplicate of this bug. ***
Comment 4 Philipe Mulet CLA 2004-12-19 09:37:13 EST
 Added optional compiler diagnosis when boxing/unboxing conversion is performed.
Corresponding problem IDs are: IProblem.BoxingConversion and
IProblem.UnboxingConversion.

* COMPILER / Reporting Boxing/Unboxing Conversion
*    When enabled, the compiler will issue an error or a warning whenever a
boxing or an unboxing
*    conversion is performed.
*     - option id:         "org.eclipse.jdt.core.compiler.problem.autoboxing"
*     - possible values:   { "error", "warning", "ignore" }
*     - default:           "ignore"
Comment 5 Philipe Mulet CLA 2004-12-19 09:38:04 EST
Fixed
Comment 6 Jerome Lanneluc CLA 2005-02-15 05:19:23 EST
Verified in I20050214