You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #367, #435 and #438 -- when code completion includes an import, conflicting names are not considered. This results in an import that shadows or is shadowed by another name in the scope.
//import static x.y.z.VALUE as NAME//import static x.y.z.NAMEclassC {
//static Object NAME//Object NAME//static def NAME() {}// def NAME() {}voidmeth(/*defNAME*/) {
//def NAME
util(NA|) // completion on "NAME : E" proposal introduces static import that conflicts with any of the NAME declarations above
}
voidutil(Ee) {}
}
packagep;
enumE {
NAME
}
A similar situation may exist if completion inserts "E.NAME" and "import p.E" and there is a name "E" in scope.
Partially- or fully-qualified names should be inserted in cases of conflict.
The text was updated successfully, but these errors were encountered:
If org.eclipse.jdt.internal.corext.codemanipulation.ContextSensitiveImportRewriteContext.findInContext(String, String, int) can return a conflicting binding, then a qualifier will be used instead. This already occurs for types, fields, methods, properties.
Related to #367, #435 and #438 -- when code completion includes an import, conflicting names are not considered. This results in an import that shadows or is shadowed by another name in the scope.
A similar situation may exist if completion inserts "E.NAME" and "import p.E" and there is a name "E" in scope.
Partially- or fully-qualified names should be inserted in cases of conflict.
The text was updated successfully, but these errors were encountered: