Include Guava code directly avoiding reflection
jodastephen opened this issue · comments
Stephen Colebourne commented
Joda-Convert previously use setAccessible()
to access package scoped methods in Guava due to Guava #1645 not being fixed. With Java 9, this is no longer tenable, thus fix #20 needs to go further - actually copying code from Guava to Joda-Convert.
As a side effect of this, the converter for Type
now works regardless of whether Guava is present or not, and it also handles subclass implementations correctly (a bug fix).