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

(reflect spec) Class.getField() does not specify behavior for ambiguous members

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.1
    • core-libs

      According to the JLS a class or interface may inherit multiple fields. This
      is legal. Reference to such a field by its simple name is ambiguous.
      However, if one refers to the field using getField(), there is no specification
      of what the result should be. Similar situations can arise with respect to methods (the methods can differ on their throws clauses, and can therefore
      be distinguished via Method.getExceptionTypes).

      gilad.bracha@eng 1998-07-28

            iris Iris Clark
            gbrachasunw Gilad Bracha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: