java.lang.charSequence类型无法解析为类型错误 [英] The type java.lang.charSequence cannot be resolved to a type error

查看:146
本文介绍了java.lang.charSequence类型无法解析为类型错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下aspectJ类方法,它给我错误,类型java.lang.charSequence无法解析为类型错误。



I have this following aspectJ class method which gives me the error,The type java.lang.charSequence cannot be resolved to a type error.

before(String name) throws ServiceLayerException:
    call(void ServiceImplementation.displayBookDetails(String)) && args(name){
    String sqlText = "SELECT * FROM Books WHERE Name='"+name+"'";
    logger1.info("Before Aspect :: Display Book Details of " + name);
    System.out.println(sqlText);
    connectToDbAndDisplayBookDetails(sqlText);

}





我正在使用Eclipse Kepler,我的这个项目是使用jdk 1.7构建的。我尝试为开普勒安装jdk 1.8补丁,但这没有帮助。它不会在安装过程中安装和停止。请帮帮忙。



I am using Eclipse Kepler and my this project is built using jdk 1.7. I tried installing jdk 1.8 patch for Kepler but that doesn't help. It doesn't get installed and stops during the installation process. Please help.

推荐答案

可能是因为拼写不正确,只需看一眼文档 [ ^ ]显示。
Probably because you spelled it incorrectly, as a glance at the documentation[^] shows.


这篇关于java.lang.charSequence类型无法解析为类型错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆