rpau / javalang-compiler

Java compiler elements (symbol and type tables) to perform code semantic analysis
GNU Lesser General Public License v3.0
10 stars 4 forks source link

Bug in an specific method ressolution #9

Open rpau opened 8 years ago

rpau commented 8 years ago

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;