Community
Participate
Working Groups
Created attachment 278489 [details] Example project to reproduce the problem with. See reproduction steps in bug description. Reproduction steps: 1. Import project from attached archive "ExampleProject.zip". 2. Open type "somepackage.Sub". 3. Move the cursor before the existing method in the class. 4. Type "my" and invoke content assist. 5. Choose "myMethod" content assist proposal. 6. Observe bad formatting: @Override public void myMethod() { // TODO Auto-generated method stub super.myMethod(); } 7. Expected formatting is: @Override public void myMethod() { // TODO Auto-generated method stub super.myMethod(); } Further notes: a) Removing the class Java doc comment of "Sub.java" seems to prevent the issue. b) Ctrl+Z after the content assist invoke in steps 5. and 6. seems to also ensure that the next content assist invoke has correct formatting. See also attached video "formatter_wrong_indentation_with_class_javadoc.mp4". Seen with: Eclipse SDK Version: 2019-06 (4.12) Build id: I20190402-1800 RHEL 7.4 GTK 3.22 Also seen with 4.10, not sure about earlier versions.
Created attachment 278490 [details] Video showing the problem with the reproduction steps from the bug description.
Seems like a content assist issue, moving to jdt-text.
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.