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

ObjectStreamField constructor eagerly load ObjectStreamClass

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs

    Description

      ObjectStreamField uses ObjectStreamClass.getClassSignature, a simple static utility. This cause ObjectStreamClass to load, pulls in a few classes and does some native initialization that could be deferred.

      It seems these utility methods could be replaced by using unparse/unparseMethod in sun.invoke.util.BytecodeDescriptor

      Attachments

        Activity

          People

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: