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 11878 - UNWANTED RENAMING just edited file
Summary: UNWANTED RENAMING just edited file
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-02 14:41 UTC by dmladek
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 dmladek 2001-05-02 14:41:30 UTC
[NB32-38, RC4]
jdk1.3, rh70
===============

This problem is serious, but I don't have exact reprodction:-(
And it happens to me more then it is healthy.

Description:
============
If you edit  java file which is named after your public "Main" class"
and this file contains also <default> "Secondary" class.
Sometimes happens that after compiling and if there occures compiled errors,
this file is renamed after "Secondary" class which is nonsence.

I'm sorry I can give you accurate info.
Comment 1 Jan Becicka 2001-05-04 14:24:50 UTC
I think, I have found reproduction:
1. Create class public A (in file A.java)
2. Create <default> class B (in file A.java)
3. Copy class B and paste it before class A:
class B {
}
public class A {
}
4. file A.java is renamed to B, regardless of the fact, that the public class 
is still "A"
Comment 2 Jan Chalupa 2001-05-05 23:20:24 UTC
Target milestone -> 3.3
Comment 3 Tomas Hurka 2001-05-07 16:58:27 UTC
Fixed in main trunk.

/cvs/java/src/org/netbeans/modules/java/parser/BaseElementInfo.java,v  <--  
BaseElementInfo.java
new revision: 1.6; previous revision: 1.5
done
Comment 4 Jan Becicka 2001-05-18 08:38:31 UTC
*** Issue 12097 has been marked as a duplicate of this issue. ***
Comment 5 Jan Becicka 2001-05-30 16:47:24 UTC
[dev-199] Verified
Comment 6 Jan Becicka 2001-06-19 15:00:33 UTC
[ffj30] Verified
Comment 7 Quality Engineering 2003-07-01 13:20:03 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.