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 91117

Summary: Live lock while starting debugger
Product: java Reporter: Martin Entlicher <mentlicher>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: blocker CC: non_migrated_user
Priority: P2 Keywords: API
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 101787    
Bug Blocks:    
Attachments: The full thread dump.

Description Martin Entlicher 2006-12-15 12:22:23 UTC
This is a regression in the behavior. When the debugger is started and the
sources are not yet fully scanned, the action just blocks in AWT and waits for
the scan to finish. This blocks all UI and NetBeans are not responsive until the
scan finishes. There was a dialog notifying about the necessity to wait for the
scan in the past.
Comment 1 Martin Entlicher 2006-12-15 12:23:25 UTC
Created attachment 36687 [details]
The full thread dump.
Comment 2 Tomas Zezula 2007-02-14 10:34:39 UTC
Requires the new API like runWhenScannedFinished (Runnable). There are already
SourceUtils.isScanInProgress () and SourceUtils.waitScanFinished().
Comment 3 Tomas Zezula 2007-04-23 22:10:21 UTC
If you have a task which need to be done when scan is done use
JavaSource.runWhenScanFinished().

Checking in apichanges.xml;
/cvs/java/source/apichanges.xml,v  <--  apichanges.xml
new revision: 1.8; previous revision: 1.7
done
Checking in nbproject/project.properties;
/cvs/java/source/nbproject/project.properties,v  <--  project.properties
new revision: 1.18; previous revision: 1.17
done
Checking in src/org/netbeans/api/java/source/JavaSource.java;
/cvs/java/source/src/org/netbeans/api/java/source/JavaSource.java,v  <-- 
JavaSource.java
new revision: 1.45; previous revision: 1.44
done
Checking in src/org/netbeans/modules/java/source/classpath/GlobalSourcePath.java;
/cvs/java/source/src/org/netbeans/modules/java/source/classpath/GlobalSourcePath.java,v
 <--  GlobalSourcePath.java
new revision: 1.8; previous revision: 1.7
done
Checking in src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.49; previous revision: 1.48
done
Checking in test/unit/src/org/netbeans/api/java/source/JavaSourceTest.java;
/cvs/java/source/test/unit/src/org/netbeans/api/java/source/JavaSourceTest.java,v
 <--  JavaSourceTest.java
new revision: 1.11; previous revision: 1.10
done