[ https://issues.apache.org/jira/browse/CAMEL-20204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17794141#comment-17794141 ]
Richard Groote commented on CAMEL-20204: ---------------------------------------- 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)