muttley73 / jlibs

Automatically exported from code.google.com/p/jlibs
0 stars 0 forks source link

Comparing "dateTime" to x.toLowerCase() will never be true #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
dateTimes are not correctly generated: they are treated as strings!
I found out why, using the trunk source code that I checked out today.

On line 452 of XSInstance.java is written:

            String name = builtInType.getName().toLowerCase();

On line 470 of XSInstance.java is written:

            if("dateTime".equals(name)){

This comparison will never result true since "T".toLowerCase() == "t".

Original issue reported on code.google.com by Pierre.v...@gmail.com on 20 Nov 2013 at 12:20

GoogleCodeExporter commented 9 years ago
Fixed in r1775

the new build is available in maven snapshots repository
alternatively, you can download it from:
https://dl.dropboxusercontent.com/u/326301/jlibs-r1776.zip

Original comment by santhosh.tekuri@gmail.com on 29 Nov 2013 at 11:29