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 48563 - ClassCastException in org.netbeans.jmi.javamodel.VariableAccess$Impl()
Summary: ClassCastException in org.netbeans.jmi.javamodel.VariableAccess$Impl()
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-07 08:55 UTC by _ gtzabari
Modified: 2007-09-26 09:14 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 _ gtzabari 2004-09-07 08:55:52 UTC
dev build 200409061800
Java 1.5

When fixing imports, I get:

java.lang.ClassCastException:
org.netbeans.jmi.javamodel.VariableAccess$Impl
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LocalVarDeclarationImpl.initChildren(LocalVarDeclarationImpl.java:91)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LocalVarDeclarationImpl.getVariables(LocalVarDeclarationImpl.java:75)
	at
org.netbeans.jmi.javamodel.LocalVarDeclaration$Impl.getVariables(Unknown
Source)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LocalVarDeclarationImpl.getChildren(LocalVarDeclarationImpl.java:81)
	at
org.netbeans.jmi.javamodel.LocalVarDeclaration$Impl.getChildren(Unknown
Source)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.findPotentialClassNames(JavaFixAllImports.java:430)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.findPotentialClassNames(JavaFixAllImports.java:436)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.findPotentialClassNames(JavaFixAllImports.java:436)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.findPotentialClassNames(JavaFixAllImports.java:436)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.findPotentialClassNames(JavaFixAllImports.java:436)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.findPotentialClassNames(JavaFixAllImports.java:436)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.findPotentialClassNames(JavaFixAllImports.java:444)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.addAllNeededImports(JavaFixAllImports.java:93)
	at
org.netbeans.modules.editor.java.JavaFixAllImports.actionPerformed(JavaFixAllImports.java:58)
	at
org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:178)
	at
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
	at
javax.swing.JComponent.processKeyBinding(JComponent.java:2730)
	at
javax.swing.JComponent.processKeyBindings(JComponent.java:2765)
	at
javax.swing.JComponent.processKeyEvent(JComponent.java:2693)
	at
java.awt.Component.processEvent(Component.java:5265)
	at
java.awt.Container.processEvent(Container.java:1966)
	at
java.awt.Component.dispatchEventImpl(Component.java:3955)
	at
java.awt.Container.dispatchEventImpl(Container.java:2024)
	at
java.awt.Component.dispatchEvent(Component.java:3803)
	at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:668)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:916)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:794)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:632)
	at
java.awt.Component.dispatchEventImpl(Component.java:3841)
	at
java.awt.Container.dispatchEventImpl(Container.java:2024)
	at
java.awt.Window.dispatchEventImpl(Window.java:1766)
	at
java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 pzajac 2004-09-07 09:01:54 UTC
reassigned to the java
Comment 2 Daniel Prusa 2004-09-07 13:41:47 UTC
Can you attach a source file on which the bug can be reproduced, please ?
Comment 3 _ gtzabari 2004-09-11 22:43:56 UTC
Sorry, I've since lost the file. If I run across this error again I
will  attach some source code. Sorry :(
Comment 4 Daniel Prusa 2004-10-04 16:57:29 UTC
I am not able reproduce it. If it occurs again, attach correspondent
source file, please.