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

ObjectStreamField constructor eagerly load ObjectStreamClass

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      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

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

              Dates

              Created:
              Updated:
              Resolved: