25 * @test |
25 * @test |
26 * @bug 5055142 |
26 * @bug 5055142 |
27 * @summary javac-generated code doesn't obey binary compatibility for enums |
27 * @summary javac-generated code doesn't obey binary compatibility for enums |
28 * @author gafter |
28 * @author gafter |
29 * |
29 * |
30 * @compile -source 1.5 EnumSwitch.java |
30 * @compile EnumSwitch.java |
31 * @compile -source 1.5 Color2.java |
31 * @compile Color2.java |
32 * @run main EnumSwitch |
32 * @run main EnumSwitch |
33 */ |
33 */ |
34 |
34 |
35 enum Color { |
35 enum Color { |
36 red, green |
36 red, green |