Make field in RandomAccessFile final

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 21
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b02

      The reference field `fd` is never updated even though the fields of the `FieldDescriptor` actually referenced is updated by native code (e.g. `open0()`). This allows the `fd` field to be declared `final` which might unlock some performance capabilities. Also, it makes the intent more clear and improves visibility across threads (such as GC threads).

      There is also a switch that could be modernised.

            Assignee:
            Per-Ake Minborg
            Reporter:
            Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: