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 76135

Summary: ISE "Recursive call to getElementInfo()" after fixing imports
Product: java Reporter: _ tboudreau <tboudreau>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Log file

Description _ tboudreau 2006-05-10 01:55:49 UTC
Build 060407.  I created a new module project in /tmp.  I also had the project 
core/swing/tabcontrol open.  I created a class in my module
public class NoTabsTabDisplayerUI extends TabDisplayerUI {

As soon as I fixed the imports, the following exception began being thrown 
again and again:

java.lang.IllegalStateException: Recursive call to getElementInfo()
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElemen
tInfo(SemiPersistentElement.java:202)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getIntern
alForm(SemiPersistentElement.java:849)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree
(MetadataElement.java:515)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getParser
(SemiPersistentElement.java:844)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getFeaturePosition
(ResourceImpl.java:460)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.FeatureImpl.getPosition
(FeatureImpl.java:270)
	at org.netbeans.modules.javacore.JMManager.getElementPosition
(JMManager.java:771)
	at org.netbeans.modules.javacore.JMManager.getElementPosition
(JMManager.java:757)
	at org.netbeans.modules.java.JavaEditor$JavaEditorComponent.findElement
(JavaEditor.java:1342)
	at org.netbeans.modules.java.JavaEditor$JavaEditorComponent.createNode
(JavaEditor.java:1290)
	at org.netbeans.modules.java.JavaEditor$JavaEditorComponent.access$900
(JavaEditor.java:1210)
	at org.netbeans.modules.java.JavaEditor$JavaEditorComponent$1$1.run
(JavaEditor.java:1262)
	at org.openide.util.Mutex.readAccess(Mutex.java:215)
	at org.netbeans.modules.java.JavaEditor$JavaEditorComponent$1.run
(JavaEditor.java:1260)
	at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:514)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:947)
Comment 1 _ tboudreau 2006-05-10 02:01:25 UTC
After restart, the exception is no longer thrown, but code completion of JDK 
classes fails - for example, Fix Imports cannot find java.awt.Rectangle.
Comment 2 _ tboudreau 2006-05-10 02:02:55 UTC
Created attachment 30315 [details]
Log file
Comment 3 Jan Becicka 2006-05-10 09:13:11 UTC

*** This issue has been marked as a duplicate of 63732 ***
Comment 4 Quality Engineering 2007-09-20 12:02:07 UTC
Reorganization of java component