Community
Participate
Working Groups
The code formatter (Source->Format) doesn't do anything when the code contains any of the recently (JDK 1.5) introduced generics. See this example: public class Test { /*public static void confuse() { java.util.List<String> l; }*/ public static void test() { for (int i=0;i<10;i++) { } } } The formatter works fine unless the method confuse() is uncommented, in which case the code formatter doesn't do anything. The "Compiler compliance level" in the preferences is set to 1.5 and the code can be compiled and executed. This happened using the JDK 1.5 Beta 2.
This should be fixed if you use the latest 3.1 integration build. Could you please give it a try? Thanks.
I just tried the 3.1 integration build (Build ID 200407271028) and the problem does not occur anymore.
*** This bug has been marked as a duplicate of 70995 ***