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

Symbol.getModifiers omits ACC_ABSTRACT from interface with default methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 8, 8-repo-lambda
    • tools
    • b87
    • Verified

      When getting modifiers of an interface, Symbol.getModifiers reverts AC_ABSTRACT if the interface contains default. This is a combinations of a fix that was put in place to preserve correctness of flags for default methods when accessed through compiler API and fact that javac internally marks interfaces with default with a special DEFAULT flag (same used for marking default methods).

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: