[ checkstyle-Bugs-1220624 ] handling nested generics

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ checkstyle-Bugs-1220624 ] handling nested generics

SourceForge.net
Bugs item #1220624, was opened at 2005-06-14 13:07
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=1220624&group_id=29721

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Framework
Group: release 4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Hollis Waite (hwaite)
Assigned to: Oliver Burn (oburn)
Summary: handling nested generics

Initial Comment:
In beta 4, errors are occurring with generic expressions
that are more than one level deep.  Haven't had the time
to figure out exactly what conditions cause this; it looks
like there are several variations of the problem.

----
package com.jshift.util;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class BadCompositeList<T> {
        public BadCompositeList() {this(new
ArrayList<List<? extends T>>());}
        public BadCompositeList(List<List<?
extends T>> pComponentLists) {}
        public Iterator<T> iterator() {
                return new Iterator<T>() {
                        Iterator<? extends T>
x = new Iterator<T>() {
                                public
boolean hasNext() {return false;}
                                public T next
() {return null;}
                                public void
remove() {}
                        };
                        public boolean hasNext
() {return true;}
                        public T next() {return
null;}
                        public void remove() {}
                };
        }
}
----

com.puppycrawl.tools.checkstyle.checks.usage.transmo
grify.Resolver resolveExpression
SEVERE: Unhandled expression type: 172

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=1220624&group_id=29721


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Checkstyle-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-devel
Loading...