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.
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 take GUI snapshot of their applications during debugging sessions when "Compile on Save" mode is turned on. When CoS is turned off, it works fine. 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 "Samples > Java" category, select "Anagram Game" project type, click "Next >" and then "Finish" buttons. 6. Right click "AnagramGame" 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. Press Ctrl+F5 keystroke to start debugging session. Expected: When "Anagram Game" window is displayed you can invoke "Debug > Take GUI Snapshot" from main menu as it's enabled. Actual: When "Anagram Game" window is displayed you cannot invoke "Debug > Take GUI Snapshot" from main menu as it's disabled. [1] https://jdk9.java.net/download
This is JDK 9 specific issue.
Fixed jdk9 9b36ac08d2ea
Works fine with the patch but an IAE is thrown from invoking Accesible.getAC. It happens also in trunk on JDK 8, seems related to JDK 8 def methods. I've created an issue #252727 for it.
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.