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.
Build: NetBeans IDE 8.0.2 (Build 201411181905) VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25 OS: Linux User Comments: jkovalsky: 1. Invoke "File > New Project..." from main menu. 2. Select "Samples > Java" category and "Anagram Game" project. 3. Push "Next >" button. 4. Push "Finish" button. 5. Press Ctrl+F5 to start debugging the newly created sample project. 6. Once the Anagrams dialog is opened, invoke "Debug > Take GUI Snapshot" from main menu. 7. IAE is thrown. Stacktrace: java.lang.IllegalArgumentException: Not a default method at com.sun.tools.jdi.ObjectReferenceImpl.validateIfaceMethodInvocation(ObjectReferenceImpl.java:352) at com.sun.tools.jdi.ObjectReferenceImpl.validateMethodInvocation(ObjectReferenceImpl.java:292) at com.sun.tools.jdi.ObjectReferenceImpl.invokeMethod(ObjectReferenceImpl.java:405) at org.netbeans.modules.debugger.jpda.jdi.ObjectReferenceWrapper.invokeMethod(ObjectReferenceWrapper.java:510) at org.netbeans.modules.debugger.jpda.visual.JavaComponentInfo$ComponentProperty.getValueLazy(JavaComponentInfo.java:609) at org.netbeans.modules.debugger.jpda.visual.JavaComponentInfo$ComponentProperty.access$500(JavaComponentInfo.java:526)
Created attachment 152156 [details] stacktrace
It is possible to inspect GUI snapshot but since the exception is 100% reproducible I am increasing priority to P2. Also marking as REGRESSION against 8.0.2.
I'm not able to reproduce this issue in Ubuntu. A test that invokes the problematic method javax.accessibility.Accessible.getAccessibleContext() method on an instance of com.toy.anagrams.ui.Anagrams did not reveal the issue in Linux Mint. :-(
I've reproduced it with JDK 1.8.0 update 40. It's a regression in ObjectReferenceImpl class.
See https://bugs.openjdk.java.net/browse/JDK-8074982
Just for the record, looks like it was already fixed at JDK 8u60.