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

Improve CheckCSMs test to check for overriding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 17
    • Fix Version/s: tbd
    • Component/s: core-libs

      Description

      CheckCSMs test intends to allow a white list of virtual methods; all other are expected to be static or final instance method.

      JDK-8264774 has a sealed interface which defines caller-sensitive interface method. The test should be updated to allow CSM in a sealed interface if all implementations (all subclasses) of such CSM are final.

      Currently the test does not fail if both interface and implementation methods are @CS annotated but fails if only interface is annotated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: