Bug 64154 - [1.5] incorrect 'constructor not visible'
Summary: [1.5] incorrect 'constructor not visible'
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-26 12:09 EDT by Adam Kiezun CLA
Modified: 2005-01-11 11:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2004-05-26 12:09:21 EDT
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
Comment 1 Philipe Mulet CLA 2004-07-01 11:59:31 EDT
Reproduced on Cheetah06
Comment 2 Philipe Mulet CLA 2004-07-01 18:45:40 EDT
Visibility check did use wrong binding when comparing types (parameterized 
type vs. source type).

Fixed. Regression test added: GenericTypeTest#test218.