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.
Profiler the code below: package test; /** * * @author thurka */ public class Test { Object tx; public static void main(String[] args) { } private Test(Object o) { } private Test() { } private void cpuTest() { while(true) { System.out.println(""); } } private Test memTest() { return (tx == null) ? new Test() : new Test(tx); } } The code needs to run on JDK 7 and compiled with -source 1.7. When profiled (both CPU and Memory) it fails with: Profiler Agent Error: Redefinition failed for classes: test.Test Profiler Agent Error: with message: Redefinition failed with error 62 Check JVMTI documentation for this error code. Debug: writing class file: test.Test, into file: test.Test.class
Workaround: Run profiled application with -Xverify:none
Fixed in main changeset: 195776:38bdf2dd87c5 user: Tomas Hurka <thurka@netbeans.org> date: Tue Jun 14 16:12:46 2011 +0200 summary: bugfix #199380, StackMapTables.updateTable() needs to consider changeTypeIsInjectNewInstr and injectionBindsToFollowingInstruction
Fixed in release701 changeset: 200955:6171cf6571f7 branch: release701 parent: 200922:09f8a756d359 user: Tomas Hurka <thurka@netbeans.org> date: Tue Jun 14 16:12:46 2011 +0200 summary: bugfix #199380, StackMapTables.updateTable() needs to consider changeTypeIsInjectNewInstr and injectionBindsToFollowingInstruction
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/38bdf2dd87c5 User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #199380, StackMapTables.updateTable() needs to consider changeTypeIsInjectNewInstr and injectionBindsToFollowingInstruction
Verified on: Product Version: NetBeans IDE 7.0.1 (Build 201107211357) Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17 System: Linux version 2.6.38-10-generic running on amd64; UTF-8; en_US (nb)