0 Replies Latest reply on Nov 11, 2008 12:46 PM by Hiroyuki Wada

    Can't resolve EL Function.

    Hiroyuki Wada Newbie

      Hello,


      It seems that EL Function which serialized to ViewState can't be resolved when the object is deserialize. Because the jboss-el directly use "Class#forName(String)".
      The code is as follows,



      • org.jboss.el.lang.FunctionMapperImpl$Function.getMethod()

      • The jboss-el which included with Seam 2.0.2.SP1/2.1.0.SP1 were implemented like as follows.



              public Method getMethod() {
                  if (this.m == null) {
                      try {
                          Class t = Class.forName(this.owner);
                          Class[] p = ReflectionUtil.toTypeArray(this.types);
                          this.m = t.getMethod(this.name, p);
                      } catch (Exception e) {
      



      I think the above code cause ClassLoader Scope Problem.
      "Thread.currentThread().getContextClassLoader()" should be used.


      I found the jboss-el already had utility method for "Class.forName".
      It's "ReflectionUtil#forName(String)" method. Please use this method.



      May I report to JIRA?


      Thanks.