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 88577 - AE when opening *.class file using CLI
Summary: AE when opening *.class file using CLI
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 11:07 UTC by Tomas Danek
Modified: 2007-01-05 14:52 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 Tomas Danek 2006-11-03 11:07:18 UTC
NetBeans IDE Dev (Build 200611011900)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

1) nb --open c:\Main.class
2) AE ... intentional? according to issue 57364, *.class filetype should be
associated with ide, but i can't imagine what's expected behaviour?! class
structure displayed in navigator?

java.lang.AssertionError
	at org.openide.actions.ToolsAction.actionPerformed(ToolsAction.java:96)
[catch] at
org.netbeans.modules.openfile.DefaultOpenFileImpl$3.run(DefaultOpenFileImpl.java:492)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Jaroslav Tulach 2006-11-24 08:30:25 UTC
The expected behaviour is to open associated java file and it works for 
classes inside project.
Comment 2 Jaroslav Tulach 2006-11-24 08:55:32 UTC
#88577: Ignoring ToolsAction if it is a default one, making sure failures 
printed on the status line when handling a "cookie" open stays visible


utilities/src/org/netbeans/modules/openfile/DefaultOpenFileImpl.java,v  <--  
DefaultOpenFileImpl.java
new revision: 1.22; previous revision: 1.21
Comment 3 Tomas Danek 2007-01-05 14:52:10 UTC
Works exactly as described, verified 200601214