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