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 262238

Summary: The virtual machine does not support this operation: add method not implemented
Product: debugger Reporter: FiruzzZ
Component: CodeAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description FiruzzZ 2016-05-26 12:53:14 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_92
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.92-b14

Reproducibility: Happens sometimes, but not always

STEPS:
 Run in debug mode a Vaadin Web Project
 Add a call to a method (already implemented and in use)
 Press "Apply code changes"

ACTUAL:
  Apply code changes Tab says: NetBeans:The virtual machine does not support this operation: add method not implemented

EXPECTED:
  runs smoooothly!

the modifications are on a private class, maybe that is the problem! (but this doens't always happen):
NetBeans: classes to reload:
 com.traslado.controller.RecorridoController$1
 com.traslado.controller.RecorridoController
 com.traslado.controller.RecorridoController$RecorridoABMController

NetBeans:The virtual machine does not support this operation: add method not implemente
Comment 1 FiruzzZ 2016-05-26 12:53:26 UTC
Created attachment 159890 [details]
IDE log
Comment 2 Martin Entlicher 2016-05-27 11:13:24 UTC
This is a behavior of the JVM. If a new method is generated somewhere, or a signature of some method changes, the logic of apply code changes is not able to deal with that.
This is not something that can be fixed in NetBeans, it's just a warning that the changes can not be applied in the JVM.