Bug 82497

Summary: (3.1 200412162000) Generic array parameters recognized as Object[]
Product: [Eclipse Project] JDT Reporter: David Gates <gatesda>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description David Gates CLA 2005-01-10 13:38:56 EST
Example:

---ParameterizedBase.java---
public interface ParameterizedBase<T> {
	public void usesVarargs(T[] params);
}

---Subclass.java---
/* marker text:
The type SubClass<T> must implement the inherited abstract method
ParameterizedBase<T>.
usesVarargs(Object[])
*/

public class Subclass<T> implements ParameterizedBase<T> { // marker on "Subclass"
	public void usesVarargs(T[] params) {
	}
}
Comment 1 Jerome Lanneluc CLA 2005-01-11 09:10:36 EST
Verified this now works using HEAD.
Comment 2 David Gates CLA 2005-01-11 14:02:14 EST
(3.1 build I20050111-0800)
Only shows up after changing Subclass.java then manual/auto building.  Cleaning
project erases marker.

Using default compiler settings except compiler compliance level, which is 5.0.
Comment 3 Philipe Mulet CLA 2005-01-12 04:30:44 EST
It is fixed in HEAD

*** This bug has been marked as a duplicate of 81719 ***