Bug 82056 - content assist does not work past a constructor with array casted param
Summary: content assist does not work past a constructor with array casted param
Status: RESOLVED DUPLICATE of bug 92451
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-01 01:07 EST by John Mazzitelli CLA
Modified: 2005-04-29 07:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Mazzitelli CLA 2005-01-01 01:07:21 EST
Here's a .java file that replicates the problem:

-------------------------
public class Foo
{
   public Foo( String[] str ) {}

   public static void main( String[] args )
   {
      Foo f;
      // Content assist (ctrl+space) works from the beginning of the .java file
to here
      f = new Foo((String[]) null);
      // Content assist (ctrl+space) DOES NOT work from here to the end of the
.java file
   }
}
-------------------------

Note that if the caret is on any line prior to the "f = new Foo" line, content
assist (ctrl+space) works.

After the "f = new Foo" line, content assist does not work - a message in the
lower message bar tells me in red letters "No completions available.".

It seems to be triggered ONLY when I make a call to a constructor in which I
cast the parameter to an array.

This bug does NOT occur if I have an overloaded *method* (as opposed to a
constructor).

This bug does NOT occur if I do not cast the parameter.

This bug does NOT occur if I cast to any object other than an array.

Seen this problem on Eclipse 3.1M4.
Comment 1 David Audel CLA 2005-04-29 07:21:44 EDT

*** This bug has been marked as a duplicate of 92451 ***