JDK-8202030 : Nominal descriptor types in java.lang.invoke.constant
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-04-19
  • Updated: 2018-11-01
  • Resolved: 2018-11-01
Related Reports
Duplicate :  
Description
As described in http://cr.openjdk.java.net/~briangoetz/amber/constables.html, provide a family of types to model nominal descriptions of classes, method handles, and other runtime or classfile entities, and retrofit them into core classes such as String and Class.  These will live in the new package `java.lang.invoke.constant`.  

This issue tracks the base abstractions `ConstantDesc` and `Constable`, and their subtypes.  Bytecode APIs and bootstrap methods can use `ConstantDesc` to describe constants; compilers can use `Constable` as part of intrinsification and constant folding.  Compiler and language support is part of a separate task.