简体   繁体   English

无法将类型java.lang.charSequence解析为类型错误

[英]The type java.lang.charSequence cannot be resolved to a type error

I have this following aspectJ class method which gives me the error,The type java.lang.charSequence cannot be resolved to a type error. 我有以下以下aspectJ类方法,该方法给我错误,类型java.lang.charSequence无法解析为类型错误。

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);

}

I am using Eclipse Kepler and my this project is built using jdk 1.7. 我正在使用Eclipse Kepler,而我的这个项目是使用jdk 1.7构建的。 I tried installing jdk 1.8 patch for Kepler but that doesn't help. 我尝试为开普勒安装jdk 1.8补丁,但这无济于事。 It doesn't get installed and stops during the installation process. 它不会安装并在安装过程中停止。 Please help. 请帮忙。

It can be a sneaky Java8 interface problem. 它可能是一个偷偷摸摸的Java8接口问题。 In Java8 the charSequence has a default method attached. 在Java8中,charSequence具有附加的默认方法。

If you are using it from Java7 compiler doesn't allow you to use default methods. 如果从Java7编译器使用它,则不允许使用默认方法。

Try to fix the jdk 1.8 patch setup. 尝试修复jdk 1.8修补程序设置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法解析类型java.lang.CharSequence - The type java.lang.CharSequence cannot be resolved 无法在包声明中解析类型java.lang.CharSequence - The type java.lang.CharSequence cannot be resolved in package declaration 无法解析类型java.lang.CharSequence。 汤姆猫 - The type java.lang.CharSequence cannot be resolved. TomCat 接收类型java.lang.CharSequence无法解析。 Java 8 JDK的错误消息 - Receiving The type java.lang.CharSequence cannot be resolved. error message with Java 8 JDK 编译JasperReports模板时出现“java.lang.CharSequence类型无法解析”错误 - Got “The type java.lang.CharSequence cannot be resolved” error when compile JasperReports template 更新到JDK8后,JSP中出现编译错误:“java.lang.CharSequence类型无法解析” - After update to JDK8, compilation error occurs in JSP: “The type java.lang.CharSequence cannot be resolved” Eclipse错误:java.lang.CharSequence无法解析 - Eclipse Error: java.lang.CharSequence cannot be resolved 第7行的“ yyy.jspf”错误:无法解析类型java.lang.CharSequence。 从所需的.class文件间接引用它 - Error in “yyy.jspf” at line 7: The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files 无法解析类型java.lang.Charsequence。 它是从required.class文件间接引用的 - The type java.lang.Charsequence cannot be resolved. It is indirectly referenced from required.class files 无法解析java.lang.CharSequence类型。 它是从所需的.class文件间接引用的 - The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM