rpau/javalang-compiler

Bug in an specific method ressolution

Opened this issue · 0 comments

rpau commented

java.lang.Exception: Ops! The method call inner.setNull(parameterIndex, sqlType) is not resolved. The scope is [java.sql.Statement] , and the args are : [ int, int]

public class XTracingPreparedStatement
extends AbstractXPreparedStatement {

@OverRide
public void setNull(int parameterIndex,
int sqlType)
throws SQLException {
if (traceArgs) {
isetObject(parameterIndex, null);
}
inner.setNull(parameterIndex, sqlType);
}

inner is defined in abstract super super super class based on type variable:

import java.sql.PreparedStatement;

public class AbstractXPreparedStatement extends AbstractXStatement2 implements XPreparedStatement {
public class AbstractXStatement2 extends DelegatingPreparedStatement implements XStatement {
public class DelegatingPreparedStatement
extends ADelegatingStatement
implements PreparedStatement {

public class ADelegatingStatement implements Statement {
protected final INNER inner;