[ 
https://issues.apache.org/jira/browse/MYFACES-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17795369#comment-17795369
 ] 

Thomas Andraschko edited comment on MYFACES-4637 at 12/11/23 2:03 PM:
----------------------------------------------------------------------

I think we should fix that for 4.1 (EE11) and 5.0 (EE12)
will now push both to Java17, so can easily fix this then

for now only 5.0 builds with java17 -> so up to you if we backport all 
dependency changes to 4.1


was (Author: tandraschko):
I think we should fix that for 4.1 (EE11) and 5.0 (EE12)
will now push both to Java17, so can easily fix this then

> Have PushContext#Send Support Collection of Records
> ---------------------------------------------------
>
>                 Key: MYFACES-4637
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4637
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 5.0.0
>            Reporter: Volodymyr Siedlecki
>            Assignee: Volodymyr Siedlecki
>            Priority: Major
>             Fix For: 5.0.0
>
>
> Originally brought up via 
> [https://github.com/OpenLiberty/open-liberty/issues/26854]
> PushContext#send(Object obj) does not support collections of Records (added 
> in Java 14). Currently, empty JSON objects are returned.  This problem occurs 
> within Json encoding logic.
> [https://github.com/apache/myfaces/blob/main/impl/src/main/java/org/apache/myfaces/push/Json.java#L80-L118]
> Json.encode will go through all the type checks linked above and since none 
> of them match, the last one (encodeBean) will be chosen. However, this simply 
> results in an empty JSON responses ( such as [ {}, {}, {} ]). 
> Only work around I see for how is to call toString on the collection instead.



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

Reply via email to