Community
Participate
Working Groups
When I do Ctrl-Shift-F on a class.java that contains an error, often the closing bracket is kind of "swallowed" causing many dependent errors to appear Before formatting: << erroneous statement; ... } //end of last method } >> the last "}" being the end of the class After formatting: << erroneous statement; ... } //end of last method} >>
Indeed, here's a standalone example to reproduce in I20060217-1115: public class Try { void m() { bug() } //end of last method }
Fixed and released in HEAD. Regression tests added in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests.test614/615/616.
Verified for 3.2 M6 using build I20060328-0010