langtools/test/tools/javac/lambda/LambdaParserTest.java
changeset 11381 890ea587d133
parent 11143 9dbe313bfb74
child 14547 86d8d242b0c4
equal deleted inserted replaced
11322:6ee85f80967a 11381:890ea587d133
   236         JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker,
   236         JavacTask ct = (JavacTask)tool.getTask(null, fm, diagChecker,
   237                 Arrays.asList("-XDallowLambda"), null, Arrays.asList(source));
   237                 Arrays.asList("-XDallowLambda"), null, Arrays.asList(source));
   238         try {
   238         try {
   239             ct.parse();
   239             ct.parse();
   240         } catch (Throwable ex) {
   240         } catch (Throwable ex) {
   241             throw new AssertionError("Error thron when parsing the following source:\n" + source.getCharContent(true));
   241             throw new AssertionError("Error thrown when parsing the following source:\n" + source.getCharContent(true));
   242         }
   242         }
   243         check();
   243         check();
   244     }
   244     }
   245 
   245 
   246     void check() {
   246     void check() {