Home > Tech Tips > Enable boxing errors in Eclipse

Enable boxing errors in Eclipse

September 16th, 2010 Leave a comment Go to comments

Java 1.5 (5.0) and above support autoboxing conversions for primitives and wrapper objects. This will unclutter the code and give more flexibility to programmers, however this can have a negative impact on performance and can cause some unexpected behaviors. (Use boxing with care).

Eclipse by default will throw a warning if there are boxing and unboxing conversions in the code. If you want eclipse to throw an error during these conversions, follow the steps below –

Eclipse –> Window –> Preferences –> Java –> Compiler –> Errors/Warnings


If you want to learn more autoboxing in Java click here


Categories: Tech Tips Tags: ,
  1. No comments yet.
  1. No trackbacks yet.