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 252723 - Cannot step into JDK sources with JDK 9 Java platform
Summary: Cannot step into JDK sources with JDK 9 Java platform
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2015-06-01 13:30 UTC by Jiri Kovalsky
Modified: 2015-06-02 11:28 UTC (History)
1 user (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 Jiri Kovalsky 2015-06-01 13:30:06 UTC
Product Version: NetBeans IDE Dev (Build 201506010405)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

Description:
============
With JDK 9 Java platform users can no longer step into Java source code when debugging their applications.

Steps to reproduce:
===================
1. Download and install JDK 9 [1] on your computer.
2. Invoke "Tools > Java Platforms" from main menu.
3. Click "Add Platform..." button, click "Next >", browse to location of JDK 9, select it, click "Next >" and then "Finish" buttons. Then "Close" Java platform manager.
4. Invoke "File > New Project..." from main menu.
5. Select "Java" category, select "Java Application" project type, click "Next >" and then "Finish" buttons.
6. Right click "JavaApplication" project node and invoke "Properties" from its popup menu.
7. Select "Libraries" category, change "Java Platform" to "JDK 1.9" and click "OK" button.
8. In Editor change "// TODO code application..." code at line 18 to "System.out.println("Hello, world!");" method call in JavaApplication.java file.
9. Invoke "Debug > Step Into" from main menu.
10. When debugger stops execution at line 18 highlighted in green, repeat step 9.

Expected: PrintStream.java file is opened in Editor with caret highlighting first line of "public void println(String x) {" method.
Actual: Line 19 in JavaApplication.java file with closing bracket is highlighted. Just like user would user Step Over action.

[1] https://jdk9.java.net/download
Comment 1 Jiri Kovalsky 2015-06-01 13:30:40 UTC
This is JDK 9 specific issue.
Comment 2 Tomas Zezula 2015-06-01 13:59:18 UTC
Already Fixed: http://hg.netbeans.org/jet-main/rev/9b36ac08d2ea
When reporting debugger issues please add the Compile On Save state into the issues as there is 2 different ant scripts one for CoS enabled and other for CoS disabled.
Comment 3 Jiri Kovalsky 2015-06-02 11:28:11 UTC
Product Version: NetBeans IDE Dev (Build 201506020405)
Updates: Updates available
Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-b66
Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-b66
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)

Verified. Thanks for the quick fix Tomasi.