简体   繁体   中英

Eclipse can't understand i edited a class

i have a weird problem. I copied a java class from a web application on a computer to a web application on another computer.

Then I edited the parameters of a method in a class, but when i run my webapp eclipse gives me this error:

The method getContenutoMultimediale(String, String, String)
 in the type GestioneImmagineVideo 
is not applicable for the arguments (String, String, String, int, int)

But my method GestioneImmagineVideo now has 5 parameters, and not 3. Eclipse cant' understand that i edited that method.

How can i 'refresh' eclipse? I tried with the refresh (f5) on my project, on my java resources/src folder, i restarted ecplipse and windows.

Did you try cleaning and rebuilding ? Or close the project and then open it again.

it's not an eclipse problem, you have to redeploy your web application.What server are you using? remove the webapp from the server, start it and redeploy it again and restart it

Eclipse obviously does not find your new version of the class. To find out which version it uses, try to place the cursor on getContenutoMultimediale and press F3 . Then Eclipse should open the class that it uses for the method...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM