<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Activiti Spring bean not working with overloaded method error in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-not-working-with-overloaded-method-error/m-p/206462#M159592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the EL specs method overloading is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I know EL get the methods via reflection calling this method: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{code} &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public Method[] getMethods() throws SecurityException;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{code}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in the documentation is written: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The elements in the array returned are not sorted and are not in any particular order."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which could lead to inconsistent behaviour for multiple EL calls. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the first call could succeed but the second one could fail (as you already noticed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the best solution is to create different methods having different names just to remove the confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look also here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/beckchr/juel/issues/72" rel="nofollow noopener noreferrer"&gt;https://github.com/beckchr/juel/issues/72&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;JUEL documentation says: "If the given paramTypes is not null, select the method with the given name and parameter types. Else select the method with the given name that has the same number of parameters. If there are more than one such method, the method selection process is undefined. Else select the method with the given name that takes a variable number of arguments."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also have a look here &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56147" rel="nofollow noopener noreferrer"&gt;https://bz.apache.org/bugzilla/show_bug.cgi?id=56147&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 21:04:06 GMT</pubDate>
    <dc:creator>vasile_dirla</dc:creator>
    <dc:date>2015-06-15T21:04:06Z</dc:date>
    <item>
      <title>Activiti Spring bean not working with overloaded method error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-not-working-with-overloaded-method-error/m-p/206461#M159591</link>
      <description>Activiti Spring bean and overloaded method error.Follow this thread I have the following Spring bean methods:/**&amp;nbsp;&amp;nbsp;&amp;nbsp; * Whether or not to auto-reject this applicant based on the &amp;nbsp;&amp;nbsp;&amp;nbsp; * AutoRejectConfigItem rules configured in the system.&amp;nbsp;&amp;nbsp;&amp;nbsp; * &amp;nbsp;&amp;nbsp;&amp;nbsp; * @param user - The user to check.&amp;nbsp;&amp;nbsp;&amp;nbsp; * @return - Whethe</description>
      <pubDate>Mon, 15 Jun 2015 19:38:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-not-working-with-overloaded-method-error/m-p/206461#M159591</guid>
      <dc:creator>smurfs</dc:creator>
      <dc:date>2015-06-15T19:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Spring bean not working with overloaded method error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-not-working-with-overloaded-method-error/m-p/206462#M159592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the EL specs method overloading is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I know EL get the methods via reflection calling this method: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{code} &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public Method[] getMethods() throws SecurityException;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{code}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in the documentation is written: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The elements in the array returned are not sorted and are not in any particular order."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which could lead to inconsistent behaviour for multiple EL calls. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the first call could succeed but the second one could fail (as you already noticed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the best solution is to create different methods having different names just to remove the confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look also here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/beckchr/juel/issues/72" rel="nofollow noopener noreferrer"&gt;https://github.com/beckchr/juel/issues/72&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;JUEL documentation says: "If the given paramTypes is not null, select the method with the given name and parameter types. Else select the method with the given name that has the same number of parameters. If there are more than one such method, the method selection process is undefined. Else select the method with the given name that takes a variable number of arguments."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also have a look here &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56147" rel="nofollow noopener noreferrer"&gt;https://bz.apache.org/bugzilla/show_bug.cgi?id=56147&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:04:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-spring-bean-not-working-with-overloaded-method-error/m-p/206462#M159592</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-06-15T21:04:06Z</dc:date>
    </item>
  </channel>
</rss>

