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 58474

Summary: Run error when using jdk1.6
Product: java Reporter: pzgyuanf <pzgyuanf>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description pzgyuanf 2005-05-02 06:24:54 UTC
Compile the sample [3.10.5 String Literals] in JLS3.0 draft, and run
error reprot in output window:

java.lang.VerifyError: Expecting a stackmap frame at branch target 19 in method
test.Test.main([Ljava/lang/String;)V
Exception in thread "main"
Comment 1 pzgyuanf 2005-05-02 06:31:05 UTC
But it is normal when run existing project created whit jdk1.5 or former. I
means the above sample was inputed after installed jdk1.6 and in netbeans.
Comment 2 Martin Matula 2005-05-02 09:55:02 UTC
Compilation and running is a responsibility of Java project.
Comment 3 Tomas Zezula 2005-05-02 10:32:13 UTC
The VerifyError implies either broken class file or broken JVM. The NetBeans 4.x
uses standard javac for compilation (in your case javac form JDK 1.6). NetBeans
can not affect the way how the classfiles are created or parsed by JVM.
You probably want to report this issue to the the JDK 1.6 and attach the project.