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 145404 - Change in one class triggers reparsing of whole sourceroot
Summary: Change in one class triggers reparsing of whole sourceroot
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-08-28 10:58 UTC by Tomas Danek
Modified: 2008-10-16 13:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Simple Patch -- expecting comments ;-) (852 bytes, patch)
2008-08-28 13:06 UTC, Pavel Flaska
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2008-08-28 10:58:47 UTC
Product Version: NetBeans IDE 6.5 Beta (Build 200808111757)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /tmp/ud
----------------
- have some project with big src root
- change one class there
- close ide
- start ide
- whole src root gets recompiled
Comment 1 Pavel Flaska 2008-08-28 13:06:05 UTC
Created attachment 68524 [details]
Simple Patch -- expecting comments ;-)
Comment 2 Quality Engineering 2008-08-30 05:40:37 UTC
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/7fdb23fa7cb1
User: Pavel Flaska <pflaska@netbeans.org>
Log: #145404: Initial fix - do not compile whole root when only serveral files has been changed.
Comment 3 Tomas Danek 2008-09-01 12:37:05 UTC
have tried in 200809010201 and cannot reproduce ... any reason why is this not marked as fixed (will it be tested by
some regression tests, or is it waiting on some more robust fix, or do you still expect comments;), or...?) 
 
Product Version: NetBeans IDE Dev (Build 200809010201)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /tmp/ud
Comment 4 Jan Lahoda 2008-09-10 17:05:00 UTC
The bug was waiting for more appropriate fix:
http://hg.netbeans.org/main?cmd=changeset;node=5b11c38cbf7d

The main difference is that if a fatal failure occurs during source root scan, the source root will be rescanned on next
start.
Comment 5 Quality Engineering 2008-09-11 17:39:47 UTC
Integrated into 'main-golden', will be available in build *200809111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5b11c38cbf7d
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #145404: ensure that the source root is marked dirty when the old and new digests do not match, to guarantee recovery from a fatal failure.
Comment 6 Tomas Danek 2008-10-16 13:56:53 UTC
not able to reproduce in Product Version: NetBeans IDE 6.5 RC1 (Build 200810151402)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-21-generic running on i386; UTF-8; en_US (nb)
Userdir: /usr/local/home/tomas/.netbeans/6.5rc1

-> verified