Community
Participate
Working Groups
In a role bound to org.eclipse.jdt.internal.corext.codemanipulation.StubUtility2 I was adding a method binding to createImplementationStub(ICompilationUnit, ASTRewrite, ImportRewrite, ImportRewriteContext, IMethodBinding, String, CodeGenerationSettings, boolean) which rendered the signature with ImportRewrite$ImportRewriteContext which certainly didn't compile. Additionally, all types were mentioned using the fully qualified name, which too is undesirable.
Put on radar.
I've added CodeCompletionTest#testCreateMethodBinding1() along the lines of comment 0 (commit e85de3c3dfa8033bf81f31b8d3392d6c991e3b98). However, neither using the test nor in real-life experiments against the exact method mentioned was I able to reproduce the problem. All imports were created properly, all types were referenced by the simple names. There's a slight chance that recent improvements regarding import rewriting also fixed this.
Verified using build 2.2.0.201209221349