1038 // Process annotations if processing is not disabled and there |
1038 // Process annotations if processing is not disabled and there |
1039 // is at least one Processor available. |
1039 // is at least one Processor available. |
1040 if (options.isSet(PROC, "none")) { |
1040 if (options.isSet(PROC, "none")) { |
1041 processAnnotations = false; |
1041 processAnnotations = false; |
1042 } else if (procEnvImpl == null) { |
1042 } else if (procEnvImpl == null) { |
1043 procEnvImpl = new JavacProcessingEnvironment(context, processors); |
1043 procEnvImpl = JavacProcessingEnvironment.instance(context); |
|
1044 procEnvImpl.setProcessors(processors); |
1044 processAnnotations = procEnvImpl.atLeastOneProcessor(); |
1045 processAnnotations = procEnvImpl.atLeastOneProcessor(); |
1045 |
1046 |
1046 if (processAnnotations) { |
1047 if (processAnnotations) { |
1047 options.put("save-parameter-names", "save-parameter-names"); |
1048 options.put("save-parameter-names", "save-parameter-names"); |
1048 reader.saveParameterNames = true; |
1049 reader.saveParameterNames = true; |