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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • tools
    • b24
    • generic
    • generic

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: