
Thursday November 15, 2007
Highlight Boxing Unboxing Varargs module on NetBeans Plugin Portal
I have uploaded the Highlight Boxing Unboxing Varargs module to the NetBeans Plugin Portal. It enables highlighting of occurences of boxing, unboxing and varargs in the Java editor. Obviously this only works for files belonging to projects with source level set to 1.5+.
UPDATE: The download link on the Plugin Portal has now been fixed.
The Java compiler silently applies the boxing and unboxing to the primitive types and the corresponding reference types as needed. This module reveals where that may be happening in your code. This module may help you diagnose mysterious NPEs when a reference type null value is attempted to be unboxed at runtime (well the example in the screen shot is not the best ;) ). To turn the highlighting on or off use the toggle buttons on the toolbar. Here is a screen shot:

Jan Lahoda contributed to this module.
Sources
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
Posted by sandipchitale
( Nov 15 2007, 03:19:46 PM PST ) Permalink
Trackback URL: http://blogs.sun.com/scblog/entry/highlight_boxing_unboxing_varargs_module