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

CTW: Add option to remove clinits before loading

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • b26

      To allow for safe running of CTW against untrusted jar / class files, I suggest adding an option to remove <clinit> methods from the classes' bytestreams. This would prevent unwanted execution of the code being tested.
      The new and shiny ClassFile API presents good tools for that.

            enikitin Evgeny Nikitin
            enikitin Evgeny Nikitin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: