Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-364

Generate unions generate getValue()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Fluorine
    • None
    • Binding codegen
    • None

      Unions have a synthetic getValue() method, which returns a char[], as well as a corresponding constructor. This was needed for Config Subsystem and its use of JMX and is superfluous with that component gone.

      Furthermore the synthetic method encroaches on method namespace which is populated by names from model - hence some constructs would end up not being generated correctly.

      Fix this by generating a stringValue() synthetic method, without the ceremony in binding model itself. Union objects can still be instantiated using their associated Builder's getDefaultInstance() method.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: