[ 
https://issues.apache.org/jira/browse/MYFACES-4569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Melloware resolved MYFACES-4569.
--------------------------------
    Resolution: Fixed

> Quarkus: Register java types for reflection
> -------------------------------------------
>
>                 Key: MYFACES-4569
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4569
>             Project: MyFaces Core
>          Issue Type: Improvement
>    Affects Versions: 2.3-next-M7, 4.0.0-RC5
>            Reporter: Melloware
>            Assignee: Melloware
>            Priority: Major
>             Fix For: 2.3-next-M8, 4.0.0-RC6
>
>
> If you use a string with say "startswith" in an EL function it will fail 
> because String is not registered for reflection and get this error.
> *EL Expression:*
>  
> {code:java}
> rendered="#{not empty menuItem.url and empty menuItem.badge and not 
> menuItem.url.startsWith('/') and empty menuItem.menuItems}" {code}
>  
>  
> *Error:*
>  
> {code:java}
> Method not found: class java.lang.String.startsWith(java.lang.String): 
> javax.el.MethodNotFoundException: Method not found: class 
> java.lang.String.startsWith(java.lang.String)
>         at javax.el.ELUtil.findWrapper(ELUtil.java:360)
>         at javax.el.ELUtil.findMethod(ELUtil.java:253)
>         at javax.el.ELUtil.findMethod(ELUtil.java:212)
>         at javax.el.BeanELResolver.invoke(BeanELResolver.java:430)
>         at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:198)
>         at org.apache.el.parser.AstValue.getValue(AstValue.java:159)
>         at org.apache.el.parser.AstNot.getValue(AstNot.java:43)
>         at org.apache.el.parser.AstAnd.getValue(AstAnd.java:42)
>         at org.apache.el.parser.AstAnd.getValue(AstAnd.java:37)
>         at 
> org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:190) 
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to