Community
Participate
Working Groups
When editing the statement as below to extract a location variable ((IAdaptable) object).getAdapter(IJavaStackFrame.class).var it ends up as ((IAdaptable) object).getAdapter(Object name = IJavaStackFrame.class); The expected result should be IJavaStackFrame frame = ((IAdaptable) object).getAdapter(IJavaStackFrame.class)
My code block public Object[] findSourceElements(Object object) throws CoreException { Object[] result = super.findSourceElements(object); if (result.length == 0) { if(object instanceof IAdaptable) { IJavaStackFrame frame = ((IAdaptable) object).getAdapter(IJavaStackFrame.class); JavaDebugUtils.resolveDeclaringType(frame); } JavaDebugUtils.resolveDeclaringType(object) } return result; } Seems like this happens when there is a error in the code only. But the syntax errors should not effect the postfix completions i guess.
Another example ((URLClassLoader)Application.class.getClassLoader()).var expands to ((URLClassLoader)ClassLoader name = Application.class.getClassLoader());
I think the original plugin didn't had these problems as i remember.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
I will retest with latest releases.