langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java
changeset 26264 a09fedde76be
parent 25874 83c19f00452c
child 26266 2d24bda701dc
equal deleted inserted replaced
26263:5ce1fe94b270 26264:a09fedde76be
   733         // if we're being invoked from a Tree API client via parse/enter/analyze,
   733         // if we're being invoked from a Tree API client via parse/enter/analyze,
   734         // we need to make sure all the classes have been entered;
   734         // we need to make sure all the classes have been entered;
   735         // if we're being invoked from JSR 199 or JSR 269, then the classes
   735         // if we're being invoked from JSR 199 or JSR 269, then the classes
   736         // will already have been entered.
   736         // will already have been entered.
   737         if (javacTaskImpl != null) {
   737         if (javacTaskImpl != null) {
   738             try {
   738             javacTaskImpl.enter(null);
   739                 javacTaskImpl.enter(null);
       
   740             } catch (IOException e) {
       
   741                 throw new Error("unexpected error while entering symbols: " + e);
       
   742             }
       
   743         }
   739         }
   744 
   740 
   745 
   741 
   746         JCCompilationUnit unit = (JCCompilationUnit) path.getCompilationUnit();
   742         JCCompilationUnit unit = (JCCompilationUnit) path.getCompilationUnit();
   747         Copier copier = createCopier(treeMaker.forToplevel(unit));
   743         Copier copier = createCopier(treeMaker.forToplevel(unit));