Bug 78122 - [compiler] Detect and visually indicate auto-boxing in Jdk1.5 code
Summary: [compiler] Detect and visually indicate auto-boxing in Jdk1.5 code
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 68269 80457 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-08 17:46 EST by BenH CLA
Modified: 2005-02-15 05:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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