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 47229 - Errors trying to edit AntProjectDataLoader.java
Summary: Errors trying to edit AntProjectDataLoader.java
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-14 16:53 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The file in its current state (3.14 KB, text/plain)
2004-08-14 16:54 UTC, Jesse Glick
Details
My current log file; exceptions for #47229 begin with 040813 log; other javacore/MDR bugs earlier, but I don't know what causes them, just the usual instability (250.95 KB, text/plain)
2004-08-14 16:56 UTC, Jesse Glick
Details
Log from a different user dir (20.24 KB, text/plain)
2004-08-14 16:56 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-08-14 16:53:11 UTC
Whenever I try to edit this file (ant module), I
get some kind of error from MDR, javacore, etc.
Maybe some parser bug? The log entries don't
explain. 040813 custom build.

Starting with APDL.java rev. 1.22 (clean), I add

private static final String KNOWN_ANT_FILENAME =
"build.xml"; // NOI18N

and then use Ctrl-I to try to override
findPrimaryFile - and start getting exceptions,
repository inconsistency errors, etc.
(inconsistent storage, stack trace from
SemiPersistentElement.fixMembers, object with
MOFID ... no longer exists, NPE from
ASTProvider.createBounds, etc.). In fact one time
it tried to insert the override method into the
middle of another method!

Delete my mdrcache and restart - no better. NPE
from MultipartIdImpl.getDiff, Ctrl-I shows only
methods of Object, conc mod from
LightAttrList.setInnerList, etc.

Try from a different userdir with a clear cache -
still no good. Open file in attached state;
Ctrl-I; shows correct list of methods to override;
select getShared (just for testing); does it
correctly; press Ctrl-Z to revert change; then
there are errors (NPE from ASTProvider.createBounds).
Comment 1 Jesse Glick 2004-08-14 16:54:00 UTC
Created attachment 16817 [details]
The file in its current state
Comment 2 Jesse Glick 2004-08-14 16:56:02 UTC
Created attachment 16818 [details]
My current log file; exceptions for #47229 begin with 040813 log; other javacore/MDR bugs earlier, but I don't know what causes them, just the usual instability
Comment 3 Jesse Glick 2004-08-14 16:56:29 UTC
Created attachment 16819 [details]
Log from a different user dir
Comment 4 Martin Matula 2004-08-16 13:23:28 UTC
There was a bug that occurred if you edited the file for some time and
then wanted to perform some operation on that source that accesses the
JMI API. Positions were wrong and the whole AST for the file (which
JMI operates on) was not refreshed for the edited file. This is now
fixed so hopefuly this bug is no longer there.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v
 <--  ResourceImpl.java
new revision: 1.26; previous revision: 1.25
done
Comment 5 Jiri Prox 2005-07-11 16:50:41 UTC
Jesse, can you, please, verify this issue? Thanks.
Comment 6 Jesse Glick 2005-07-12 23:19:42 UTC
No way to verify.
Comment 7 Milan Kubec 2005-07-13 08:02:41 UTC
No way to verify = closed.
Comment 8 Quality Engineering 2007-09-20 12:12:06 UTC
Reorganization of java component