Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 162054
Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/builder/State.java (-2 / +9 lines)
Lines 66-75 Link Here
66
	this.typeLocators = new SimpleLookupTable(7);
66
	this.typeLocators = new SimpleLookupTable(7);
67
67
68
	this.buildNumber = 0; // indicates a full build
68
	this.buildNumber = 0; // indicates a full build
69
	this.lastStructuralBuildTime = System.currentTimeMillis();
69
	this.lastStructuralBuildTime = computeStructuralBuildTime(javaBuilder.lastState == null ? 0 : javaBuilder.lastState.lastStructuralBuildTime);
70
	this.structuralBuildTimes = new SimpleLookupTable(3);
70
	this.structuralBuildTimes = new SimpleLookupTable(3);
71
}
71
}
72
72
73
long computeStructuralBuildTime(long previousTime) {
74
	long newTime = System.currentTimeMillis();
75
	if (newTime <= previousTime)
76
		newTime = previousTime + 1;
77
	return newTime;
78
}
79
73
void copyFrom(State lastState) {
80
void copyFrom(State lastState) {
74
	this.knownPackageNames = null;
81
	this.knownPackageNames = null;
75
	this.previousStructuralBuildTime = lastState.previousStructuralBuildTime;
82
	this.previousStructuralBuildTime = lastState.previousStructuralBuildTime;
Lines 354-360 Link Here
354
void tagAsStructurallyChanged() {
361
void tagAsStructurallyChanged() {
355
	this.previousStructuralBuildTime = this.lastStructuralBuildTime;
362
	this.previousStructuralBuildTime = this.lastStructuralBuildTime;
356
	this.structurallyChangedTypes = new StringSet(7);
363
	this.structurallyChangedTypes = new StringSet(7);
357
	this.lastStructuralBuildTime = System.currentTimeMillis();
364
	this.lastStructuralBuildTime = computeStructuralBuildTime(this.previousStructuralBuildTime);
358
}
365
}
359
366
360
boolean wasStructurallyChanged(IProject prereqProject, State prereqState) {
367
boolean wasStructurallyChanged(IProject prereqProject, State prereqState) {

Return to bug 162054