GeoLatte / geolatte-geom

A geometry model that conforms to the OGC Simple Features for SQL specification.
Other
132 stars 63 forks source link

Update DefaultConnectionFinder to use conn.unwrap #85

Closed basisbit closed 4 years ago

basisbit commented 4 years ago

Since Java 1.6 there exists the java.sql.Wrapper.unwrap(Class) method which does exactly what this class desires to do, and which also works when using OSGI or Java9+ modules.

basisbit commented 4 years ago

oh, there is no lib dependency of oracle.jdbc.driver.OracleConnection in this project... Changed it back to using Class.forName which will still not work with OSGi or Java9 modules, but this code is still an improvement

basisbit commented 4 years ago

ah screw it. github web is not good for editing code without any linting or compiling support.