Community
Participate
Working Groups
Using 3.6M3 but it occurs since 3.4... Consider the following test case: package wkps3; /** * This sample produce an MalformedTreeException * when formatted. * * <p> First paragraph * {@link java.lang.String </code>a simple * string<code>}. * * <p> Second paragraph. * * <p> Third paragraph. </p> * */ public class X01 { } Try to format it using the Eclipse built-in profile and you get a MalformedTreeException!
Note that modifying the comment 0 sample as follow: package wkps3; /** * This sample produce an AIIOBE when formatting. * * <p> First paragraph * {@link java.lang.String </code>a simple * string<code>}. */ public class X02 { } produces an AIOOBE when formatting it instead of a MTE... Not sure this is the same problem. I'll open a separate bug if after having investigated I see that's a different issue...
Created attachment 151747 [details] Proposed patch Store the html tag level when entering into an inline tag, hence it's possible to restore it if necessary when leaving...
Released for 3.6M4 in HEAD stream.
Verified for 3.6M4 using I20091207-1800
Verified for 3.6M4 using Build id: I20091207-1800