不兼容ClassChangeError异常

apeeds0o  于 2021-06-29  发布在  Java
关注(0)|答案(0)|浏览(237)

我在用 OpenPojo 用于验证类的getter和setter方法。但在尝试验证getter和setter方法时,我遇到了以下异常:
java.lang.CompatibleClassChangeError:类com.openpojo.reflection.java.bytecode.asm.SubassCreator将接口org.objectweb.asm.classvisitor作为超级类
这是我的密码:

public final class ClientToken implements RememberMeAuthenticationToken {

private static final long serialVersionUID = 3141878022445836151L;

private final String clientName;

private final Credentials credentials;

private String userId;

private boolean isRememberMe;

public ClientToken(final String clientName, final Credentials credentials) {
    this.clientName = clientName;
    this.credentials = credentials;
}

public void setUserId(final String userId) {
    this.userId = userId;
}

public void setRememberMe(boolean isRememberMe) {
    this.isRememberMe = isRememberMe;
}

public String getClientName() {
    return this.clientName;
}

public Object getCredentials() {
    return this.credentials;
}

public Object getPrincipal() {
    return this.userId;
}

@Override
public String toString() {
    return CommonHelper.toString(ClientToken.class, "clientName", this.clientName, "credentials", this.credentials,
            "userId", this.userId);
}

public boolean isRememberMe() {
    return isRememberMe;
}
}

有人能帮我解释为什么会出现这个问题吗。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题