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 179619 - Unable to edit Java classes. CannotUndoException
Summary: Unable to edit Java classes. CannotUndoException
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: J Bachorik
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-01-18 04:29 UTC by Alexandr Scherbatiy
Modified: 2010-02-03 04:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (111.12 KB, application/octet-stream)
2010-01-18 04:29 UTC, Alexandr Scherbatiy
Details
Files used to test (771 bytes, application/zip)
2010-01-26 02:27 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-01-18 04:29:15 UTC
netbeans-6.8-201001171801-javafx-full.zip 

  Product Version         = NetBeans IDE 6.8 (Build 201001171801)
(#434511277c30)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun



-  Create Java interface:
------------------MyInterface.java ------------------
public interface MyInterface<T extends Comparable> {
     T getType(T t);
}
-----------------------------------------------------

- Create JavaFX class
------------------Vector.fx---------------------------
class Vector extends MyInterface {

}
-----------------------------------------------------
- Implement all abstarct methods
- Press <Ctrl> and click on MyInterface in the Vector.fx file (Go to source)

Unable to edit Java classes.

There will be exception in IDE log file

javax.swing.undo.CannotUndoException
	at javax.swing.undo.AbstractUndoableEdit.undo(AbstractUndoableEdit.java:93)
	at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:42)
	at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(BaseDocument.java:2181)
	at org.netbeans.editor.BaseDocument.breakAtomicLock(BaseDocument.java:1814)
	at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:363)
	at org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:1185)
	at org.netbeans.modules.editor.java.JavaKit$JavaInsertBreakAction.actionPerformed(JavaKit.java:513)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:336)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2886)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
	at java.awt.Component.processEvent(Component.java:6040)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
	at java.awt.Component.dispatchEventImpl(Component.java:4502)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Alexandr Scherbatiy 2010-01-18 04:29:47 UTC
Created attachment 93367 [details]
IDE log file
Comment 2 J Bachorik 2010-01-26 02:27:08 UTC
Product Version: NetBeans IDE 6.8 (Build 201001252127)
Java: 1.6.0_18; Java HotSpot(TM) 64-Bit Server VM 16.0-b13
System: Linux version 2.6.31-17-generic running on amd64; UTF-8; en_US (nb)

I followed the instructions but I was not able to reproduce the problem.
Comment 3 J Bachorik 2010-01-26 02:27:48 UTC
Created attachment 93543 [details]
Files used to test
Comment 4 Alexandr Scherbatiy 2010-02-03 04:24:09 UTC
Verified in NetBeans-JavaFX-Soma: #140