test/tools/javac/generics/inference/7086601/T7086601b.java

changeset 1169
116f68a5e677
parent 1087
3a2200681d69
child 2525
2eb010b6cb22
equal deleted inserted replaced
1165:1ae5988e201b 1169:116f68a5e677
144 JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker, 144 JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker,
145 null, null, Arrays.asList(source)); 145 null, null, Arrays.asList(source));
146 try { 146 try {
147 ct.analyze(); 147 ct.analyze();
148 } catch (Throwable ex) { 148 } catch (Throwable ex) {
149 throw new AssertionError("Error thron when compiling the following code:\n" + source.getCharContent(true)); 149 throw new AssertionError("Error thrown when compiling the following code:\n" + source.getCharContent(true));
150 } 150 }
151 check(); 151 check();
152 } 152 }
153 153
154 void check() { 154 void check() {

mercurial