Bug 97814 - Incorrect resolved information on hover
Summary: Incorrect resolved information on hover
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 06:54 EDT by Jerome Lanneluc CLA
Modified: 2005-06-10 11:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2005-06-01 06:54:34 EDT
 
Comment 1 Jerome Lanneluc CLA 2005-06-01 06:56:01 EDT
3.1 RC1 + latest JDT Core

Hover over fill in the following test case:
import java.util.*;
public class X {
   void bar() {
      List<Exception> le = new ArrayList<Exception>(5);
      //   hover
      Collections.fill(le, new NullPointerException()); 
   }
 }

It shows:
 <NullPointerException> void java.util.Collections.fill(List<? super T> list,
NullPointerException obj)

? super T should have been substituted.
Comment 2 Philipe Mulet CLA 2005-06-01 08:03:43 EDT
+1 for RC2
Comment 3 Jerome Lanneluc CLA 2005-06-01 11:25:24 EDT
Changed KeyToSignature#substitute(...) to handle type variables nested in array,
wilcard and capture.
Added regression tests BindingKeyTests#test041() and test042()
Comment 4 Olivier Thomann CLA 2005-06-06 21:10:13 EDT
Verified in N20050606-0010 + JDT/Core HEAD
Comment 5 Frederic Fusier CLA 2005-06-10 11:06:12 EDT
Verified for 3.1 RC2 using build I20050610-0010