Bug 227606 - Code assist doesn't offer proposal for local variable
Summary: Code assist doesn't offer proposal for local variable
Status: VERIFIED DUPLICATE of bug 193045
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 13:26 EDT by Michael Fraenkel CLA
Modified: 2008-04-29 03:14 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.