dev@glassfish.java.net

Fixing MethodDescriptor.equals method

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 07 Nov 2012 15:44:58 -0800

Team,

I'm fixing MethodDescriptor.equals method to make sure MDs with
wild-card method-name do not compare equal if one has the method-intf
element set and another doesn't (e.g. to allow [1] combination of settings).

Let me know which tests should I run to be safe (besides ejb devtests).

thanks,
-marina

[1] (ignore the fact that one is a default setting - this DD produced
wrong result)
    <container-transaction>
      <method>
        <ejb-name>StlesEJB</ejb-name>
        <method-intf>Timer</method-intf>
        <method-name>*</method-name>
      </method>
      <trans-attribute>NotSupported</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>StlesEJB</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>