[ 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
|  
Report Content as Inappropriate

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

SourceForge.net
Bugs item #1220799, was opened at 2005-06-15 08:32
Message generated for change (Comment added) made by oburn
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: Nobody/Anonymous (nobody)
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

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

>Comment By: Oliver Burn (oburn)
Date: 2005-06-15 09:13

Message:
Logged In: YES
user_id=218824

personally I am not keen on maintaining the transmogrify
stuff for JDK5.0. I would be happy to drop it from the
optional support and move it into contrib.

Personally I use an IDE like Eclipse to tell me about unused
code.

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

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
Loading...