At 01:26 PM 8/16/00 +0200, [EMAIL PROTECTED] wrote:
>Hello,
>
>yes indeed, with setting case-fold-search to nil, then doing a Rescan, it
>works.
>But IMHO it�s not very good, if the whole stuff only works if
>case-fold-search is nil.
>There should be a solution regardless the value of this variable!
>
This requirement totally baffles me. Java is a case-sensitive language. So
how can a case-insensitive parser possibly work? How, for example, can a
case-insensitive Java parser distinguish between "Class" the class and
"class" the modifier? I modified jde-parse to redefine case-fold-search as
a local variable (i.e., in a let form) set to nil so that it would always
do a case sensitive parse. Note that this change is entirely local to the
parse. It does affect case-sensitive search in any other context. This
small change immediately cleared up a bunch of parse errors in the files I
tested. For example, the parser in JDE-2.2.2 parses the following
declaration in java.lang.System class
static native Class getCallerClass();
as a class declaration. With case-sensitive parsing, it correctly parses it
as a method declaration.
- Paul
>Ciao,
>Klaus
>
>
>> Hello,
>>
>> It works fine for me with JDE 2.2.2 - NT Emacs 20.7.1 -
>> semantic 1.2.1.
>>
>> I seems the parser does not work when case-fold-search value
>> is non nil
>> (that is searches and matches should ignore case).
>>
>> Hope this helps.
>>
>> Sincerely,
>> David
>>
>> [EMAIL PROTECTED] wrote:
>> >
>> > Hello,
>> >
>> > this is not a bug report for the semantic bovinator, but
>> for the java-
>> parser in the JDE (i�m using v2.2.2).
>> >
>> > Look at the following example:
>> >
>> > public class XStaticX extends JPanel
>> > {
>> > public XStaticX(ActionPool anActionPool,
>> > ResourceBundle aResource)
>> > {
>> > resource = aResource;
>> > actions = anActionPool;
>> > }
>> > }
>> >
>> > If you have a class with the word "static" within
>> (regardless, which
>> letters of "static" are upper- or downcase,
>> > means "sTaTiC" would be a problem too) and then a
>> constructor of this
>> class you will run into big troubles with JDE :-)
>> >
>> > Look at the Classes-menu or the Speedbar, and you will see,
>> that the
>> constructor will not be displayed! Change only
>> > one letter from "Static" (e.g. "Stadic"), do a Rescan and all is
>> working fine!
>> >
>> > Hope this description helps!
>> > Klaus
>> >
>> > --
>> > Klaus Berndl mailto: [EMAIL PROTECTED]
>> > sd&m AG http://www.sdm.de
>> > software design & management
>> > Thomas-Dehler-Str. 27, 81737 M�nchen, Germany
>> > Tel +49 89 63812-392, Fax -220
>>