Bug 210567 - [1.5][search] Parameterized type reference not found when used in type parameter bounds
Summary: [1.5][search] Parameterized type reference not found when used in type parame...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 123226 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-21 13:53 EST by Frederic Fusier CLA
Modified: 2007-12-18 05:31 EST (History)
2 users (show)

See Also:


Attachments
Proposed patch (13.29 KB, patch)
2007-11-27 03:42 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2007-11-21 13:53:29 EST
Using I20071120-1300 but should happen since at least since 3.2...

Given the following test case:

generics/Generic.java:
    package generics;
    import java.io.Serializable;
    import type.def.Types;
    public class Generic<T extends Types, 
                       U extends Types & Comparable<Types> & Serializable,
                       V extends A<? super Types>> {
	Generic<? extends Types, ?, ?> field;
	Comparable<String> comp;
	Class<? extends Exception> clazz;
    }
    class A<R> {}

type/def/Types.java:
    package type.def;
    public class Types {}

Search for references to the type 'Types' misses those in 'Comparable<Types>' and in A<? super Types>.
Comment 1 Frederic Fusier CLA 2007-11-27 03:42:31 EST
Created attachment 83845 [details]
Proposed patch
Comment 2 Frederic Fusier CLA 2007-11-27 03:42:55 EST
Released for 3.4M4 in HEAD stream.
Comment 3 Jerome Lanneluc CLA 2007-12-11 10:31:33 EST
Verified for 3.4M4 using I20071211-0010
Comment 4 Frederic Fusier CLA 2007-12-18 05:31:02 EST
*** Bug 123226 has been marked as a duplicate of this bug. ***