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

Richard Groote edited comment on CAMEL-20204 at 12/7/23 11:48 AM:
------------------------------------------------------------------

Maybe i'am seeing it wrong but Java 17 use the member variable 'inputStream' 
and 'reader' (instead of getInputStream() and getReader()) which are both null 
in the StringSource which results in isEmpty returning true.

 

The linked pull Request would fix the problem


was (Author: r.gro...@beinformed.com):
Maybe i'am seeing it wrong but Java 17 use the member variable 'inputStream' 
and 'reader' (instead of getInputStream() and getReader()) which are both null 
in the StringSource which results in isEmpty returning true

> StringSource and SourceCache using the isEmpty method will always return true
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-20204
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20204
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.20.8
>            Reporter: Richard Groote
>            Priority: Minor
>             Fix For: 4.3.0
>
>
> When using StringSource#isEmpty or SourceCache#isEmpty it will always return 
> true because the StreamSource#isEmpty of java 17 works on member variables 
> instead of the getters.



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

Reply via email to