[ checkstyle-Bugs-1220624 ] handling nested generics

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

[ checkstyle-Bugs-1220624 ] handling nested generics

Bugs item #1220624, was opened at 2005-06-15 04:07
Message generated for change (Settings changed) made by oburn
You can respond by visiting:

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: Nobody/Anonymous (nobody)
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>() {
boolean hasNext() {return false;}
                                public T next
() {return null;}
                                public void
remove() {}
                        public boolean hasNext
() {return true;}
                        public T next() {return
                        public void remove() {}

grify.Resolver resolveExpression
SEVERE: Unhandled expression type: 172


You can respond by visiting:

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]