Community
Participate
Working Groups
If I have an html 'pre' block inside a Javadoc comment that consists of just white space (including at least one new line), then code formatting produces an ArrayIndexOutOfBoundsException. This is on Eclipse SDK Version: 3.1.0 Build id: I20050627-1435. The same bug existed in 3.0.1 except it didn't say it was an ArrayIndexOutOfBoundsException. This *only* seems to a problem if I use CTRL-Shift-F. If I go through the menu system, it doesn't happen.
I cannot reproduce in 3.1. Could you please try with 3.1? Thanks.
Forget my comment. I could not reproduce with latest head stream. I am investigating. Would you have a test case that fails with 3.1.0?
Created attachment 27402 [details] Test case showing empty pre-block.
Created attachment 28233 [details] Proposed fix
This is fixed in HEAD. Closing as WORKSFORME. Added regression test in org.eclipse.jdt.core.tests.formatter.comment.JavaDocTestCase#test109605()