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 77678 - Debugger Sources list not updated after Java Platform change
Summary: Debugger Sources list not updated after Java Platform change
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker with 3 votes (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-10 12:13 UTC by ulfzibis
Modified: 2010-04-29 09:29 UTC (History)
3 users (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 ulfzibis 2006-06-10 12:13:29 UTC
I have installed JDK 1.5.0_06 and JDK 1.6.0beta.
Netbeans runs on 1.5.0.
I have defined 4 Java Platforms:
- JDK 1.5 (Default)
- JDK 1.6.0-beta
- JDK 1.5.0_06 debug
- JDK 1.6.0-beta debug
the 'debug'-versions include 2 additional source paths (extracted from
jdk-xxx-src-jrl.zip):
  - C:\Program files\Java\jdkxxx\src\j2se\src\share\classes
  - C:\Program files\Java\jdkxxx\src\j2se\src\windows\classes

When in Project Properties I switch to one of the 'debug' platforms, the list of
sources in Window->Debugging->Sources isn't updated to include the additional
source paths.

They are only updated after NetBeans _exit_ and _new start_.

It should also be better, to see this list to config the sources _before_
starting the debugger.
Comment 1 Martin Entlicher 2006-06-19 17:23:03 UTC
O.K., we need to have some listeners on the project's classpath and update the
view accordingly.
See issue #61777 for the possibility to config the sources before starting the
debugger.
Comment 2 Martin Entlicher 2007-08-08 18:49:27 UTC
We listen on changes in global class path and list of registered platforms (in attach mode only). Thus it should work
fine now.

/shared/data/ccvs/repository/debuggerjpda/projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java,v
 <--  SourcePathProviderImpl.java
new revision: 1.4; previous revision: 1.3

When not in attach mode (debugging a project inside NetBeans IDE), the correct list of boot class path and execution
class path is taken, thus no need to listen for changes.
Comment 3 Quality Engineering 2010-04-29 09:29:13 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.