The class is generic , let’s say Generic<T> and contains this:
private int count;
public int Count()
{
return count;
}
It has a method that raises compiler error. It cannot find symbol Count() (or count) of class Generic<capture#940 of ? extends T> and points to these lines:
public void set(Generic<? extends T> other)
{
int something = other.Count();
int somethingElse = other.count;
//actions
}
Why is the symbol not found in other ? I put it there.
Also, any tips on how to tag this question. I cannot figure out how to distinguish it from questions of package scope, class calls, subclassing, delegation, namespaces, or the like. And no one has used ‘cannot-find-symbol’.
This is an extended comment, rather than an answer.
The following program compiles without errors in Eclipse:
Please add more information. If my program does not compile in your environment, you should post information about the compile. If my program does compiler, you could post a Short, Self Contained, Correct, Example that reproduces the problem.