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.
Summary: | Sporadically cannot view source for Java Platform classes in NetBeans 7.1 RC 2 | ||
---|---|---|---|
Product: | java | Reporter: | rgoldberg |
Component: | Platform | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | AurelienRibon, gtzabari, rgoldberg |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
rgoldberg
2012-01-03 08:39:11 UTC
It occurs to me too in official 7.1 release. The src.zip jdk source file is correctly linked to the jdk under the Java platforms popup, yet no source can be shown. Moreover, every javadoc popup seems to be downloaded form the web, so there's a major issue here. Everything worked fine in 6.9.1 and 7.0.1, and I did nothing else than installing 7.1 (may be important: I told the installer to use the configuration file from 7.0.1). Additional info: I just removed the javadoc url from the "javadoc" tab in the Java Platform Manager, and everything works like a charm now. The issue is definitely here. (In reply to comment #1) > It occurs to me too in official 7.1 release. > The src.zip jdk source file is correctly linked to the jdk under the Java > platforms popup, yet no source can be shown. > > Moreover, every javadoc popup seems to be downloaded form the web, so there's a > major issue here. > > Everything worked fine in 6.9.1 and 7.0.1, and I did nothing else than > installing 7.1 (may be important: I told the installer to use the configuration > file from 7.0.1). Do you still have the platform definition file for which the go to source did not work? Here it is. Note that I just had to add the javadoc url back (by using the java Platform Manager ui) to break Netbeans again, and prevent it from being able to correctly fetch the src.zip file. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE platform PUBLIC "-//NetBeans//DTD Java PlatformDefinition 1.0//EN" "http://www.netbeans.org/dtds/java-platformdefinition-1_0.dtd"> <platform default="yes" name="JDK 1.7 (Default)"> <properties> <property name="platform.ant.name" value="default_platform"/> </properties> <javadoc> <resource>http://docs.oracle.com/javase/7/docs/api/</resource> </javadoc> </platform> (In reply to comment #3) > Do you still have the platform definition file for which the go to source did > not work? But there is no record for java sources. There should be <sources> element, something like: <platform default="yes" name="JDK 1.6 (Default)"> <properties> <property name="platform.ant.name" value="default_platform"/> </properties> <sources> <resource>jar:file:/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home/src.jar!/src/</resource> </sources> <javadoc> <resource>jar:file:/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home/src.jar!/</resource> </javadoc> </platform> Interesting report: the only 3rd-party plugin I had installed was nbandroid (http://www.nbandroid.org/). I uninstalled it: "go to source" feature worked again like a charm. Then I reinstalled it: everything is still fine. There may have been a corruption due to the plugin, since it installs a new platform definition for Android. However, I still do not have a <sources> tag. I tried removing the src.zip file from the Java Platform Manager ui: "go to sources" does not find sources anymore. I added it back using the ui again: "go to sources" works normally, but <sources> tag is still absent from the xml file. For default platform when the sources are on standard location the <sources> element is not written. The <sources> s not written because the default platform is dynamic, it's the platform you are running the IDE on. So it can change, when you change it the pass will be wrong. I will test it with the NB-Android and let you know. Also isn't the project from where you cannot navigate to JDK broken (broken reference to JDK)? If you can reproduce please open properties for file you navigated from and attach the boot classpath + platform definition file of platform owning the boot classpath. Thanks *** Bug 206923 has been marked as a duplicate of this bug. *** (In reply to comment #8) > Also isn't the project from where you cannot navigate to JDK broken (broken > reference to JDK)? > If you can reproduce please open properties for file you navigated from and > attach the boot classpath + platform definition file of platform owning the > boot classpath. > Thanks Take a look at bug 206923. I've reproduced this problem by editing one of my application classes, then CTRL+LMB click on IOException. What do you want me to do in that case? How do I get "properties" for the file I navigated from in this case? Another time I recall reproducing the problem by simply invoking CTRL+O (Go To Type) and typing the class name I wanted to view. Please let me know what information you want me to collect in these cases and I will do my best to do so the next time I reproduce the problem. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |