Bug 318276 - Invalid JDT complain about generics
Summary: Invalid JDT complain about generics
Status: VERIFIED DUPLICATE of bug 168565
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.7 M1   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 04:06 EDT by Alexey CLA
Modified: 2010-08-03 09:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey CLA 2010-06-29 04:06:54 EDT
Build Identifier: 20100617-1415

I receive complain about this line of code:
List<String> emails = new ArrayList<String>();

Description	Resource	Path	Location	Type
The type Collection is not generic; it cannot be parameterized with arguments <? extends E>	B.java	projectname/notifications	line 29	Java Problem

If I comment this code, there are a lot of weireg problems, for example imports dont work

Reproducible: Sometimes

Steps to Reproduce:
Bug is difficult to reproduce. I checkout whole project, set up environment (dynamic web project, tomcat) and get such error. When I copy .metadata & .settings dir from another workspace (another svn branch) and switch it to my branch it is ok. But sometimes this happens again and I need to overwrite metadata & settings folders.
Comment 1 Alexey CLA 2010-06-29 04:26:47 EDT
I use 1.6.0_20 java & Tomcat 5.5. In compiler settings I use 1.6 (default values) for all settings.
Comment 2 Srikanth Sankaran CLA 2010-06-29 05:19:16 EDT
(In reply to comment #0)
> Build Identifier: 20100617-1415
> 
> I receive complain about this line of code:
> List<String> emails = new ArrayList<String>();
> 
> Description    Resource    Path    Location    Type
> The type Collection is not generic; it cannot be parameterized with arguments
> <? extends E>    B.java    projectname/notifications    line 29    Java Problem

What is the version of the JRE you are using, Anything below 1.5 will
trigger this problem. This is surely a set up issue.
Comment 3 Alexey CLA 2010-06-29 05:35:59 EDT
> What is the version of the JRE you are using, Anything below 1.5 will
> trigger this problem. This is surely a set up issue.

I'm using 1.6
The problem was with cryptix library. I removed it from classpath, and problem disappeared. Probably it is not an Eclipse issue, but the problem is weird and probably it is usefull. Thanks.
Comment 4 Srikanth Sankaran CLA 2010-06-29 10:52:55 EDT
Alexey, Thanks for the additional information. That helped
identify this to be a duplicate of bug 168565

*** This bug has been marked as a duplicate of bug 168565 ***
Comment 5 Ayushman Jain CLA 2010-08-03 09:12:27 EDT
Verified for 3.7M1.