Michael Groß created NETBEANS-1962:
--------------------------------------
Summary: Java 11: Opening Java source files from the JDK takes
minutes
Key: NETBEANS-1962
URL: https://issues.apache.org/jira/browse/NETBEANS-1962
Project: NetBeans
Issue Type: Bug
Components: java - Platform, java - Source
Affects Versions: 11.0
Environment: Debian GNU/Linux 9, OpenJDK 11.0.1
Reporter: Michael Groß
Attachments:
2019-01-19_Netbeans10_Java11_JavaPlatformManager_Sources_fast.png,
2019-01-19_Netbeans10_Java11_JavaPlatformManager_Sources_verySLOW.png,
2019-01-20_Netbeans10_Java8_JavaPlatformManager_Sources.png
For Java 8 it is enough to provide the path to the
/usr/lib/jvm/openjdk-8/src.zip with the source files of the JDK with the Java
Platform Manager/Sources. The I can click on a class like java.lang.String the
source file for it is opened almost immediately.
For Java 11 providing the /usr/lib/jvm/openjdk-11/src.zip does not bring the
source. There is no error message in the IDE log (View > IDE Log).
Unpacking the src.zip and then including each folder herein, from java.base to
java.xml.crypto works - but it took minutes on my machine at high CPU load
(Intel(R) Pentium(R) CPU B940 @ 2.00GHz, SSD drive).
Then I merged all sub-directories from the direcories java.base to
java.xml.crypto together. The resulting structure is
com/
java/
javax/
jdk/
org/
sun/
(such as the structure before Java 9). Now I can open the Java sources for Java
11 as fast as before.
# Could you please adapt the program such that I can provide a src.zip for the
JDK and it opens the sources from where?
# Could you please write an error in the IDE log when the source file was not
found (including the absolute path of that file)?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists