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.
Summary: | AssertionError when editing an Ant script | ||
---|---|---|---|
Product: | projects | Reporter: | Martin Entlicher <mentlicher> |
Component: | Ant | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | mfukala, pjiricka |
Priority: | P3 | Keywords: | RANDOM, THREAD |
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 68650 | ||
Bug Blocks: | |||
Attachments: | AssertionError: BaseKit.install() incorrectly called from non-AWT thread. |
Description
Martin Entlicher
2005-10-25 11:25:30 UTC
Created attachment 26307 [details]
AssertionError: BaseKit.install() incorrectly called from non-AWT thread.
Build #051021. I guess the fix should be to switch to AWT thread somewhere, but it is not apparent where. javax.swing.JEditorPane.setEditorKit() should be called in AWT, so the switch should probably be done somewhere in CloneableEditor or CloneableEditorSupport. However, the Javadoc of these classes does not state which methods are expected to be called from AWT and which can be called from RP, reassinging to openide to clarify. Don't call getOpenedPanes outside of AWT, it may need to construct the UI. So can it be fixed on the Ant's side? If not reassign back I can try to workaround it in XmlKit. And it would also be useful to clarify the Javadoc for getOpenedPanes to say it must be called in AWT. Without knowing how to reproduce, I can try a fix and hope I don't deadlock anything... Fixed w/ issue #58194. |