### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.compiler Index: src/org/eclipse/jdt/core/tests/compiler/regression/AutoBoxingTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AutoBoxingTest.java,v retrieving revision 1.107 diff -u -r1.107 AutoBoxingTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/AutoBoxingTest.java 15 Mar 2007 14:04:30 -0000 1.107 +++ src/org/eclipse/jdt/core/tests/compiler/regression/AutoBoxingTest.java 2 May 2007 00:49:09 -0000 @@ -35,11 +35,11 @@ // Static initializer to specify tests subset using TESTS_* static variables // All specified tests which does not belong to the class are skipped... -// static { + static { // TESTS_NAMES = new String[] { "test000" }; -// TESTS_NUMBERS = new int[] { 65 }; +// TESTS_NUMBERS = new int[] { 147 }; // TESTS_RANGE = new int[] { 11, -1 }; -// } + } public static Test suite() { return buildComparableTestSuite(testClass()); } @@ -4336,4 +4336,18 @@ settings, null); } +//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957 +public void test147() { + this.runConformTest( + new String[] { + "X.java", + "public class X {\n" + + " public static void main(String[] args) {\n" + + " if(new Integer(2) == 0) {}\n" + + " System.out.println(\"SUCCESS\");\n" + + " }\n" + + "}", + }, + "SUCCESS"); +} }