[checkstyle-5.5] Unexpected token: container Unexpected token: <

SpiX <[email protected]> Fri, 27 Jan 2012 04:29:49 -0800 (PST)
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Seems like there is a problem with check of this type of code with generics:

private someClass() {
        SomeType type = new SomeType () {
            public <T extends SomeOther> List<T> method(SomeOtherType type)
{
                List<Other> somelist  = ClassType.getSomething();
                return (List<T>) somelist;
            }
        };

Exception is :
Unexpected token: type
Unexpected token: < 

Bug was found in several different unconnected projects.

--
View this message in context: http://checkstyle.2069334.n4.nabble.com/checkstyle-5-5-Unexpected-token-container-Unexpected-token-tp4333298p4333298.html
Sent from the CheckStyle - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2