Community
Participate
Working Groups
The feature to format java-doc comments is awesome. But I miss the feature to turn of the escaping of html entities like &at;. When writing example code for my java 5 application I need to write "&at;MyAnnotation" inside a javadoc comment, which will end up as "&at;MyAnnotation" in the javadoc.
To reproduce the issue, activate "Format Java code snippets inside 'pre' tags" and write &at; inside a <pre> tag within a javadoc comment. Then format the file and see it has been transformed into &at
The formatter should not touch html entities at all. No new option needed. Adjusting summary. See also bug 238547.
*** Bug 238547 has been marked as a duplicate of this bug. ***
*** Bug 204257 has been marked as a duplicate of this bug. ***
Created attachment 139305 [details] Proposed patch When text inside <pre> tag is not valid Java code then skip HTML tags transformation...
Released for 3.6M1 in HEAD stream.
Olivier, After having heavily tested this change on Ganymede and JDKs full source workspace (~70,000 units formatted), I think this fix may be a good candidate for 3.5.1 as it fixes lot of invalid HTML tags transformation inside <pre> tags while formatting comments... We have this issue since day 1 and I'm quite sure that many users have disabled comments formatting due to this issue as usage of <pre> is very common... What do you think?
I agree. This is really annoying. +1 for 3.5.1.
Released for 3.5.1 in R3_5_maintenance stream.
Verified for 3.6M1 using build I20090802-2000
Should not have been set as VERIFIED because target is not 3.6M1 but 3.5.1...
...but it's still fixed.
Verified for 3.5.1RC2 using M20090826-1100.