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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: