test/langtools/tools/javac/lambda/TestLambdaToMethodStats.java
changeset 49518 d0ff431a596e
parent 47350 d65c3b21081c
equal deleted inserted replaced
49517:a387ee36e5e0 49518:d0ff431a596e
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   120             "}";
   120             "}";
   121 
   121 
   122     @Override
   122     @Override
   123     public void doWork() throws IOException {
   123     public void doWork() throws IOException {
   124         newCompilationTask()
   124         newCompilationTask()
   125                 .withOption("--debug:dumpLambdaToMethodStats")
   125                 .withOption("--debug=dumpLambdaToMethodStats")
   126                 .withSourceFromTemplate(template)
   126                 .withSourceFromTemplate(template)
   127                 .generate(this::check);
   127                 .generate(this::check);
   128     }
   128     }
   129 
   129 
   130     void check(Result<?> res) {
   130     void check(Result<?> res) {