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

TypeCode.member_label does not produce Any.equal enum references

XMLWordPrintable

    • generic
    • generic

      I want to be able to compare an enum value returned by TypeCode.member_label(int)

      There's a union type "union1" whose discriminator is an enum "enum1".
      Since Any.equal is supposed to be true if the two Any objects have the same type
      and the same data, and we only allow one instance of each flavor of enum,

      unionHelper.type().member_label(0)

      should be equal to Any zAny , where

      enum1Helper.insert(zAny, enum1.from_int(0));

      appears just above the test

      brian.preston@eng 1998-06-12

            Unassigned Unassigned
            bprestonsunw Brian Preston (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: