Subject: RE: [jade-develop] RE: " in the content
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Mon Aug 12 2002 - 15:23:33 MET DST
Hi Henri,
You are right. There seems to be a bug in the String ACLMessage parser. Here you find the patched ACLParser. Use it to overwrite your current jade/lang/acl/ACLParser.jj file, javaCC it and recompile the whole or, alternatively, wait for the next snapshot.
Thanks and Bye
Giovanni
-----Original Message-----
From: BROUCHOUD Henri FTRD/DIH/LAN
[mailto:henri.brouchoud@rd.francetelecom.com]
Sent: venerdì 2 agosto 2002 17.37
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] RE: " in the content
Any idea about this ? Is it a known bug ?
Henri
> -----Message d'origine-----
> De : BROUCHOUD Henri FTRD/DIH/LAN
> Envoyé : mardi 23 juillet 2002 15:34
> À : jade-develop@sharon.cselt.it
> Objet : " in the content
>
>
> Hi,
>
> In Jade 2.5, I observe a strange interpretation of " in the
> content of a message :
> If one agent send a message built with msg.setContent("ping");
> the following is received
>
> (QUERY-REF
> :sender ...
> :receiver ...
> :content ping
> )
>
> if the message is built with msg.setContent("\"ping\""); the
> following is received :
> (QUERY-REF
> :sender ...
> :receiver ...
> :content "ping""
> )
>
> note the double " at the end of the content. Is it a known
> bug or am I doing something wrong ?
>
> By the way is it possible to have such a content :content ping ?
> From the FIPA ACL Message Representation in String
> Specification
> (http://www.fipa.org/specs/fipa00070/XC00070G.html) the content slot
> is defined with :
>
> MessageSlot = ...
> | ":content" String
> ...
>
> String = StringLiteral | ByteLengthEncodedString.
> StringLiteral = "\"" ([ ~ "\"" ] | "\\\"")* "\"".
>
> So it seems that embracing " are mandatory. Am I wrong ?
>
> Henri
>
_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
This archive was generated by hypermail 2a22 : Mon Aug 12 2002 - 15:23:43 MET DST