[ checkstyle-Bugs-1220799 ] nonstatic initializers for anonymous classes not handled

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

[ checkstyle-Bugs-1220799 ] nonstatic initializers for anonymous classes not handled

SourceForge.net
Bugs item #1220799, was opened at 2005-06-14 17:32
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=1220799&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: nonstatic initializers for anonymous classes not handled

Initial Comment:
Checkstyle chokes on anonymous nonstatic initializers

----
package com.jshift.util;
import java.util.HashSet;

class DiscreteMath extends HashSet {
  public void x() {Object o = new HashSet() {{add(null);}};}
}
----
com.puppycrawl.tools.checkstyle.checks.usage.transmo
grify.Resolver resolveExpression
SEVERE: Unhandled expression type: 11

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=1220799&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