90 " }\n" +
91 "}";
92
93 //test case super invocations
94 static final String SubASrc =
95 "class SubA extends A {\n" +
96 " public void test() {\n" +
97 " super.m();\n" +
98 " }\n" +
99 "}";
100
101 static final String SubBSrc =
102 "class SubB extends B {\n" +
103 " public void test() {\n" +
104 " super.m();\n" +
105 " }\n" +
106 "}";
107
108 public static void main(String[] args) throws Exception {
109 String[] sources = new String[] {
110 "1.6",
111 "1.7",
112 };
113 for (String source : sources) {
114 new DefaultMethodsNotVisibleForSourceLessThan8Test().run(source);
115 }
116 }
117
118 String outDir;
119 String source;
120 ToolBox tb = new ToolBox();
121
122 void run(String source) throws Exception {
123 this.source = source;
124 outDir = "out" + source.replace('.', '_');
125 testsPreparation();
126 testLegacyImplementations();
127 testLegacyInvocations();
128 testSuperInvocations();
129 }
130
|
90 " }\n" +
91 "}";
92
93 //test case super invocations
94 static final String SubASrc =
95 "class SubA extends A {\n" +
96 " public void test() {\n" +
97 " super.m();\n" +
98 " }\n" +
99 "}";
100
101 static final String SubBSrc =
102 "class SubB extends B {\n" +
103 " public void test() {\n" +
104 " super.m();\n" +
105 " }\n" +
106 "}";
107
108 public static void main(String[] args) throws Exception {
109 String[] sources = new String[] {
110 "1.7",
111 };
112 for (String source : sources) {
113 new DefaultMethodsNotVisibleForSourceLessThan8Test().run(source);
114 }
115 }
116
117 String outDir;
118 String source;
119 ToolBox tb = new ToolBox();
120
121 void run(String source) throws Exception {
122 this.source = source;
123 outDir = "out" + source.replace('.', '_');
124 testsPreparation();
125 testLegacyImplementations();
126 testLegacyInvocations();
127 testSuperInvocations();
128 }
129
|