Maximum Oracle Sequence fails to be parsed as a BigInteger

Description

<createSequence cacheSize="20" cycle="false" incrementBy="1" maxValue="9999999999999999999999999999" minValue="1" ordered="false" sequenceName="BATCH_JOB_EXECUTION_SEQ" startValue="1"/>

results in
Caused by: java.lang.NumberFormatException: For input string: "9999999999999999999999999999"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:444)
at java.lang.Long.valueOf(Long.java:540)
at liquibase.parser.core.ParsedNode.convertObject(ParsedNode.java:233)

ParsedNode (233)
Should be return (T) new BigInteger(rawValue.toString());

As the Long.valueOf is limited to Long MAXIMUM which is smaller than BigInteger.

Environment

windows 7, java 7.

Activity

Show:

Nathan Voxland July 10, 2014 at 6:38 PM

Fixed in 3.2.1

Fixed

Details

Reporter

Fix versions

Affects versions

Priority

Created June 20, 2014 at 6:09 AM
Updated July 10, 2014 at 6:38 PM
Resolved July 10, 2014 at 6:38 PM