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 87460 - "IAE: can't find specified class: org.openide.windows.TopComponent" trying to drag editor tab
Summary: "IAE: can't find specified class: org.openide.windows.TopComponent" trying to...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2006-10-18 20:54 UTC by Jesse Glick
Modified: 2008-12-22 19:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (3.20 KB, text/plain)
2006-10-18 20:55 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2006-10-18 20:54:41 UTC
Tried to drag a (form) editor tab to a new position in the editor area. Got an
exception instead. Dev 061014.
Comment 1 Jesse Glick 2006-10-18 20:55:08 UTC
Created attachment 35348 [details]
Stack trace
Comment 2 Marian Mirilovic 2006-10-19 09:48:13 UTC
Jesse, 
it works for me in NB Dev(200610181800) & JDK 6.0(b101)
Comment 3 Jesse Glick 2006-10-19 18:05:26 UTC
I cannot reproduce it either.
Comment 4 David Simonek 2006-10-23 14:53:04 UTC
I studied the code around the exception but I can't find anything bad. Mime type
for TopComponent transferable is defined as a constant and used
everywhere...there must be smt strange elsewhere, but I can't find out what.
Closing, please reopen if problem reappers, thanks.
Comment 5 Jesse Glick 2006-10-23 16:44:08 UTC
Looks like you are relying on the thread context class loader being able to find
TopComponent.Cloneable. While this should be true of course, it is not very
robust. Please never use the DataFlavor(String,String) constructor in NB code.
Always pass a ClassLoader parameter, thus:

new DataFlavor(MIME_TOP_COMPONENT_CLONEABLE, null,
TopComponent.Cloneable.class.getClassLoader())
Comment 6 David Simonek 2006-10-25 16:37:29 UTC
thanks Jesse, done:

Checking in TopComponentDragSupport.java;
/cvs/core/windows/src/org/netbeans/core/windows/view/dnd/TopComponentDragSupport.java,v
 <--  TopComponentDragSupport.java
new revision: 1.24; previous revision: 1.23