Create a test to verify that non-static final fields of a hidden class are trusted and optimized by C2

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 15
    • Component/s: hotspot

      The non-static final fields declared in a hidden class are not modifiable even through reflection [1]. They are trusted non-static final fields that can be optimized by JIT.

      Need a regression test for that.

      [1] https://download.java.net/java/early_access/jdk15/docs/api/java.base/java/lang/reflect/Field.html#set(java.lang.Object,java.lang.Object)

            Assignee:
            Dean Long
            Reporter:
            Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: