Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ksp2] Java annotation value return null for Float.NaN #2270

Open
acejingbo opened this issue Dec 26, 2024 · 0 comments
Open

[ksp2] Java annotation value return null for Float.NaN #2270

acejingbo opened this issue Dec 26, 2024 · 0 comments

Comments

@acejingbo
Copy link

acejingbo commented Dec 26, 2024

For an java annotationMyAnnotation with float value floatParam
although floatParam = 0.0f or floatParam = Float.MAX_VALUE can be interpreted fine
floatParam = Float.NaN (or equivalents like 0.0f/0.0f) is interpreted as null

Repro

acejingbo@57cd903

See test failed
Image

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

No branches or pull requests

1 participant