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 131068 - AE when form class is renamed
Summary: AE when form class is renamed
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 17:16 UTC by Jana Maleckova
Modified: 2008-03-31 09:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
131068 (1.78 KB, text/plain)
2008-03-25 17:18 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-03-25 17:16:40 UTC
Product Version: NetBeans IDE Dev (Build 200803250006)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
=============
try to refactor - rename form class => AE is thrown. I assigned this issue to openide for evaluation according to stack
trace.

StackTrace:
===========
java.lang.AssertionError
	at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:803)
	at org.netbeans.core.multiview.MultiViewCloneableTopComponent.getEditorPane(MultiViewCloneableTopComponent.java:224)
	at org.netbeans.modules.form.FormEditorSupport.getEditorPane(FormEditorSupport.java:406)
	at org.netbeans.modules.form.JavaCodeGenerator.regenerateInitComponents(JavaCodeGenerator.java:944)
	at org.netbeans.modules.form.JavaCodeGenerator.regenerateCode(JavaCodeGenerator.java:3376)
	at org.netbeans.modules.form.JavaCodeGenerator$FormListener.formChanged(JavaCodeGenerator.java:3845)
	at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:1268)
Comment 1 Jana Maleckova 2008-03-25 17:18:44 UTC
Created attachment 59049 [details]
131068
Comment 2 Jana Maleckova 2008-03-26 14:23:58 UTC
Increasing priority due to consequences in JDA projects.
Renaming of form classes in Java Desktopapplication Project causes compilation errors which cannot be simply removed
because of guarded blocks

But workaround exit. Just check/uncheck "Use Intendation Engine" in advance options and restart corrupted form class.
Then  compilation is possible.
Comment 3 Petr Nejedly 2008-03-26 14:32:43 UTC
Form calls getEditorPane() off AWT thread.
Comment 4 Jan Stola 2008-03-26 20:38:05 UTC
Fixed.

Modified file: http://hg.netbeans.org/main/rev/83407e33cd37
Comment 5 Jana Maleckova 2008-03-31 09:33:19 UTC
verified on

Product Version: NetBeans IDE Dev (Build 200803302302)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)