Community
Participate
Working Groups
Trying to sort this code completely scrambles it. public interface I<T> { public I<T> foo(A<T> A); public <S> I<S> foo2(C<T,S> c); public <S> I<S> foo3(C<T,I<S>> c); public <K> J<T> bar(C<T,K> c); public <K> J<T> bar2(C<T,K> c); public <K> I<K<K,T> bar3(C<T,K> c); public <K,E> I<K<K,E> bar3(C<T,K> c, C<T,E> c2); } It ends up like this: public interface I<T> { public <K> J<T> bar(C<T,K> c); public <K> J<T> bar2(C<T,K> c); K<K,T> bar3(C<T,K> c); K<K,E> bar3(C<T,K> c, C<T,E> c2); public I<T> foo(A<T> A); public <K> I<public <S> I<S> foo2(C<T,S> c); public <K,E> I<public <S> I<S> foo3(C<T,I<S>> c); } The problem comes from the syntax errors on the definition of the two bar3 methods (missing '>').
*** Bug 113766 has been marked as a duplicate of this bug. ***
Fixed and released in HEAD. If a level contains malformed nodes, this level is excluded from the sorting. Added regression tests in org.eclipse.jdt.core.tests.model.SortCompilationUnitElementsTests.test30/31/32 and updated test12.
Verified for 3.2 M3 using build I20051031-0010