This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 102664 - NullPointerException when automatically implementing interface methods
Summary: NullPointerException when automatically implementing interface methods
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 19:48 UTC by bsimonssays
Modified: 2008-02-25 16:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bsimonssays 2007-04-26 19:48:39 UTC
New install with all updates.  Also have the mevenide plugin installed.  I
implement an interface and use the autocorrect feature to automatically
implement the methods.  I get the following exception:

java.lang.NullPointerException
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.AnnotationImpl.duplicate(AnnotationImpl.java:366)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.duplicateList(MetadataElement.java:1975)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MethodImpl.duplicate(MethodImpl.java:364)
	at
org.netbeans.modules.java.tools.JMIInheritanceSupport.overrideMethod(JMIInheritanceSupport.java:177)
	at org.netbeans.modules.java.tools.OverrideAction$1.run(OverrideAction.java:134)
	at
org.netbeans.modules.javacore.internalapi.JavaMetamodel.invokeAfterScanFinished(JavaMetamodel.java:215)
	at
org.netbeans.modules.java.tools.OverrideAction.performAction(OverrideAction.java:182)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:537)
	at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53)
	at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:533)
	at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:880)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2809)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
	at java.awt.Component.processEvent(Component.java:5331)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4021)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3869)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
	at java.awt.Component.dispatchEventImpl(Component.java:3907)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3869)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Quality Engineering 2007-09-20 09:56:57 UTC
Reorganization of java component
Comment 2 Jan Becicka 2008-02-25 16:17:57 UTC
This issue is not valid in current builds any more. Java support was completely
redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.