Community
Participate
Working Groups
20041020 The following code can not be formatted (null returned as resulting edit) Not sure if 1.5 really allows inner enums, but I would guess it does. public class Test { public enum MyInnerEnum { A, B } }
Member enums are ok. Local ones are not.
It is working for me.
Just tried again, does not work for me. An example is the code sample for the code formatter's 'New Lines' preview. Currently changing the settings there do not change the preview.
Are you sure that you are using the 1.5 mode?
I will investigate.
yes, I'm in 1.5 mode (note that there are other 1.5 preview code samples in the code fomatter that work)
I reproduced the problem using the source code in the New Lines view. The code doesn't look like the test case you provided. I am investigating the failure. Should be fixed today.
Fixed and released in HEAD. Regression test added.
See bug 76766 for remaining problems with empty body in enum declaration and enum constant.
Verified for 3.1M3 with build I20041102