Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8267580

The method JavacParser#peekToken is wrong when the first parameter is not zero

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • tools
    • b24
    • generic
    • generic

      The implementation of the method JavacParser#peekToken(int lookahead, Predicate<TokenKind>... kinds) succeeds only when the first parameter `lookahead` is zero.

      If the `lookahead` is not zero, it is wrong and returns unexpected result.

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: