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 252725 - Cannot take GUI snapshot of debugged application with CoS turned on
Summary: Cannot take GUI snapshot of debugged application with CoS turned on
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 14:54 UTC by Jiri Kovalsky
Modified: 2015-06-02 13:14 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 14:54:51 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 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
Comment 1 Jiri Kovalsky 2015-06-01 14:55:20 UTC
This is JDK 9 specific issue.
Comment 2 Tomas Zezula 2015-06-01 15:58:19 UTC
Fixed jdk9 9b36ac08d2ea
Comment 3 Tomas Zezula 2015-06-01 16:27:35 UTC
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.
Comment 4 Jiri Kovalsky 2015-06-02 13:14:05 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.