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 60297 - j2se projects with existing sources are broken
Summary: j2se projects with existing sources are broken
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 59759 59949 (view as bug list)
Depends on:
Blocks: 58313
  Show dependency tree
 
Reported: 2005-06-20 17:13 UTC by athompson
Modified: 2005-09-05 10:10 UTC (History)
1 user (show)

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 athompson 2005-06-20 17:13:46 UTC
jdk 1.5
linux
4.2 daily 20 june 2005

right-clicking on a package does not allow you create new java classes or
packages. going through the menu to create the items places them in the correct
package, but does not include the package statement. since the project builds
without warnings, i don't think the new classes are compiled properly.
Comment 1 athompson 2005-06-20 17:44:56 UTC
i have an empty existing Test Packages folder also defined in the project. if i
remove it and restart the ide, the project works ok. this may be related to
issue 60296.
Comment 2 Tomas Zezula 2005-06-20 17:47:13 UTC
Works fine in current build. There is no difference among project with ext.
sources and project with new sources.
Could you attach the project.xml and log file?
Comment 3 Tomas Zezula 2005-06-20 17:52:49 UTC
OK, thanks. It seems to be a consequence of it.
Comment 4 athompson 2005-06-20 17:53:00 UTC
you can reproduce it by creating a new project with existing sources and
specifying an empty test directory.
Comment 5 athompson 2005-06-20 17:54:30 UTC
what's up w/ issuezilla? it doesn't seem to be propery detecting collisions...
Comment 6 Tomas Zezula 2005-06-20 18:04:42 UTC
Seems reproduceable with empty test dir.
Thanks for help.
Comment 7 Tomas Zezula 2005-06-21 16:26:08 UTC
Workaround: It seems that IDE restart helps.
Comment 8 Tomas Zezula 2005-06-21 17:43:18 UTC
Checking in
projectapi/src/org/netbeans/modules/projectapi/SimpleFileOwnerQueryImplementation.java;
/cvs/projects/projectapi/src/org/netbeans/modules/projectapi/SimpleFileOwnerQueryImplementation.java,v
 <--  SimpleFileOwnerQueryImplementation.java
new revision: 1.10; previous revision: 1.9
done
Comment 9 Jesse Glick 2005-06-22 20:01:40 UTC
Regression caused by issue #58313 impl, I guess.
Comment 10 Jesse Glick 2005-06-22 20:02:27 UTC
Such an important fix, in such basic code, certainly deserves a patch to the
unit test.
Comment 11 Tomas Zezula 2005-06-23 07:39:45 UTC
OK. I will add it.
Comment 12 Tomas Zezula 2005-06-24 07:38:58 UTC
*** Issue 59949 has been marked as a duplicate of this issue. ***
Comment 13 Tomas Zezula 2005-07-04 13:55:50 UTC
Added unit test
Checking in
projectapi/test/unit/src/org/netbeans/api/project/FileOwnerQueryTest.java;
/cvs/projects/projectapi/test/unit/src/org/netbeans/api/project/FileOwnerQueryTest.java,v
 <--  FileOwnerQueryTest.java
new revision: 1.9; previous revision: 1.8
done
Comment 14 Jaromir Uhrik 2005-07-21 16:41:05 UTC
Verified.
Comment 15 Tomas Zezula 2005-08-31 13:40:47 UTC
*** Issue 59759 has been marked as a duplicate of this issue. ***