equal
deleted
inserted
replaced
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)); |