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

Serializable implementations should be provided for ConstantDescs.

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      openjdk version "12-ea" 2019-03-19
      OpenJDK Runtime Environment (build 12-ea+30)
      OpenJDK 64-Bit Server VM (build 12-ea+30, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      The ConstantDesc interface is a new feature in JDK 12 for describing more types of data in a static and nominal manner. This means it should be inherently simple to give Serializable implementations for most if not all ConstantDesc . This feature would be very useful when reworking a design to use Serializable instead of ConstantDescs embedded in class files (ConstantDesc are not "lazy" enough for certain purposes such as templating) or vice-versa.

      This might be inappropriate for DynamicConstantDesc by default and some cases such as VarHandleDesc though.


            vromero Vicente Arturo Romero Zaldivar
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: