Details
Description
A newline after '>' fails the compiler in interface declaration (the following does not compile):
public interface MyGenericInterface<T extends Object> { }
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
MyGenericInterface.groovy: 1: unexpected token: <newline> @ line 1, column 54.
ricInterface<T extends Object>
^
1 error
But if the newline is not preceded by a '>', compiler is happy (the following compile):
public interface MyGenericInterface<T extends Object> extends java.util.List { }
or
public interface MyGenericInterface<T extends Object> { }
This does not repro in classes (the following compiles):
public class MyGenericClass<T extends Object> { }
Fixed.