Eclipse gives error for 'undefined' Java function it can easily find -


i've been having trouble eclipse. i'm working on java project that's configured git. after submitting code through git, eclipse generates these errors, saying many functions undefined. functions still there, eclipse take me them when ctrl+click function.

for instance have class:

public class myclass {      public myclass () {}      public void myfunction () {         //do stuff     } } 

and have class uses it:

public class secondclass {     public void callfunction () {         myclass = new myclass();         a.myfunction();     } } 

the myfunction call in secondclass causes 'undefined' error in eclipse. i've tried refreshing project doesn't make difference. way i've found eclipse behave correctly comment out function can't find, uncomment it, , save file. there better way this? or prevent eclipse having problem?

sounds going wrong eclipse.

when happens typically following. (continue next bullet if previous did not help):

  1. refresh project. first try f5. if not using right click on project , choosing appropriate option in context menu. strange, f5 not work, menu does.
  2. rebuild project.
  3. try close project , open again
  4. try delete project (without removing content) through eclipse.
  5. try create project again , copy *.java files there.
  6. try create new workspace.

i hope #1 (or #2) help.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -