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

Add default implementation for `ConstantPoolBuilder​::methodTypeEntry​(MethodTypeDesc)`

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Unlike every other `ConstantPoolBuilder​::*Entry` method which takes a `ConstantDesc`, `ConstantPoolBuilder​::methodTypeEntry​(MethodTypeDesc)` is the only method which doesn’t have a default implementation.

      I propose to move the implementation from `SplitConstantPool` to `ConstantPoolBuilder`:
      ```java
      default MethodTypeEntry methodTypeEntry(MethodTypeDesc descriptor) {
      return methodTypeEntry(utf8Entry(descriptor));
      }
      ```


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: