diff options
author | Till Brychcy | 2019-04-23 16:35:50 +0000 |
---|---|---|
committer | Till Brychcy | 2019-04-23 17:18:08 +0000 |
commit | 3228532d89c171c6c8189dd17f07cf77e334d9d4 (patch) | |
tree | f0cb99e6626a8f536daf68fabfe22859d6a176f9 /org.eclipse.jdt.core.tests.compiler | |
parent | 6ff1559691d1c91add2193065d3fa563171f3ed7 (diff) | |
download | eclipse.jdt.core-3228532d89c171c6c8189dd17f07cf77e334d9d4.tar.gz eclipse.jdt.core-3228532d89c171c6c8189dd17f07cf77e334d9d4.tar.xz eclipse.jdt.core-3228532d89c171c6c8189dd17f07cf77e334d9d4.zip |
for 4.12 M3 build
Change-Id: I3ba29b351c598950735296de8efc9be9d20cccb3
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler')
-rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InnerEmulationTest_1_5.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InnerEmulationTest_1_5.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InnerEmulationTest_1_5.java index 3a18871c6a..ccba29102a 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InnerEmulationTest_1_5.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InnerEmulationTest_1_5.java @@ -326,6 +326,25 @@ public void test14() throws Exception { " [pc: 17, line: 5]\n"; checkDisassembledClassFile(OUTPUT_DIR + File.separator + "LineNumberBug$Inner.class", "LineNumberBug$Inner", expectedOutput); } +public void testBug546362() throws Exception { + runConformTest(new String[] { + "Schema.java", + "import java.util.HashMap;\n" + + "\n" + + "public class Schema {\n" + + " public Integer[] getElements(HashMap<String, Integer> map) {\n" + + " return map.entrySet().toArray(new Integer[0]);\n" + + " }\n" + + "}\n" + + "" + }); + String expectedOutput = + " Inner classes:\n" + + " [inner class info: #41 java/util/Map$Entry, outer class info: #43 java/util/Map\n" + + " inner name: #45 Entry, accessflags: 1545 public abstract static]\n" + + ""; + checkDisassembledClassFile(OUTPUT_DIR + File.separator + "Schema.class", "X", expectedOutput); +} public static Class testClass() { return InnerEmulationTest_1_5.class; } |