Community
Participate
Working Groups
Take the following example: package workbench; import javafx.beans.Observable; import javafx.beans.property.ObjectProperty; import javafx.scene.Scene; public class App { public static void boo() { } public void invalidated(Observable observable) { App. if (observable instanceof ObjectProperty<?>) { ObjectProperty<?> sceneProperty = (ObjectProperty<?>) observable; if (sceneProperty.get() != null) { App. observable.removeListener(null); App. } } } } At 1st and 3rd App. i get the suggestion for method boo, but at the 2nd App. i don't get the suggestion for boo or .class. This works in Eclipse 4.19, seems to be a regression from recent completion enhancements.
Seems like in latest build the above problem is fixed, but we still have the following package workbench; import javafx.beans.Observable; import javafx.beans.property.ObjectProperty; public class App { public static void boo() { } private static class Inner { public void invalidated(Observable observable) { App. if (observable instanceof ObjectProperty<?>) { App. ObjectProperty<?> sceneProperty = (ObjectProperty<?>) observable; if (sceneProperty.get() != null) { App. observable.removeListener(null); } App. } } } } At 1st and 4th App. i get the suggestion for method boo, but at the 2nd and 3rd App. i don't get the suggestion for boo or .class.
Gayan, probably this is related to bug 573632.
Yes @Andrey, I can check with @Stephans patch and see if my second scenario works as well. I think it should be a difference between inner and normal class.
yes this is same as the other bug. we can mark as duplicate
*** This bug has been marked as a duplicate of bug 573632 ***