The patch that I attached to this issue is incorrect.  The correct
version is attached.


Index: NumberKey.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/om/NumberKey.java,v
retrieving revision 1.12
diff -r1.12 NumberKey.java
100c100,107
<         this.key = key.getValue();
---
>         if( key != null )
>         {
>             this.key = key.getValue();
>         }
>         else
>         {
>             this.key = null;
>         }
117c124,131
<         this.key = new BigDecimal(new Integer(key).toString());
---
>         if( key != null )
>         {
>             this.key = new BigDecimal(new Integer(key).toString());
>         }
>         else
>         {
>             this.key = null;
>         }
126c140,147
<         this.key = new BigDecimal(key.toString());
---
>         if( key != null )
>         {
>             this.key = new BigDecimal(key.toString());
>         }
>         else
>         {
>             this.key = null;
>         }
219a241,242
>      * @throws NullPointerException when the value of the NumberKey or the
>      * comparison value is null
227c250,251
<      * Invokes the toString() method on the object.
---
>      * Invokes the toString() method on the object.  An empty string
>      * is returned is the value is null.
239c263
<      * Returns the value of this NumberKey as a long. This value is subject
---
>      * Returns the value of this NumberKey as a byte. This value is subject
241c265
<      * {@link java.math.BigDecimal.intValue()}
---
>      * {@link java.math.BigDecimal.byteValue()}
243c267,268
<      * @return the NumberKey converted to a long
---
>      * @return the NumberKey converted to a byte
>      * @throws NullPointerException when the value of the NumberKey is null
259a285
>      * @throws NullPointerException when the value of the NumberKey is null
275a302
>      * @throws NullPointerException when the value of the NumberKey is null
288a316
>      * @throws NullPointerException when the value of the NumberKey is null
303a332
>      * @throws NullPointerException when the value of the NumberKey is null
318a348
>      * @throws NullPointerException when the value of the NumberKey is null

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to