Skip to content

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

Closed

Description

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.

Activity

  1. dm3 commented on Jan 16, 2016

    @dm3
    Owner

    Thanks, I'll take a look at this.

  2. added this to the 0.2.1 milestone on Apr 12, 2016
  3. dm3 commented on Jun 12, 2016

    @dm3
    Owner

    Fixed in 0.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions