At 07:56 AM 8/11/00 +0200, [EMAIL PROTECTED] wrote:
>Hello,
>
>Generally the new expansion feature in JDE 2.2.1 work great but i have
>discovered the following wrong behavior if you try to expand array-elements.
>For example:
>
>String stringArray = new String[3];
>stringArray[0].<--
>
>Lets call jde-complete-at-point at the arrow-position (direct after the
point)
>then the following mysterious thing will be expanded:
>
>stringArray[0]this.main(...
>
>Now i can cycle over all methods of the current file...
>
>This is not what i want, i want to expand the methods and fields of class
String.
>
>Hope this description helps!
>
>Anybody discovered the same behavior?
>
>After looking a few hours in the source of jde-complete.el i think the first
>problem is in the function 'jde-complete-java-variable-at-point'
>(line 349, Version JDE 2.2.1): here the code should also jump over ] and [
so at least the correct
>identifier wil be parsed (e.g. "anyArray[0].get", here es first-part
"anyArray" must be parsed and this can only be done
>if [ and ] are added in line 349, otherwise the empty string will be
parsed as first-part.
>As a second step now the correct Class must be found, and here i�m not
sure, how to do it, without completey reading
>the whole jde-complete and jde-parse code :-)
>
>Any ideas??
>
Hi Klaus
The next release of the JDE (soon) fixes this bug.
Regards,
Paul