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

The getMethood() routine only works w/exact types - not w/subclassed types

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.1.5, 1.2.0
    • core-libs
    • sparc
    • solaris_2.5.1, solaris_2.6



      Name: dgC58589 Date: 01/07/98


      Both getMethod & getConstructor need _exact_ types for a match.
      They should be able to return the right method (or constructor)
      if I specify a derived type.
      e.g.
      If I used getMethod to look up add(Component) but my Component is a Label,
      the routine returns NULL
      Same w/getConstructor()
      (Review ID: 22760)
      ======================================================================

            never Tom Rodriguez
            dgrahamcsunw David Graham-cumming (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: