Commit 4440730
committed
fix AXIS2-6041 (totalDigits Facet of XSD type short incorrectly treated in databinding)
This change builds on commit bb10ab2, which fixed `compare(BigInteger,
String)` for AXIS2-5724, to fix the other variations for `int`, `long`,
and `short`.
These variations seem to be invoked by the generated Java code when
using different base types, such as the following:
<xsd:simpleType name="MyType">
<xsd:restriction base="xsd:int">
<xsd:totalDigits value="1"/>
</xsd:restriction>
</xsd:simpleType>
This change also adds test cases for the variations.1 parent 4145b18 commit 4440730
File tree
2 files changed
+66
-5
lines changed- modules/adb
- src/org/apache/axis2/databinding/utils
- test/org/apache/axis2/databinding/utils
2 files changed
+66
-5
lines changedLines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1295 | 1300 | | |
1296 | 1301 | | |
1297 | 1302 | | |
| |||
1319 | 1324 | | |
1320 | 1325 | | |
1321 | 1326 | | |
1322 | | - | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1323 | 1335 | | |
1324 | 1336 | | |
1325 | 1337 | | |
| |||
1328 | 1340 | | |
1329 | 1341 | | |
1330 | 1342 | | |
1331 | | - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1332 | 1351 | | |
1333 | 1352 | | |
1334 | 1353 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
586 | 628 | | |
0 commit comments