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 106135 - ``New Class'' wizard doesn't check on the fly for duplicate classes if 2+ source folders are specified
Summary: ``New Class'' wizard doesn't check on the fly for duplicate classes if 2+ sou...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Linux
: P4 blocker with 1 vote (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-08 14:32 UTC by bass
Modified: 2009-11-02 10:59 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 bass 2007-06-08 14:32:14 UTC
If a java project has 2 or more source folders, the on-the-fly check for
possibly duplicate classes is performed by the wizard only within the same
source folder the new class is being created in.

Say, I have the following dir/package structure:

src/
    org.netbeans (package)
    org.netbeans.Foo (class)

src-2/
    org.netbeans (package)

If I'm trying to create a new org.netbeans.Foo class under src/, the wizard will
warn me and disallow the operation.

If, however, I'm trying to do the same under src-2/, it will silently create the
duplicate class.
Comment 1 Jan Becicka 2007-08-20 15:04:05 UTC
P5. Does not do any harm.
Comment 2 Tomas Zezula 2007-09-20 10:46:46 UTC
It may do a harm, the second class is hidden by the first, may cause unwanted behavior of the application and "happy"
debugging. I agree with reporter that the wizard should warn about it.
Comment 3 David Strupl 2009-03-31 15:55:05 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 4 Quality Engineering 2009-11-02 10:59:10 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX