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

ObjectStreamField constructor eagerly load ObjectStreamClass

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: