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 46854 - Can't use Tools->Synchronize (IllegalStateException)
Summary: Can't use Tools->Synchronize (IllegalStateException)
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-03 13:52 UTC by Petr Nejedly
Modified: 2007-09-26 09:14 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 Petr Nejedly 2004-08-03 13:52:51 UTC
Create a nex class, change its super in editor to
SAXParserFactory, import it, invoke
Tools->Synchronize.

ISE is thrown:
java.lang.IllegalStateException: The model was
modified. Unable to return start offset.
Comment 1 Petr Nejedly 2004-08-03 13:57:27 UTC
After I saved the file and invoked Tools->Synchronized again, it worked.
Comment 2 Petr Nejedly 2004-08-03 14:00:31 UTC
Tried again on a new file. It works after save, but only if you set
"no confirmation" in the synchronize dialog first.
Comment 3 Jan Becicka 2004-08-03 15:21:09 UTC
What build did you use?

This issue could be fixed this commit:

User: mmatula 
  Date: 04/08/02 04:52:35

  Modified:    javacore/src/org/netbeans/modules/javacore
                        ExclusiveMutex.java
  Log:
  changed files must be parsed even when starting a nested transaction
  
  Revision  Changes    Path
  1.19      +19 -20   
java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java


Comment 4 Petr Nejedly 2004-08-03 16:38:02 UTC
OK, my sources were two days old.
It seems it is already fixed in current sources.
Comment 5 Petr Nejedly 2004-08-04 10:20:41 UTC
v
Comment 6 Quality Engineering 2007-09-20 09:46:57 UTC
Reorganization of java component