I'm not very experienced with java and Eclipse and I'm getting the following problem:
I'm writing something like:
Point3D myPoint = myClass.myMethod(arg);
And I got the error:
the method myMethod(myType arg) refers to the missing type Point3D.
However the class Point3D
is known, I can create an object of this type (Point3D
) without error and I got Point3D
methods from auto-completion.
You are evidently using a different implementation of Point3D
in the class where you have declared the method than where you are calling it.
Go to the declaration of myMethod
and check that the import statement for Point3D
in that class is the same as the import statement in the class where you are calling myMethod
.
I got same issue, I solved it by changing the order of import. I put the class which make the issue at the top of import list, after package, then the IDE(VS code) makes no alert.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With