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() { |