Skip to content

fix(java): align floating value equality with hashing - #1101

Merged
andiwand merged 1 commit into
mainfrom
review/83-java-value-equality
Oct 5, 2026
Merged

andiwand merged 1 commit into
mainfrom
review/83-java-value-equality

Conversation

@andiwand

@andiwand andiwand commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Measure, DrawingPath and DrawingTransform now compare doubles using Double.compare, matching their existing hash codes. NaN values are reflexive and equal to equivalent NaN values; positive and negative zero are distinct, following Java Double semantics.

Validation: one shared regression test fails on the parent revision; all 82 JNI tests pass after the fix.

@andiwand
andiwand force-pushed the review/82-jni-allocation-cleanup branch from 19e69f9 to 413414f Compare October 5, 2026 20:34
Base automatically changed from review/82-jni-allocation-cleanup to main October 5, 2026 20:43
@andiwand
andiwand force-pushed the review/83-java-value-equality branch from 235d74d to b5520f2 Compare October 5, 2026 20:44
@andiwand
andiwand merged commit db68b56 into main Oct 5, 2026
23 checks passed
@andiwand
andiwand deleted the review/83-java-value-equality branch October 5, 2026 20:44
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.

1 participant