Tom Copeland

Show:

What's happening?

  • Comment: Failed parsing byte[].class.hashCode()

    What if we change CastLookahead like this? ======== void CastLookahead(): {} { LOOKAHEAD(3) "(" PrimitiveType() ")" | LOOKAHEAD("(" Type() "[") "(" Type() "[" "]" | "(" Type() ")" ( "~" | "!" | "(" | | "this" | "super" | "new" | Literal() ) } ======== That seems to work for both cases, and a scan of the JDK didn't turn up anything... can you try...

    2009-09-29 16:06:33 UTC in PMD