Bug 113765

Summary: [1.5] Insufficient recovery in generic method
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2005-10-26 04:57:05 EDT
Build 3.2M2

On following testcase, the method type parameters do not seem to get recovered.
(syntax error is missing closing '>' in method return types)

import java.util.*;
public interface X<T> {
	<K> List<Map<K,T> foo(Map<T,K> m);
	<K,E> List<Map<K,E> bar(Map<T,K> m, Map<T,E> e);
}
Comment 1 David Audel CLA 2005-10-27 09:03:17 EDT
Fixed and tests added
  GenericDietRecoveryTest#test0021() -> test0026()

Now, the recovery try to attach parsed method type parameters to the next
recovered method.
Comment 2 Olivier Thomann CLA 2005-10-28 11:56:35 EDT
Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a using the ASTView.