Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 110425

Summary: [infer type arguments] leaves things raw although it could infer something
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Dirk Baeumer CLA 2005-09-23 08:49:10 EDT
M2

Infer type arguments on JavaModelManager from M2. See that the types are not
inferred correctly for

public HashMap<IJavaProject, Map<IPath, IClasspathContainer>> containers = new
HashMap<IJavaProject, Map<IPath, IClasspathContainer>>(5);
   public HashMap<IJavaProject, Map<IPath, IClasspathContainer>>
previousSessionContainers = new HashMap<IJavaProject, Map<IPath,
IClasspathContainer>>(5);


CCing Philippe, since he knows more about it.
Comment 1 Dirk Baeumer CLA 2005-09-23 09:19:23 EDT
I ran it and there seems to be a problem: in method containerPut the refactoring
correctly inferrs that projectContainer is

projectContainers = new HashMap<IPath, IClasspathContainer>(1);

put this information doesn't seem change the value type of  container to
HashMap<IPath, IClasspathContainer>. It is left as a raw list.
Comment 2 Dirk Baeumer CLA 2005-09-23 09:26:54 EDT
Markus, can it be that since we can't infer the type HashMap<IPath,
IClasspathContainer> for the value of the container hash map in containersReset
we decide to leave it raw ?
Comment 3 Philipe Mulet CLA 2005-09-23 10:03:52 EDT
FYI, I released JavaModelManager rev 1.190.2.2 with the output I would have
expected from refactoring. 
Comment 4 Eclipse Genie CLA 2018-11-21 12:53:15 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.