[ checkstyle-Bugs-1193509 ] 4.0beta2 has problems with jdk-1.5 and generics

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

[ checkstyle-Bugs-1193509 ] 4.0beta2 has problems with jdk-1.5 and generics

SourceForge.net
Bugs item #1193509, was opened at 2005-05-01 17:13
Message generated for change (Comment added) made by hwaite
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=1193509&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: Rohan Lenard (mr_rohan)
Assigned to: Michael Studman (mstudman)
Summary: 4.0beta2 has problems with jdk-1.5 and generics

Initial Comment:
I'm guessing this is the problem (aren't there new token
types...)

[checkstyle] May 2, 2005 8:11:20 AM
com.puppycrawl.tools.checkstyle.checks.usage
.transmogrify.Resolver resolveExpression
[checkstyle] SEVERE: Unhandled expression type: 163



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

Comment By: Hollis Waite (hwaite)
Date: 2005-06-14 12:43

Message:
Logged In: YES
user_id=457777

The bug description is a little vague.  I encounter this error
when subclassing a generic class.  Generic local/member
variables and method signatures don't present a problem.  A
simple example:

package x;
import java.util.List;
public abstract class BadCls<T> implements List<T> {}


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

Comment By: Rohan Lenard (mr_rohan)
Date: 2005-05-09 19:14

Message:
Logged In: YES
user_id=651057

Michael Studman thought this was a bug in the transmogrifier.

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

Comment By: Scott R Duchin (duchin)
Date: 2005-05-09 19:11

Message:
Logged In: YES
user_id=781064

Beta 2 works for me fine.  I have lots of generics.  I do
believe that the default for WhitespaceAround should not
have the tokens GENERIC_START and GENERIC_END as I had to
use the following tokens list to get around it:

    <module name="WhitespaceAround">
      <property name="tokens"
value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN"/>
    </module>

I also added this token list for NoWhitespaceBefore:

    <module name="NoWhitespaceBefore">
      <property name="tokens"
value="GENERIC_START,GENERIC_END"/>
    </module>

and I also added GENERIC_START token into the test for
NoWhitespaceAfter.

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

Comment By: Oleg Sukhodolsky (o_sukhodolsky)
Date: 2005-05-03 00:46

Message:
Logged In: YES
user_id=746148

it looks very similar to [ 1109222 ] Java 5.0 for:each
breaks OneMethodPrivateFieldCheck

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

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