Bug 318276

Summary: Invalid JDT complain about generics
Product: [Eclipse Project] JDT Reporter: Alexey <evilhare>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: VERIFIED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: amj87.iitr, srikanth_sankaran
Version: 3.7   
Target Milestone: 3.7 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.