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 250631 - IllegalArgumentException: Not a default method
Summary: IllegalArgumentException: Not a default method
Status: RESOLVED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2015-02-23 13:01 UTC by Jiri Kovalsky
Modified: 2015-04-07 19:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215606


Attachments
stacktrace (1.70 KB, text/plain)
2015-02-23 13:01 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-02-23 13:01:07 UTC
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)
Comment 1 Jiri Kovalsky 2015-02-23 13:01:09 UTC
Created attachment 152156 [details]
stacktrace
Comment 2 Jiri Kovalsky 2015-02-23 15:30:33 UTC
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.
Comment 3 Martin Entlicher 2015-02-26 13:45:19 UTC
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. :-(
Comment 4 Martin Entlicher 2015-03-11 14:27:09 UTC
I've reproduced it with JDK 1.8.0 update 40.
It's a regression in ObjectReferenceImpl class.
Comment 5 Martin Entlicher 2015-03-11 14:36:45 UTC
See https://bugs.openjdk.java.net/browse/JDK-8074982
Comment 6 Michel Graciano 2015-04-07 19:10:56 UTC
Just for the record, looks like it was already fixed at JDK 8u60.