Lines 191-196
Link Here
|
191 |
private static final String JAVAMODELCACHE_DEBUG = JavaCore.PLUGIN_ID + "/debug/javamodel/cache" ; //$NON-NLS-1$ |
191 |
private static final String JAVAMODELCACHE_DEBUG = JavaCore.PLUGIN_ID + "/debug/javamodel/cache" ; //$NON-NLS-1$ |
192 |
private static final String CP_RESOLVE_DEBUG = JavaCore.PLUGIN_ID + "/debug/cpresolution" ; //$NON-NLS-1$ |
192 |
private static final String CP_RESOLVE_DEBUG = JavaCore.PLUGIN_ID + "/debug/cpresolution" ; //$NON-NLS-1$ |
193 |
private static final String CP_RESOLVE_ADVANCED_DEBUG = JavaCore.PLUGIN_ID + "/debug/cpresolution/advanced" ; //$NON-NLS-1$ |
193 |
private static final String CP_RESOLVE_ADVANCED_DEBUG = JavaCore.PLUGIN_ID + "/debug/cpresolution/advanced" ; //$NON-NLS-1$ |
|
|
194 |
private static final String CP_RESOLVE_FAILURE_DEBUG = JavaCore.PLUGIN_ID + "/debug/cpresolution/failure" ; //$NON-NLS-1$ |
194 |
private static final String ZIP_ACCESS_DEBUG = JavaCore.PLUGIN_ID + "/debug/zipaccess" ; //$NON-NLS-1$ |
195 |
private static final String ZIP_ACCESS_DEBUG = JavaCore.PLUGIN_ID + "/debug/zipaccess" ; //$NON-NLS-1$ |
195 |
private static final String DELTA_DEBUG =JavaCore.PLUGIN_ID + "/debug/javadelta" ; //$NON-NLS-1$ |
196 |
private static final String DELTA_DEBUG =JavaCore.PLUGIN_ID + "/debug/javadelta" ; //$NON-NLS-1$ |
196 |
private static final String DELTA_DEBUG_VERBOSE =JavaCore.PLUGIN_ID + "/debug/javadelta/verbose" ; //$NON-NLS-1$ |
197 |
private static final String DELTA_DEBUG_VERBOSE =JavaCore.PLUGIN_ID + "/debug/javadelta/verbose" ; //$NON-NLS-1$ |
Lines 565-588
Link Here
|
565 |
containerPut(project, containerPath, container); |
566 |
containerPut(project, containerPath, container); |
566 |
return true; |
567 |
return true; |
567 |
} else { |
568 |
} else { |
568 |
if (CP_RESOLVE_VERBOSE) |
569 |
if (CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
569 |
verbose_missbehaving_container(containerPath, projects, respectiveContainers, container, newEntries, null/*no old entries*/); |
570 |
verbose_missbehaving_container(containerPath, projects, respectiveContainers, container, newEntries, null/*no old entries*/); |
570 |
return false; |
571 |
return false; |
571 |
} |
572 |
} |
572 |
final IClasspathEntry[] oldEntries = previousContainer.getClasspathEntries(); |
573 |
final IClasspathEntry[] oldEntries = previousContainer.getClasspathEntries(); |
573 |
if (oldEntries.length != newEntries.length) { |
574 |
if (oldEntries.length != newEntries.length) { |
574 |
if (CP_RESOLVE_VERBOSE) |
575 |
if (CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
575 |
verbose_missbehaving_container(containerPath, projects, respectiveContainers, container, newEntries, oldEntries); |
576 |
verbose_missbehaving_container(containerPath, projects, respectiveContainers, container, newEntries, oldEntries); |
576 |
return false; |
577 |
return false; |
577 |
} |
578 |
} |
578 |
for (int i = 0, length = newEntries.length; i < length; i++) { |
579 |
for (int i = 0, length = newEntries.length; i < length; i++) { |
579 |
if (newEntries[i] == null) { |
580 |
if (newEntries[i] == null) { |
580 |
if (CP_RESOLVE_VERBOSE) |
581 |
if (CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
581 |
verbose_missbehaving_container(project, containerPath, newEntries); |
582 |
verbose_missbehaving_container(project, containerPath, newEntries); |
582 |
return false; |
583 |
return false; |
583 |
} |
584 |
} |
584 |
if (!newEntries[i].equals(oldEntries[i])) { |
585 |
if (!newEntries[i].equals(oldEntries[i])) { |
585 |
if (CP_RESOLVE_VERBOSE) |
586 |
if (CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
586 |
verbose_missbehaving_container(containerPath, projects, respectiveContainers, container, newEntries, oldEntries); |
587 |
verbose_missbehaving_container(containerPath, projects, respectiveContainers, container, newEntries, oldEntries); |
587 |
return false; |
588 |
return false; |
588 |
} |
589 |
} |
Lines 1263-1268
Link Here
|
1263 |
public static boolean VERBOSE = false; |
1264 |
public static boolean VERBOSE = false; |
1264 |
public static boolean CP_RESOLVE_VERBOSE = false; |
1265 |
public static boolean CP_RESOLVE_VERBOSE = false; |
1265 |
public static boolean CP_RESOLVE_VERBOSE_ADVANCED = false; |
1266 |
public static boolean CP_RESOLVE_VERBOSE_ADVANCED = false; |
|
|
1267 |
public static boolean CP_RESOLVE_VERBOSE_FAILURE = false; |
1266 |
public static boolean ZIP_ACCESS_VERBOSE = false; |
1268 |
public static boolean ZIP_ACCESS_VERBOSE = false; |
1267 |
|
1269 |
|
1268 |
/** |
1270 |
/** |
Lines 1448-1453
Link Here
|
1448 |
option = Platform.getDebugOption(CP_RESOLVE_ADVANCED_DEBUG); |
1450 |
option = Platform.getDebugOption(CP_RESOLVE_ADVANCED_DEBUG); |
1449 |
if(option != null) JavaModelManager.CP_RESOLVE_VERBOSE_ADVANCED = option.equalsIgnoreCase(TRUE) ; |
1451 |
if(option != null) JavaModelManager.CP_RESOLVE_VERBOSE_ADVANCED = option.equalsIgnoreCase(TRUE) ; |
1450 |
|
1452 |
|
|
|
1453 |
option = Platform.getDebugOption(CP_RESOLVE_FAILURE_DEBUG); |
1454 |
if(option != null) JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE = option.equalsIgnoreCase(TRUE) ; |
1455 |
|
1451 |
option = Platform.getDebugOption(DELTA_DEBUG); |
1456 |
option = Platform.getDebugOption(DELTA_DEBUG); |
1452 |
if(option != null) DeltaProcessor.DEBUG = option.equalsIgnoreCase(TRUE) ; |
1457 |
if(option != null) DeltaProcessor.DEBUG = option.equalsIgnoreCase(TRUE) ; |
1453 |
|
1458 |
|
Lines 2374-2384
Link Here
|
2374 |
// initializer failed to do its job: redirect to the failure container |
2379 |
// initializer failed to do its job: redirect to the failure container |
2375 |
container = initializer.getFailureContainer(containerPath, project); |
2380 |
container = initializer.getFailureContainer(containerPath, project); |
2376 |
if (container == null) { |
2381 |
if (container == null) { |
2377 |
if (CP_RESOLVE_VERBOSE) |
2382 |
if (CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
2378 |
verbose_container_null_failure_container(project, containerPath, initializer); |
2383 |
verbose_container_null_failure_container(project, containerPath, initializer); |
2379 |
return null; // break cycle |
2384 |
return null; // break cycle |
2380 |
} |
2385 |
} |
2381 |
if (CP_RESOLVE_VERBOSE) |
2386 |
if (CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
2382 |
verbose_container_using_failure_container(project, containerPath, initializer); |
2387 |
verbose_container_using_failure_container(project, containerPath, initializer); |
2383 |
containerPut(project, containerPath, container); |
2388 |
containerPut(project, containerPath, container); |
2384 |
} |
2389 |
} |
Lines 2390-2400
Link Here
|
2390 |
throw new JavaModelException(e); |
2395 |
throw new JavaModelException(e); |
2391 |
} |
2396 |
} |
2392 |
} catch (RuntimeException e) { |
2397 |
} catch (RuntimeException e) { |
2393 |
if (JavaModelManager.CP_RESOLVE_VERBOSE) |
2398 |
if (JavaModelManager.CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
2394 |
e.printStackTrace(); |
2399 |
e.printStackTrace(); |
2395 |
throw e; |
2400 |
throw e; |
2396 |
} catch (Error e) { |
2401 |
} catch (Error e) { |
2397 |
if (JavaModelManager.CP_RESOLVE_VERBOSE) |
2402 |
if (JavaModelManager.CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
2398 |
e.printStackTrace(); |
2403 |
e.printStackTrace(); |
2399 |
throw e; |
2404 |
throw e; |
2400 |
} finally { |
2405 |
} finally { |
Lines 2405-2411
Link Here
|
2405 |
// just remove initialization in progress and keep previous session container so as to avoid a full build |
2410 |
// just remove initialization in progress and keep previous session container so as to avoid a full build |
2406 |
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=92588 |
2411 |
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=92588 |
2407 |
containerRemoveInitializationInProgress(project, containerPath); |
2412 |
containerRemoveInitializationInProgress(project, containerPath); |
2408 |
if (CP_RESOLVE_VERBOSE) |
2413 |
if (CP_RESOLVE_VERBOSE || CP_RESOLVE_VERBOSE_FAILURE) |
2409 |
verbose_container_initialization_failed(project, containerPath, container, initializer); |
2414 |
verbose_container_initialization_failed(project, containerPath, container, initializer); |
2410 |
} |
2415 |
} |
2411 |
} |
2416 |
} |
Lines 2418-2424
Link Here
|
2418 |
// not used |
2423 |
// not used |
2419 |
} |
2424 |
} |
2420 |
}).getFailureContainer(containerPath, project); |
2425 |
}).getFailureContainer(containerPath, project); |
2421 |
if (CP_RESOLVE_VERBOSE_ADVANCED) |
2426 |
if (CP_RESOLVE_VERBOSE_ADVANCED || CP_RESOLVE_VERBOSE_FAILURE) |
2422 |
verbose_no_container_initializer_found(project, containerPath); |
2427 |
verbose_no_container_initializer_found(project, containerPath); |
2423 |
} |
2428 |
} |
2424 |
return container; |
2429 |
return container; |