Skip to content

Reflection warnings in java-time.single-field #1

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

Closed
ghost opened this issue Jan 13, 2016 · 2 comments
Closed

Reflection warnings in java-time.single-field #1

ghost opened this issue Jan 13, 2016 · 2 comments
Milestone

Comments

@ghost
Copy link

ghost commented Jan 13, 2016

Just trying out java-time with clojure 1.8-RC5, I get the following:

user=> (require '[java-time :as t :reload-all true])
Reflection warning, java_time/single_field.clj:175:1 - call to static method of on java.time.MonthDay can't be resolved (argument types: java.time.Month, unknown).
Reflection warning, java_time/single_field.clj:183:1 - call to static method of on java.time.YearMonth can't be resolved (argument types: unknown, long).
Reflection warning, java_time/single_field.clj:183:1 - call to static method of on java.time.YearMonth can't be resolved (argument types: unknown, long).
Reflection warning, java_time/single_field.clj:183:1 - call to static method of on java.time.YearMonth can't be resolved (argument types: unknown, java.time.Month).

It seems the "unknown" types should be hinted to ints to please the clojure compiler. I note the relevant ctors have int in a comp; apparently, this is not sufficient for the clojure compiler to figure out that the ctors are returning ints.

@dm3
Copy link
Owner

dm3 commented Jan 16, 2016

Thanks, I'll take a look at this.

@dm3 dm3 added the bug label Feb 25, 2016
@dm3 dm3 added the minor label Apr 12, 2016
@dm3 dm3 added this to the 0.2.1 milestone Apr 12, 2016
@dm3
Copy link
Owner

dm3 commented Jun 12, 2016

Fixed in 0.2.1

@dm3 dm3 closed this as completed Jun 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant