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

Pattern.Bound has `static` fields that should be `static final`.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 17, 21, 22
    • core-libs
    • b18
    • generic
    • generic

    Description

          static final class Bound extends Node {
              static int LEFT = 0x1;
              static int RIGHT= 0x2;
              static int BOTH = 0x3;
              static int NONE = 0x4;

      The fields are never reassigned and the lack of `final` seems to be an oversight.

      Attachments

        Issue Links

          Activity

            People

              emcmanus Eamonn McManus
              emcmanus Eamonn McManus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: