Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1447

FieldUtilsTest fails in Java 12

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.1
    • 3.9
    • None
    • None

    Description

      FieldUtils.removeFinalModifier(Field, boolean) no longer removes the final modifier because of a change in java 12. The email: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-November/056486.html discusses this in the jcp. In java versions 12.0 or later we should throw sn UnsupportedOperationException. Furthermore, we should deprecate the method as it clearly won't have a use in the future.

      Attachments

        Activity

          People

            chtompki Rob Tompkins
            chtompki Rob Tompkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: