208 JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker, |
208 JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker, |
209 null, null, Arrays.asList(source)); |
209 null, null, Arrays.asList(source)); |
210 try { |
210 try { |
211 ct.analyze(); |
211 ct.analyze(); |
212 } catch (Throwable ex) { |
212 } catch (Throwable ex) { |
213 throw new AssertionError("Error thron when compiling the following code:\n" + source.getCharContent(true)); |
213 throw new AssertionError("Error thrown when compiling the following code:\n" + source.getCharContent(true)); |
214 } |
214 } |
215 check(); |
215 check(); |
216 } |
216 } |
217 |
217 |
218 void check() { |
218 void check() { |