Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      When values of ValuedEnum are defined as final (as the JavaDoc suggests),
      then all classes that use this enum will hold the value itself and not reference
      after compilation. Compiler substitutes references to final with the value of
      final variable itself. Then if you change the value in you enum and recompile
      it, you must recompile also all the classes that use the enum. Otherwise they
      continue to use old value.

        Activity

        Hide
        Henri Yandell added a comment -

        Which all seems fine. Adding a note to the javadoc that mentions this is
        probably in order as it can't hurt.

        Show
        Henri Yandell added a comment - Which all seems fine. Adding a note to the javadoc that mentions this is probably in order as it can't hurt.
        Hide
        Henri Yandell added a comment -

        Added a javadoc. Largely this is something developers just learn, do a clean then build if making lots of
        changes.

        Show
        Henri Yandell added a comment - Added a javadoc. Largely this is something developers just learn, do a clean then build if making lots of changes.
        Hide
        Henri Yandell added a comment -

        2.1 released, closing.

        Show
        Henri Yandell added a comment - 2.1 released, closing.

          People

          • Assignee:
            Unassigned
            Reporter:
            Itzik Levin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development