java.sql classes are not always present
This commit is contained in:
parent
fa378e16d3
commit
3323bbc5b1
|
@ -43,7 +43,7 @@ public final class ConnectionInstrumentation extends Instrumenter.Default {
|
|||
nameStartsWith("prepare")
|
||||
.and(takesArgument(0, String.class))
|
||||
// Also include CallableStatement, which is a sub type of PreparedStatement
|
||||
.and(returns(safeHasSuperType(named(PreparedStatement.class.getName())))),
|
||||
.and(returns(safeHasSuperType(named("java.sql.PreparedStatement")))),
|
||||
ConnectionPrepareAdvice.class.getName());
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public final class DriverInstrumentation extends Instrumenter.Default {
|
|||
nameStartsWith("connect")
|
||||
.and(takesArgument(0, String.class))
|
||||
.and(takesArgument(1, Properties.class))
|
||||
.and(returns(Connection.class)),
|
||||
.and(returns(named("java.sql.Connection"))),
|
||||
DriverAdvice.class.getName());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue