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 203662 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java (-4 / +9 lines)
Lines 501-510 Link Here
501
				    if (!isExcluded) {
501
				    if (!isExcluded) {
502
						IPath addedPackagePath = resource.getFullPath().removeFirstSegments(segmentCount);
502
						IPath addedPackagePath = resource.getFullPath().removeFirstSegments(segmentCount);
503
						createFolder(addedPackagePath, md.binaryFolder); // ensure package exists in the output folder
503
						createFolder(addedPackagePath, md.binaryFolder); // ensure package exists in the output folder
504
						// add dependents even when the package thinks it exists to be on the safe side
504
						// see if any known source file is from the same package... classpath already includes new package
505
						if (JavaBuilder.DEBUG)
505
						if (sourceLocations.length > 1 && newState.isKnownPackage(addedPackagePath.toString())) {
506
							System.out.println("Found added package " + addedPackagePath); //$NON-NLS-1$
506
							if (JavaBuilder.DEBUG)
507
						addDependentsOf(addedPackagePath, true);
507
								System.out.println("Skipped dependents of added package " + addedPackagePath); //$NON-NLS-1$
508
						} else {
509
							if (JavaBuilder.DEBUG)
510
								System.out.println("Found added package " + addedPackagePath); //$NON-NLS-1$
511
							addDependentsOf(addedPackagePath, true);
512
						}
508
				    }
513
				    }
509
					// fall thru & collect all the source files
514
					// fall thru & collect all the source files
510
				case IResourceDelta.CHANGED :
515
				case IResourceDelta.CHANGED :

Return to bug 203662