https://issues.apache.org/bugzilla/show_bug.cgi?id=56425

Violeta Georgieva <violet...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32137|0                           |1
        is obsolete|                            |

--- Comment #6 from Violeta Georgieva <violet...@apache.org> ---
Created attachment 32140
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32140&action=edit
Test

The first problem in the attached test - testBug56425a is:


java.lang.ClassCastException: java.lang.Long cannot be cast to
[Ljava.lang.Object;
    at org.apache.el.lang.ELSupport.coerceToArray(ELSupport.java:497)
    at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:484)
    at
org.apache.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:47)
    at javax.el.Util.isCoercibleFrom(Util.java:493)
    at javax.el.Util.findWrapper(Util.java:293)
    at javax.el.Util.findMethod(Util.java:213)
    at javax.el.BeanELResolver.invoke(BeanELResolver.java:157)
    at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:84)
    at org.apache.el.parser.AstValue.getValue(AstValue.java:157)
    at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187)
    at javax.el.ELProcessor.getValue(ELProcessor.java:61)
    at javax.el.ELProcessor.eval(ELProcessor.java:54)
    at javax.el.TestUtil.testBug56425a(TestUtil.java:48)



I'm attaching possible fix for this ClassCastException.

The second problem in the test - testBug56425b still failes with:

javax.el.MethodNotFoundException: Unable to find unambiguous method: class
javax.el.TesterBean.setValueInt(java.lang.Long)
    at javax.el.Util.findWrapper(Util.java:343)
    at javax.el.Util.findMethod(Util.java:213)
    at javax.el.BeanELResolver.invoke(BeanELResolver.java:157)
    at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:84)
    at org.apache.el.parser.AstValue.getValue(AstValue.java:157)
    at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187)
    at javax.el.ELProcessor.getValue(ELProcessor.java:61)
    at javax.el.ELProcessor.eval(ELProcessor.java:54)
    at javax.el.TestUtil.testBug56425b(TestUtil.java:55)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to