LiteralTree.getValue() should return Boolean for Kind.BOOLEAN_LITERAL literals.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 6
    • Affects Version/s: 6
    • Component/s: tools
    • None
    • b89
    • generic
    • generic

      The javac parser changed recently so that boolean literal values are now saved in JCTree.JCLiteral.value as Integer objects of 0 and 1 rather than Boolean. That's fine for internal values (if a bit C-like), but LiteralTree.getValue() should not return an Integer when its Kind is BOOLEAN_LITERAL.

            Assignee:
            Jonathan Gibbons
            Reporter:
            Tom Ball (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: