Project: JDT
Bug 154787 [clean up][member access] 'Change accesses through subtypes' does not check if supertype is visible
Reported: 2006-08-22 20:31:39 | Status: resolved fixed

Version 3.3M1. If you have the following two types and you do a "Clean Up" with "Change access to static using declaring type." enabled, you will not be able to compile the results. This example is a simplification based on our production code. SomeClass.java: package test; public class SomeClass implements SomeConstants { } ---- SomeConstants.java: package test; interface SomeConstants { String FOO = "FOO"; } ---- package test2; import test.SomeClass; public class SomeSubclass { public String getIt() { return SomeClass.FOO; } } ---- Select "SomeSubclass" and do a "Clean Up", results in: Severity and Description Path Resource Location Creation Time Id SomeConstants cannot be resolved Test Java 1.5/src/test2 SomeSubclass.java line 21 1156293250127 16790299 The type test.SomeConstants is not visible Test Java 1.5/src/test2 SomeSubclass.java line 12 1156293250127 16790297

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java