src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
changeset 59285 7799a51dbe30
parent 54339 f69a2f675f19
equal deleted inserted replaced
59284:88502b1cf76f 59285:7799a51dbe30
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2019, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  1556                 return;
  1556                 return;
  1557 
  1557 
  1558             env.tree = transTypes.translateTopLevelClass(env.tree, localMake);
  1558             env.tree = transTypes.translateTopLevelClass(env.tree, localMake);
  1559             compileStates.put(env, CompileState.TRANSTYPES);
  1559             compileStates.put(env, CompileState.TRANSTYPES);
  1560 
  1560 
       
  1561             if (shouldStop(CompileState.TRANSPATTERNS))
       
  1562                 return;
       
  1563 
       
  1564             env.tree = TransPatterns.instance(context).translateTopLevelClass(env, env.tree, localMake);
       
  1565             compileStates.put(env, CompileState.TRANSPATTERNS);
       
  1566 
  1561             if (Feature.LAMBDA.allowedInSource(source) && scanner.hasLambdas) {
  1567             if (Feature.LAMBDA.allowedInSource(source) && scanner.hasLambdas) {
  1562                 if (shouldStop(CompileState.UNLAMBDA))
  1568                 if (shouldStop(CompileState.UNLAMBDA))
  1563                     return;
  1569                     return;
  1564 
  1570 
  1565                 env.tree = LambdaToMethod.instance(context).translateTopLevelClass(env, env.tree, localMake);
  1571                 env.tree = LambdaToMethod.instance(context).translateTopLevelClass(env, env.tree, localMake);