Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Fails to build with JDBC 9.4 (PGObject class removed) #5438

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Fails to build with JDBC 9.4 (PGObject class removed) #5438

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: sebastic
[Submitted to the original trac issue database at 5.57pm, Friday, 16th December 2016]

The PGHStore class causes a build failure with the latest PostgreSQL JDBC driver (9.4-1212) as reported by Lucas Nussbaum in [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850993 Debian Bug #850993]:

/<<PKGBUILDDIR>>/osmosis-hstore-jdbc/src/main/java/org/openstreetmap/osmosis/hstore/PGHStore.java:36: error: package org.postgresql.util does not exist
import org.postgresql.util.PGobject;
                          ^
/<<PKGBUILDDIR>>/osmosis-hstore-jdbc/src/main/java/org/openstreetmap/osmosis/hstore/PGHStore.java:42: error: cannot find symbol
public class PGHStore extends PGobject implements Serializable, Cloneable, Map<String, String>
                              ^
  symbol: class PGobject
/<<PKGBUILDDIR>>/osmosis-hstore-jdbc/src/main/java/org/openstreetmap/osmosis/hstore/PGHStore.java:52: error: cannot find symbol
        setType("hstore");
        ^
  symbol:   method setType(String)
  location: class PGHStore
3 errors
1 warning
:osmosis-hstore-jdbc:compileJava FAILED

This issue will cause the removal of the osmosis package from the upcoming Debian stable release (stretch).

@openstreetmap-trac
Copy link
Author

Author: sebastic
[Added to the original trac issue at 9.37pm, Wednesday, 11th January 2017]

Sorry for the noise, this was a false positive. I overlooked the groupId change in the updated postgresql-jdbc package which was the cause for the PGobject class not being found.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant