test/tools/javac/generics/diamond/7046778/DiamondAndInnerClassTest.java

changeset 1169
116f68a5e677
parent 1060
d5f33267a06d
child 1482
954541f13717
equal deleted inserted replaced
1165:1ae5988e201b 1169:116f68a5e677
282 JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker, 282 JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker,
283 null, null, Arrays.asList(source)); 283 null, null, Arrays.asList(source));
284 try { 284 try {
285 ct.analyze(); 285 ct.analyze();
286 } catch (Throwable ex) { 286 } catch (Throwable ex) {
287 throw new AssertionError("Error thron when compiling the following code:\n" + source.getCharContent(true)); 287 throw new AssertionError("Error thrown when compiling the following code:\n" + source.getCharContent(true));
288 } 288 }
289 check(); 289 check();
290 } 290 }
291 291
292 void check() { 292 void check() {

mercurial