src/share/classes/com/sun/tools/javac/main/JavaCompiler.java

changeset 1416
c0f0c41cafa0
parent 1406
2901c7b5339e
child 1442
fcf89720ae71
equal deleted inserted replaced
1415:01c9d4161882 1416:c0f0c41cafa0
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;

mercurial