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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 15
    • 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)

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

              Created:
              Updated: