You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zjncs (via GitHub)" <gi...@apache.org> on 2026/09/05 07:47:49 UTC
[PR] [Bug] Accept zero and negative floating-point literals [rocketmq]
zjncs opened a new pull request, #11034:
URL: https://github.com/apache/rocketmq/pull/11034
Fixes #10862
ConstantExpression.createFloat now uses -Double.MAX_VALUE as the finite lower bound. Double.MIN_VALUE is the smallest positive non-zero value, so using it incorrectly rejected 0.0 and valid negative literals.
Added parser regression cases for 0.0 and -0.5. Positive and negative infinity remain outside the accepted finite range.
Verification: git diff --check passed; Maven unavailable locally, CI should run ParserTest/filter checks. AI-assisted contribution.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org