Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have this following aspectJ class method which gives me the error,The type java.lang.charSequence cannot be resolved to a type error.

Java
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. 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.
Posted

1 solution

Probably because you spelled it incorrectly, as a glance at the documentation[^] shows.
 
Share this answer
 
Comments
mayooran99 3-Apr-15 9:32am    
I dont get it :( what did I spell incorrectly?
Richard MacCutchan 3-Apr-15 11:03am    
charSequence : it should be CharSequence with a capital C.
mayooran99 4-Apr-15 10:28am    
okay so what should I do to get rid of the error?
Richard MacCutchan 4-Apr-15 10:41am    
Have you actually read the link I provided, and my explanation above?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900