Bug 81256 - [Java 5] Accepting invalid syntax
Summary: [Java 5] Accepting invalid syntax
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 12:49 EST by Kai-Uwe Maetzel CLA
Modified: 2004-12-22 09:56 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai-Uwe Maetzel CLA 2004-12-15 12:49:41 EST
I200412142000

The following is accepted by the compiler:
public class Worker<T extends Enum, IPayedTime> extends AbstractWorker {

but should be
public class Worker<T extends Enum & IPayedTime> extends AbstractWorker {
Comment 1 Olivier Thomann CLA 2004-12-15 15:41:27 EST
I don't think the syntax is invalid.
IPayedTime is seen as a second type parameter.
Comment 2 Philipe Mulet CLA 2004-12-15 15:51:31 EST
Agreed.
Comment 3 Steve Northover CLA 2004-12-22 09:56:49 EST
*** Bug 81643 has been marked as a duplicate of this bug. ***