Community
Participate
Working Groups
Build Identifier: 20100618-0524 Try to add the following partial field declaration to a top-level Java class (yeah don't ask why I want to do this in the first place, btw): private final HashMap<Vertex, ArrayList<Point2D.Double>> traces = new now press ctrl+space, Eclipse will complete the declaration as: private final HashMap<Vertex, ArrayList<Point2D.Double>> traces = new private final HashMap<Vertex, ArrayList<Double>>(); Instead of ArrayList<Point2D.Double>, Eclipse completes to ArrayList<Double>, inserting the inner class name only instead of the whole thing. No biggie for me, as it's a bit of an exotic corner case, but I thought I'd report it anyway. Reproducible: Always Steps to Reproduce: 1. Add partial declaration from description to a top-level Java class. 2. Have eclipse complete the declaration. 3. Note that the declaration is wrong, instead of `Point2D.Double`, `Double`, is inserted.
PS: the problem seems to appear only with nested types. For example, this completes just fine: ArrayList<Point2D.Double> foo This doesn't: ArrayList<ArrayList<Point2D.Double>> foo ArrayList<ArrayList<ArrayList<Point2D.Double>>> etc.
The problem also appears in the following traces.get(vertex).add( <ctrl+space> code completion here will infer the add to be of the type add(Double), where in fact it's add(Point2D.Double). Hope that helps to track down the source.
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. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. 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.