JDK-8253959 : Add @ValueBased to ConstantDescriptors
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2020-10-02
  • Updated: 2020-11-16
  • Resolved: 2020-11-16
Related Reports
Blocks :  
Description
All subinterfaces and implementation classes���other than java.lang.String���of java.lang.constant.ConstantDesc, including ClassDesc, MethodTypeDesc, MethodHandleDesc, DirectMethodHandleDesc, DynamicCallSiteDesc, and DynamicConstantDesc, and the classes java.lang.Enum.EnumDesc and java.lang.invoke.VarHandle.VarHandleDesc
Comments
Few of the java.lang.constant classes can be value based due to the presence of abstract superclasses with fields. There is little value in marking the few remaining as @ValueBased.
16-11-2020