langtools/src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
equal
deleted
inserted
replaced
65 import com.sun.tools.javac.parser.*; |
65 import com.sun.tools.javac.parser.*; |
66 import com.sun.tools.javac.tree.*; |
66 import com.sun.tools.javac.tree.*; |
67 import com.sun.tools.javac.tree.JCTree.*; |
67 import com.sun.tools.javac.tree.JCTree.*; |
68 import com.sun.tools.javac.util.Abort; |
68 import com.sun.tools.javac.util.Abort; |
69 import com.sun.tools.javac.util.Assert; |
69 import com.sun.tools.javac.util.Assert; |
|
70 import com.sun.tools.javac.util.ClientCodeException; |
70 import com.sun.tools.javac.util.Context; |
71 import com.sun.tools.javac.util.Context; |
71 import com.sun.tools.javac.util.Convert; |
72 import com.sun.tools.javac.util.Convert; |
72 import com.sun.tools.javac.util.FatalError; |
73 import com.sun.tools.javac.util.FatalError; |
73 import com.sun.tools.javac.util.JCDiagnostic; |
74 import com.sun.tools.javac.util.JCDiagnostic; |
74 import com.sun.tools.javac.util.List; |
75 import com.sun.tools.javac.util.List; |
430 return false; |
431 return false; |
431 } catch (Exception e ) { |
432 } catch (Exception e ) { |
432 log.error("proc.processor.cant.instantiate", processorName); |
433 log.error("proc.processor.cant.instantiate", processorName); |
433 return false; |
434 return false; |
434 } |
435 } |
|
436 } catch(ClientCodeException e) { |
|
437 throw e; |
435 } catch(Throwable t) { |
438 } catch(Throwable t) { |
436 throw new AnnotationProcessingError(t); |
439 throw new AnnotationProcessingError(t); |
437 } |
440 } |
438 nextProc = processor; |
441 nextProc = processor; |
439 return true; |
442 return true; |
525 for (String optionName : processor.getSupportedOptions() ) { |
528 for (String optionName : processor.getSupportedOptions() ) { |
526 if (checkOptionName(optionName, log)) |
529 if (checkOptionName(optionName, log)) |
527 supportedOptionNames.add(optionName); |
530 supportedOptionNames.add(optionName); |
528 } |
531 } |
529 |
532 |
|
533 } catch (ClientCodeException e) { |
|
534 throw e; |
530 } catch (Throwable t) { |
535 } catch (Throwable t) { |
531 throw new AnnotationProcessingError(t); |
536 throw new AnnotationProcessingError(t); |
532 } |
537 } |
533 } |
538 } |
534 |
539 |
788 } catch (CompletionFailure ex) { |
793 } catch (CompletionFailure ex) { |
789 StringWriter out = new StringWriter(); |
794 StringWriter out = new StringWriter(); |
790 ex.printStackTrace(new PrintWriter(out)); |
795 ex.printStackTrace(new PrintWriter(out)); |
791 log.error("proc.cant.access", ex.sym, ex.getDetailValue(), out.toString()); |
796 log.error("proc.cant.access", ex.sym, ex.getDetailValue(), out.toString()); |
792 return false; |
797 return false; |
|
798 } catch (ClientCodeException e) { |
|
799 throw e; |
793 } catch (Throwable t) { |
800 } catch (Throwable t) { |
794 throw new AnnotationProcessingError(t); |
801 throw new AnnotationProcessingError(t); |
795 } |
802 } |
796 } |
803 } |
797 |
804 |