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 120910 - Netbeans compiles closed project
Summary: Netbeans compiles closed project
Status: RESOLVED DUPLICATE of bug 103056
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 23:14 UTC by bolsover
Modified: 2008-08-05 16:52 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 bolsover 2007-11-01 23:14:58 UTC
Recently been working on project to reverse engineer a database producing pojo and hibernate mapping xml file for each 
table in the database.  In total there are over 2600 tables.
A utiity project analyses the database and produces the pojo.java and hbm.xml. Output is written into the src directory 
of a second, library project - always cloed during execution of generator project.
If I close  all projects following generation, close netbeans and re-open netbeans, the compiler kicks off working on 
data in a project not yet open.  Given that there are now 2600 pojo.java in this project, the compile takes a 
significant time to complete and the progam uses over 50% CPU (dual core cpu).
This has to be a bug - thr compiler should not be working on a closed project.
Please contact if you need more info
david at bolsover dot com
Comment 1 Peter Pis 2007-11-04 15:22:09 UTC
Reassigning to "java".
Comment 2 Jan Lahoda 2007-11-04 16:36:04 UTC
Sorry, but I do not fully understand - do you have any projects when the scanning/compiling starts?
-if no, I am not sure how this would happen - any steps to reproduce would be welcome
-if yes, what is the relation ship between the opened project(s)? In some cases, it is necessary to scan/compile source
roots from closed project, for example:
 consider two project P1 and P2 (both with only one source root, for simplicity), compiled into P1.jar and P2.jar.
Sources in P2 have P1.jar on the classpath. If P2 is opened, the IDE needs to inspect sources of P1, even if P1 is not
opened. If it did not inspect P1, and you would clean project P1 (so the P1.jar would disappear), all references to P1
in P2 would mark as errors.
Comment 3 Tomas Zezula 2007-11-04 18:44:42 UTC
Anything to reproduce this problem will be welcomed. When the project is closed during the scanning the scanning is not
ended and it has to finish, it's already reported issue, it's due to the fact that it's very expensive to calculate the
changes in active classpaths when you close or open project, the scanner has to work as a sliding task. But when the IDE
was started with closed project it has no reason to scan anything.
Comment 4 Tomas Zezula 2008-01-15 03:43:22 UTC
After close the project is not sensitive on changes in the source tree but seems to be still sensitive on changes in its
classpath.
Comment 5 Jiri Prox 2008-04-11 00:52:34 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 Jan Becicka 2008-08-05 16:52:01 UTC

*** This issue has been marked as a duplicate of 103056 ***