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 252727 - IAE in org.netbeans.modules.debugger.jpda.jdi.ObjectReferenceWrapper.invokeMethod(ObjectReferenceWrapper.java:576)
Summary: IAE in org.netbeans.modules.debugger.jpda.jdi.ObjectReferenceWrapper.invokeMe...
Status: VERIFIED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-01 16:25 UTC by Tomas Zezula
Modified: 2015-06-02 08:15 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 Tomas Zezula 2015-06-01 16:25:58 UTC
Found while testing the issue #252725 on JDK9 branch but happens also in trunk on JDK 8. Somehow related to JDK 8 default methods.

To reproduce follow steps from issue #252725.

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:576)
	at org.netbeans.modules.debugger.jpda.visual.JavaComponentInfo$ComponentProperty.getValueLazy(JavaComponentInfo.java:609)
Comment 1 Martin Entlicher 2015-06-01 17:04:51 UTC
I did not reproduced this when NetBeans run on JDK 9, but reproduced when run on JDK 8.
Comment 2 Jiri Kovalsky 2015-06-01 18:16:27 UTC
In my opinion this is a duplicate of #250631.
Comment 3 Tomas Zezula 2015-06-01 18:49:13 UTC
Yes, it's seems so.
Comment 4 Martin Entlicher 2015-06-02 07:29:24 UTC
This is caused by https://bugs.openjdk.java.net/browse/JDK-8071657 and it's fixed in JDK 8 update 60. I've verified that this exception is not thrown in JDK build 1.8.0_60-ea-b17.
Resolving as won't fix as this is not a NetBeans issue.
Comment 5 Jiri Kovalsky 2015-06-02 08:15:42 UTC
OK, verifying then.