Java 8 compilation fix

There seems to be a bug in the JDK 8 compiler, which can't find the JSONB type in this class:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jooq: Compilation failure
/var/lib/jenkins/workspace/jooq-build-pro-java-8_main/workspace-jooq-pro-java-8/jOOQ/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java:[4512,70] error: cannot find symbol
  symbol:   class JSONB
  location: class DefaultBinding<T,U>
  where T,U are type-variables:
    T declared in class DefaultBinding
    U declared in class DefaultBinding
This commit is contained in:
Lukas Eder 2021-09-07 09:08:53 +02:00
parent a7580a1050
commit ead2b6f2d0

View File

@ -4509,7 +4509,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
}
}
static final class DefaultJSONBBinding<U> extends AbstractBinding<JSONB, U> {
static final class DefaultJSONBBinding<U> extends AbstractBinding<org.jooq.JSONB, U> {
static final Set<SQLDialect> EMULATE_AS_BLOB = SQLDialect.supportedBy(DERBY, FIREBIRD, HSQLDB, SQLITE);
DefaultJSONBBinding(DataType<JSONB> dataType, Converter<JSONB, U> converter) {