RockteMQ-AI commented on issue #253:
URL: 
https://github.com/apache/rocketmq-connect/issues/253#issuecomment-5682615644

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   This is a valid bug. `Boolean.getBoolean(String)` reads a **system 
property** and returns `true` only if that property exists and equals `"true"` 
(case-insensitive). It does **not** parse the string value itself.
   
   If the intent is to parse a string like `"true"`/`"false"` into a boolean, 
the correct method is `Boolean.valueOf(String)` or 
`Boolean.parseBoolean(String)`.
   
   **Root Cause:** Incorrect API usage — `Boolean.getBoolean()` vs 
`Boolean.valueOf()`
   **Impact:** Configuration values that should be parsed as booleans will 
always return `false` unless a matching system property is set
   **Severity:** Medium
   
   A fix should replace `Boolean.getBoolean(...)` with `Boolean.valueOf(...)` 
or `Boolean.parseBoolean(...)` depending on context.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to