Simone Tiraboschi has posted comments on this change.
Change subject: core: making parseTypedValue more severe
......................................................................
Patch Set 2:
I think that at least in Java it's the opposite: any unmatching value is
evaluated as false.
Try this:
import java.lang.*;
public class BooleanTest {
public static void main(String[] args) {
System.setProperty("test1","true");
System.setProperty("test2","abc");
System.setProperty("test3","false");
String s1 = System.getProperty("test1");
String s2 = System.getProperty("test2");
String s3 = System.getProperty("test3");
boolean b1 = Boolean.getBoolean("test1");
boolean b2 = Boolean.getBoolean("test2");
boolean b3 = Boolean.getBoolean("test3");
System.out.println("1. bool: " + b1 + " string: " + s1 );
System.out.println("2. bool: " + b2 + " string: " + s2 );
System.out.println("3. bool: " + b3 + " string: " + s3 );
}
}
--
To view, visit http://gerrit.ovirt.org/33370
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I356b0d8029d9785bff54744614ed1e679c32529c
Gerrit-PatchSet: 2
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Simone Tiraboschi <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Lev Veyde <[email protected]>
Gerrit-Reviewer: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: Simone Tiraboschi <[email protected]>
Gerrit-Reviewer: Yedidyah Bar David <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: No
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches