Community
Participate
Working Groups
-Start with following code snippet package p; public class test { /** * @param args * */ public static void main(String[] args) { do { } while (false); for (;;) { } // format: ON } } - turn of formatting before main(..) public class test { /** * @param args * format: OFF */ public static void main(String[] args) { do { -Format the whole file to get the following - the comment in unformatted. I think turning off formatting should just leave the comment as it is. package p; public class test { /** * @param args * format: OFF */ public static void main(String[] args) { do { } while (false); for (;;) { } // format: ON } }
Created attachment 161591 [details] Proposed patch The new lines before disabling comment also need specific treatment before javadoc comments...
Olivier, although it's a minor defect, may be can we put its fix for 3.6M6? The fix is definitely safe as the piece of added code is already used for line and block comments...
+1 as I want some stability in this new feature.
Tagging as 3.6M7. This is not critical and as is should not be released after the M6 test day. Will be released once M6 is declared.
Released for 3.6M7 in HEAD stream.
Verified for 3.6M7 using build I20100424-2000
Verified.