Skip to content

[NUMBERS-218] Fix representable minimum-value powers - #223

Merged
aherbert merged 1 commit into
apache:masterfrom
AryanRG:NUMBERS-218-minimum-powers
Oct 18, 2026
Merged

aherbert merged 1 commit into
apache:masterfrom
AryanRG:NUMBERS-218-minimum-powers

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Accept the two representable minimum-value powers, (-2)^31 for int and (-2)^63 for long.
  • Keep overflow exceptions for out-of-range powers and add boundary regression tests.
  • Add the NUMBERS-218 release-note entry.

Jira: https://issues.apache.org/jira/browse/NUMBERS-218

Validation

  • A standalone reproduction failed on the pre-fix base and passed with the fix.
  • mvn clean verify passed across the local reactor.
  • The patch merges cleanly with current master; the newer upstream commit changes only a site link.

AI assistance used.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.68%. Comparing base (ec5c11f) to head (79aa464).
⚠️ Report is 389 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #223      +/-   ##
============================================
+ Coverage     99.24%   99.68%   +0.43%     
- Complexity     1802     2505     +703     
============================================
  Files            70       77       +7     
  Lines          4779     6913    +2134     
  Branches        881     1346     +465     
============================================
+ Hits           4743     6891    +2148     
+ Misses           10        4       -6     
+ Partials         26       18       -8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aherbert
aherbert merged commit 8cfc04e into apache:master Oct 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants