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 46293 - An annotation exception is thrown when renaming a java file in a project
Summary: An annotation exception is thrown when renaming a java file in a project
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-19 15:18 UTC by Marek Fukala
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The annotation stacktrace (1.41 KB, text/plain)
2004-07-19 15:19 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2004-07-19 15:18:46 UTC
[20040718]
I have encountered the problem working with a
servlet in a web project. According to the
stacktrace it seems the problem not directly
connected to webapps. Someone from VCS - please
evaluate.

to reproduce:
1) have a versioned web project
2) create a servlet -> add & commit it
3) rename it
4) wait for deployment descriptor synchronization
dialog -> confitm changes
5) wait for the refactoring dialog - do refactoring
=> an annotation is shown saying: The file
WebApplication1/src/servlets/Test.java does not
exist as a local copy. Check it out first.

I do not see any real impact - it seems to be
rather a cosmetic issue.

The whole stacktrace is attached.
Comment 1 Marek Fukala 2004-07-19 15:19:06 UTC
Created attachment 16322 [details]
The annotation stacktrace
Comment 2 Martin Entlicher 2004-07-20 10:37:19 UTC
The original file is presented as a virtual node after rename.
The FileObject representing this node is set to be "virtual". Java
should not try to parse the virtual file objects, because the source
does not exist and it will get IOException.
Comment 3 Jan Becicka 2004-07-22 10:22:12 UTC
Fixed.

Checking in
javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.13; previous revision: 1.12
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/java/JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <-- 
JavaNode.java
new revision: 1.109; previous revision: 1.108
done
Comment 4 Quality Engineering 2007-09-20 12:19:09 UTC
Reorganization of java component