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

Use static factory methods to create Binding instances

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: tools
    • Labels:

      Description

      Some binding operators have no fields, so we really only need a single instance. Furthermore, some binding operands need verification (e.g. to check whether the type passed to a MOVE is a primitive type).

      By switching to static factory methods instead of direct constructor calls, we can return either a singleton instance, or do some argument verification, while also having a uniform API for creating binding operators.

        Attachments

          Activity

            People

            • Assignee:
              jvernee Jorn Vernee
              Reporter:
              jvernee Jorn Vernee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: