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.
In JDK 8 it is possible to have static methods in interfaces. However, debugger does not invoke such methods during evaluations in watches or code evaluation. It is possible to step into such methods without problems. To reproduce: consider a code like: public static interface TestInterface { static void test() { System.err.println("Test method in an interface!"); } } and try to evaluate "TestInterface.test()".
This is not possible to fix without com.sun.jdi.InterfaceType.invokeMethod(). https://bugs.openjdk.java.net/browse/JDK-8031195 http://hg.netbeans.org/core-main/rev/5705e4d11a52
Integrated into 'main-silver', will be available in build *201401080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5705e4d11a52 User: mentlicher@netbeans.org Log: #240036: Not able to call static methods on interfaces.
Since JDK 1.8.0 update 40 there is a possibility to invoke static methods on interfaces: https://bugs.openjdk.java.net/browse/JDK-8042121
Fixed by changeset: 295975:06e2dfab5255 http://hg.netbeans.org/core-main/rev/06e2dfab5255
Integrated into 'main-silver', will be available in build *201603090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/06e2dfab5255 User: mentlicher@netbeans.org Log: #240036: Allow to evaluate static methods on interfaces since JDK 8u40.