Raise a bug, and we need to review these dependencies for Java 18.9
compatibility.
On Wed, Aug 8, 2018 at 10:31 PM Frank Gasdorf via GeoTools-Devel <
geotools-devel@lists.sourceforge.net> wrote:
> Hi folks,
>
> I'm not sure about current implementation in
> *CommonsLoggerFactory.java*
> <https://github.com/geotools/geotools/blob/c96a3ece5029c6bb316fe2120e48e0157ea8b0f9/modules/library/metadata/src/main/java/org/geotools/util/logging/CommonsLoggerFactory.java#L64>
> whis has an "impl" package import from commons logging. This might not be
> present and causes
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Jdk14Logger
>
> if lib isn't present (in uDig).
>
> Do you have any suggestions how to get rid of impl-package import and why
> in this case getImplementation() should return null?
>
> Is it possible to have a check for class name with or without package name
> on the resolved class (getClass().toString().startsWith("
> org.apache.commons.logging") &&
> getClass().toString().endsWith("Jdk14Logger"))
>
> Do you suggest to raise a bug?
>
> Many thanks for your feedback!
>
> --
> Frank
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
--
--
Jody Garnett
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel