Has anyone seen a bug on type inference for java c...
# announcements
e
Has anyone seen a bug on type inference for java classes with same short names? I don't want to file a duplicate bug. However I had an issue assigning a field with type of
java.sql.Date
. Although I have an import for that class in the calling class, when I call
Date.from(Instant)
the compiler is inferring
java.util.Date
instead of
java.sql.Date
. I had to give a type hint. I would have expected the compiler to make this inference based on the type of the target field. Slack Conversation Thank you for your assistance, by the way 👍