Skip to content

A large number of integration test files in ojp-jdbc-driver are declared in package openjproxy.jdbc or openjproxy.grpc.client — missing the org. prefix used by the rest of the project. #473

Description

@rrobetti

Affected file
ojp-jdbc-driver/src/main/java/org/openjproxy/jdbc/Savepoint.java

Java
private T retrieveAttribute(CallType callType, String attrName, Class returnType) throws SQLException {
...
return (T) result; // unchecked cast
}
Expected fix
Use the generic form of Class:

Java
private T retrieveAttribute(CallType callType, String attrName, Class returnType) throws SQLException {
...
return returnType.cast(result);
}

How to verify
Run mvn checkstyle:check and mvn clean compile — must pass with no new warnings.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions