Bugs item #2976836, was opened at 2010-03-25 22:34
Message generated for change (Tracker Item Submitted) made by mgricken
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2976836&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interactions
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mathias Ricken (mgricken)
Assigned to: Nobody/Anonymous (nobody)
Summary: Class.getPackage() generates NullPointerException
Initial Comment:
Compile any user-created class (e.g. Foo) and type in the Interactions Pane:
> new Foo().getClass().getPackage()
java.lang.NullPointerException
or
> Foo.class().getPackage()
java.lang.NullPointerException
The "java.lang.NullPointerException" is printed in dark red, bold error font.
Note that doing Integer.class.getPackage() or new Integer(5).getClass().getPackage() works.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2976836&group_id=44253
|