Class.getModifiers returns the wrong bits : Fails with Kestrel RC2

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.2.0
    • Affects Version/s: 1.1.5, 1.2.0
    • Component/s: core-libs
    • None
    • 1.2beta4
    • generic, sparc
    • solaris_2.5, solaris_2.6

      There are several problems here with the value reported by Class.getModifiers
       - the ACC_SUPER bit appears (and is observed by users as "synchronized")
       - the javadoc for this method promises that the source-level modifiers
         are returned, and it explicitly mentions private and protected: it
         should also mention static as a possibility
       - the method actually returns the "transformed" (low-level) modifiers,
         so that in fact "private", "protected", and "static" never appear,
         even if they were specified in the source code: this is wrong

            Assignee:
            Anand Palaniswamy (Inactive)
            Reporter:
            John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: