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 81107 - Editor in state where text is modifiable but cannot be saved
Summary: Editor in state where text is modifiable but cannot be saved
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-25 19:04 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (13.43 KB, application/x-gzip)
2006-07-25 19:05 UTC, _ tboudreau
Details
Source file (16.60 KB, text/plain)
2006-07-25 19:06 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-07-25 19:04:28 UTC
Trunk build 060717.

After a bunch of editing of a bunch of sources, I ended up in the wierd
situation that one perfectly correct line of text was marked "Error: ; expected"
even though it was fine.

So I tried compiling the project.  The compiler said "Not a Statement:  getS"
for the line.  But that wasn't what that line had in it.

Then I noticed that, when I typed, the file was never marked as modified.  So
all my more recent changes to the file were not saved.

Trying to do something, I tried refactoring an inner class, changing its name. 
This refactored the name of the outer class.  I undid the refactoring and got
*most* of my source back - the "pu" from public in the file's class declaration
got deleted.

I'll attach messages.log and the file I was editing.  No idea how I got into
this situation - I had my NetBeans session up over several days.  Probably ought
to be a P2, but leaving it P3 for now since I don't know how to reproduce it
reliably.
Comment 1 _ tboudreau 2006-07-25 19:05:12 UTC
Interestingly, I've seen a similar problem in Retouche builds, but never in a
trunk build before.  Is there something new in the editor?
Comment 2 _ tboudreau 2006-07-25 19:05:37 UTC
Created attachment 32191 [details]
Log file
Comment 3 _ tboudreau 2006-07-25 19:06:34 UTC
Created attachment 32192 [details]
Source file
Comment 4 Miloslav Metelka 2006-07-31 16:15:39 UTC
Well the editor module itself does not maintain the modified flag of the sources
- it's done in openide/editor. There is a bunch of exceptions in the
messages.log from javacore so first reassigning to it for evaluation to be sure
but IMHO the exceptions should not influence maintaining of the modified flag
anyway.
Comment 5 Jan Becicka 2006-10-26 16:26:43 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 6 Quality Engineering 2007-09-20 10:07:35 UTC
Reorganization of java component