Bug 227606

Summary: Code assist doesn't offer proposal for local variable
Product: [Eclipse Project] JDT Reporter: Michael Fraenkel <fraenkel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: david_audel, eric_jodet
Version: 3.4   
Target Milestone: 3.4 M7   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Michael Fraenkel CLA 2008-04-17 13:26:55 EDT
Build ID: 3.4 M6

Steps To Reproduce:
Take the sample code below, and attempt to get any completion for the ext variable.  It never appears as a possible proposal.

package test;

import java.util.Comparator;
import java.util.List;

public class Test {
    protected static Comparator<String> localeComparator = new Comparator<String>() {
        List<String> extensions = null;

        private String[] split(String name) {
            String[] names=null;
            for (String ext : extensions) {
// Try code assist here
            }
            
            return names;
        }

        public int compare(String o1, String o2) {
            // TODO Auto-generated method stub
            return 0;
        }
    };

}


More information:
Comment 1 David Audel CLA 2008-04-18 04:41:14 EDT

*** This bug has been marked as a duplicate of bug 193045 ***
Comment 2 Eric Jodet CLA 2008-04-29 03:14:34 EDT
Verified for 3.4M7 using I20080427-2000.