View | Details | Raw Unified | Return to bug 106953
Collapse All | Expand All

(-)batch/org/eclipse/jdt/internal/compiler/batch/Main.java (+6 lines)
Lines 1880-1885 Link Here
1880
				didSpecifyWarnings = true;
1880
				didSpecifyWarnings = true;
1881
				continue;
1881
				continue;
1882
			}
1882
			}
1883
			if (currentArg.equals("-skipReferences")) { //$NON-NLS-1$
1884
				this.options.put(
1885
					CompilerOptions.OPTION_SkipReferences,
1886
					CompilerOptions.ENABLED);
1887
				continue;
1888
			}
1883
			if (currentArg.equals("-target")) { //$NON-NLS-1$
1889
			if (currentArg.equals("-target")) { //$NON-NLS-1$
1884
				mode = TargetSetting;
1890
				mode = TargetSetting;
1885
				continue;
1891
				continue;
(-)compiler/org/eclipse/jdt/internal/compiler/Compiler.java (-1 / +5 lines)
Lines 218-224 Link Here
218
			}
218
			}
219
			// initial type binding creation
219
			// initial type binding creation
220
			lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction);
220
			lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction);
221
			this.addCompilationUnit(sourceUnit, parsedUnit);
221
			
222
			if (!options.skipReferences) {
223
				// add referenced source files for compilation
224
				this.addCompilationUnit(sourceUnit, parsedUnit);
225
			}
222
226
223
			// binding resolution
227
			// binding resolution
224
			lookupEnvironment.completeTypeBindings(parsedUnit);
228
			lookupEnvironment.completeTypeBindings(parsedUnit);
(-)compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java (-1 / +12 lines)
Lines 101-107 Link Here
101
	public static final String OPTION_ReportDiscouragedReference =  "org.eclipse.jdt.core.compiler.problem.discouragedReference"; //$NON-NLS-1$
101
	public static final String OPTION_ReportDiscouragedReference =  "org.eclipse.jdt.core.compiler.problem.discouragedReference"; //$NON-NLS-1$
102
	public static final String OPTION_SuppressWarnings =  "org.eclipse.jdt.core.compiler.problem.suppressWarnings"; //$NON-NLS-1$
102
	public static final String OPTION_SuppressWarnings =  "org.eclipse.jdt.core.compiler.problem.suppressWarnings"; //$NON-NLS-1$
103
	public static final String OPTION_ReportUnhandledWarningToken =  "org.eclipse.jdt.core.compiler.problem.unhandledWarningToken"; //$NON-NLS-1$
103
	public static final String OPTION_ReportUnhandledWarningToken =  "org.eclipse.jdt.core.compiler.problem.unhandledWarningToken"; //$NON-NLS-1$
104
	
104
	public static final String OPTION_SkipReferences = "org.eclipse.jdt.core.compiler.codegen.skipReferences"; //$NON-NLS-1$
105
	// Backward compatibility
105
	// Backward compatibility
106
	public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$
106
	public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$
107
	public static final String OPTION_ReportMissingAnnotation = "org.eclipse.jdt.core.compiler.problem.missingAnnotation"; //$NON-NLS-1$
107
	public static final String OPTION_ReportMissingAnnotation = "org.eclipse.jdt.core.compiler.problem.missingAnnotation"; //$NON-NLS-1$
Lines 292-297 Link Here
292
	// suppress warning annotation
292
	// suppress warning annotation
293
	public boolean suppressWarnings = true;
293
	public boolean suppressWarnings = true;
294
	
294
	
295
	// skip compiling referenced classes
296
	public boolean skipReferences = false;
297
	
295
	/** 
298
	/** 
296
	 * Initializing the compiler options with defaults
299
	 * Initializing the compiler options with defaults
297
	 */
300
	 */
Lines 387-392 Link Here
387
		optionsMap.put(OPTION_ReportNullReference, getSeverityString(NullReference));
390
		optionsMap.put(OPTION_ReportNullReference, getSeverityString(NullReference));
388
		optionsMap.put(OPTION_SuppressWarnings, this.suppressWarnings ? ENABLED : DISABLED); 
391
		optionsMap.put(OPTION_SuppressWarnings, this.suppressWarnings ? ENABLED : DISABLED); 
389
		optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken));
392
		optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken));
393
		optionsMap.put(OPTION_SkipReferences, this.skipReferences ? ENABLED : DISABLED); 
390
		return optionsMap;		
394
		return optionsMap;		
391
	}
395
	}
392
	
396
	
Lines 570-575 Link Here
570
				}
574
				}
571
			}
575
			}
572
		}
576
		}
577
		if ((optionValue = optionsMap.get(OPTION_SkipReferences)) != null) {
578
			if (ENABLED.equals(optionValue)) {
579
				this.skipReferences = true;
580
			} else if (DISABLED.equals(optionValue)) {
581
				this.skipReferences = false;
582
			}
583
		}
573
		if ((optionValue = optionsMap.get(OPTION_SuppressWarnings)) != null) {
584
		if ((optionValue = optionsMap.get(OPTION_SuppressWarnings)) != null) {
574
			if (ENABLED.equals(optionValue)) {
585
			if (ENABLED.equals(optionValue)) {
575
				this.suppressWarnings = true;
586
				this.suppressWarnings = true;

Return to bug 106953