Hai rotto il ...
-----Giuseppe AvellinoGRID R&D GroupDefence, Space &
Environment Division
DATAMAT S.p.A.Via Laurentina, 760 - I - 00143 Rome - Italy<A
href="">http://www.datamat.it
<A
href="">mailto:giuseppe.avellino@xxxxxxxxxxxxxxx:
+39 06 5027 4587 (direct) +39 06 5027 4571 (secretary)Fax: +39
06 5027 2500
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A href=""
title=alessandro.maraschini@xxxxxxxxxx>Alessandro Maraschini
To: <A
href=""
title=classad-users@xxxxxxxxxxx>classad-user
Sent: Wednesday, June 04, 2003 12:03
PM
Subject: [classad-users] c++ & java
inconsistency
Hi, while performing some test I've came across a
different behaviour between java & c++ classad implementation.
C++ code =====
ClassAdParser cp ; ClassAd* classAd = new ClassAd ();
classAd->Insert( "one" , cp.ParseExpression( "-5" )
); string buffer="";
PrettyPrint unp ; unp.Unparse(buffer, classAd ) ; cout
<< "OUTPUT = " << buffer << endl << flush ;
C++ output ======
OUTPUT = [
one = -5
]
JAVA code ========
RecordExpr re = new RecordExpr() ;
ClassAdParser cp = new ClassAdParser( "-5"
) ; re.insertAttribute( "one" , cp.parse()
); System.out.println( "OUTPUT: " + re );
JAVA output ==========
OUTPUT: [ one = (-5) ]
---------------
As you can see the use of parentesys is different, I don't know wheter it
has been fixed in the latest java release but if not, can you please check it?
BTW, which should be the right representation ? (I guess it's the second
one but... never know..)
thank you,
Alessandro --
***
Alessandro Maraschini
GRID R&D Group
Defence, Space & Environment Division
DATAMAT S.p.A.
Via Laurentina, 760 -I- 00143 Rome - Italy
http://www.datamat.it
mailto:alessandro.maraschini@xxxxxxxxxx
Phone: +39 06 5027 4501
Fax: +39 06 5027 2500
|