1 /* |
1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
104 void testTargetProfileCombinations() throws Exception { |
104 void testTargetProfileCombinations() throws Exception { |
105 JavaFileObject fo = new StringJavaFileObject("Test.java", "class Test { }"); |
105 JavaFileObject fo = new StringJavaFileObject("Test.java", "class Test { }"); |
106 for (Target t: Target.values()) { |
106 for (Target t: Target.values()) { |
107 switch (t) { |
107 switch (t) { |
108 case JDK1_1: case JDK1_2: // no equivalent -source |
108 case JDK1_1: case JDK1_2: // no equivalent -source |
109 case JDK1_4_1: case JDK1_4_2: case JSR14: // transitional values |
|
110 continue; |
109 continue; |
111 } |
110 } |
112 |
111 |
113 for (Profile p: Profile.values()) { |
112 for (Profile p: Profile.values()) { |
114 List<String> opts = new ArrayList<String>(); |
113 List<String> opts = new ArrayList<String>(); |