Community
Participate
Working Groups
cheeta05 package p; class CellWithFactory<T>{ private final T _data; private CellWithFactory(T data){ _data = data; } public T getData(){ return _data; } public static <E> CellWithFactory<E> create(E data) { return new CellWithFactory<E>(data); } } you get: The constructor CellWithFactory<E>(T) is not visible
Reproduced on Cheetah06
Visibility check did use wrong binding when comparing types (parameterized type vs. source type). Fixed. Regression test added: GenericTypeTest#test218.