Community
Participate
Working Groups
Copy the following code. Do not format it after you pasted it. class A { int f1=3, f2=f1; public static void main(String[] args) { A a = new A(); System.out.println("f1: "+ a.f1 + " f2: "+ a.f2); } } Extract a new method for the System.out.println. The extracted method gets no indentation which looks strange. When the code is formatted the indentation is correct. If a lookup is performed to check what kind of indentation is used before, it should be smart enough to see that 2 whitespaces are used. If it does not perform such checks it should do whatever is specified for that project.
Seams to be an ASTRewriter bug. A method decl is created and added to the body declaration in: ExtractMethodRefactoring.createChange(IProgressMonitor)
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.
Still an issue in 4.11.