java.lang.reflect.Method#equals doesn't short-circuit with same instances

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: core-libs

      A DESCRIPTION OF THE PROBLEM :
      java.lang.reflect.Method#equals could be optimized to immediately return true if it is passed the same instance, as is the typical pattern. It may avoid some overhead when Methods are used as keys in Maps, which seems to be a common pattern with proxies.


            Assignee:
            Chen Liang
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: