| Summary: | VerifyError: Stack map does not match the one at exception handler. | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Tadas <cossacking> |
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | VERIFIED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jarthana, Olivier_Thomann |
| Version: | 3.8 | ||
| Target Milestone: | 3.7.1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Seems to be a dup of bug 353535. Could you please try with 3.7.1RC2? Closing as a duplicate of bug 353535. *** This bug has been marked as a duplicate of bug 353535 *** Verified for 3.7.1 with build M20110831-1030. |
Build Identifier: 20110818-2043 Eclipse's default incremental compiler generates invalid bytecode when using 1.7 source and 1.7 target compliance. Default & only Installed JRE in eclipse is jdk1.7.0. Path contains JDK7 binaries, as can be seen: java -server -version java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147) Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode) The error that occurs is: Exception in thread "main" java.lang.VerifyError: Stack map does not match the one at exception handler 74 in method Conformance.main([Ljava/lang/String;)V at offset 4 at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) at java.lang.Class.getMethod0(Class.java:2685) at java.lang.Class.getMethod(Class.java:1620) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:484) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:476) This error does not occur if compiled using javac. This error does not occur if changed to: String line = null; Reproducible: Always Steps to Reproduce: Bad bytecode is generated for: String line; try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { while ((line = br.readLine()) != null) if ("exit".equals(line)) break; } catch (Exception e) { // do anything or nothing }