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 - Run error when using jdk1.6
Summary: Run error when using jdk1.6
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-02 06:24 UTC by pzgyuanf
Modified: 2005-09-05 10:01 UTC (History)
0 users

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 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.