Skip to:
When I try to upgrade liquibase-core from 3.0.8 to version after 3.1.0. The following code breaks.
public class TestLiquibase { DataSource dataSource; @Test public void demo() throws SQLException, LiquibaseException { Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(dataSource.getConnection())); Liquibase liquibase = new Liquibase("src/main/resources/changesets/changeset-init-config.xml", new FileSystemResourceAccessor(), database); liquibase.update(null); } }
The code should pass. But it throws an error:
error: reference to update is ambiguous
java version "1.8.0_131"Java(TM) SE Runtime Environment (build 1.8.0_131-b11)Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
When I try to upgrade liquibase-core from 3.0.8 to version after 3.1.0. The following code breaks.
public class TestLiquibase { DataSource dataSource; @Test public void demo() throws SQLException, LiquibaseException { Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(dataSource.getConnection())); Liquibase liquibase = new Liquibase("src/main/resources/changesets/changeset-init-config.xml", new FileSystemResourceAccessor(), database); liquibase.update(null); } }
The code should pass. But it throws an error:
error: reference to update is ambiguous