Hi,

Could you tell me more about your use case? Why do you want to use a
subclass of BigDecimal, and why can't you use the default BigDecimal?

Regards,
Thomas


On Wednesday, September 3, 2014, Andrea Panattoni <
[email protected]> wrote:

> Hi,
>
> With revision 4028 the system property h2.allowBigDecimalExtensions has
> been removed without providing any alternative for BigDecimal subclasses.
>
> Can you merge the following patch:
>
> Index: h2/src/main/org/h2/value/ValueDecimal.java
> ===================================================================
> --- h2/src/main/org/h2/value/ValueDecimal.java  (revision 5837)
> +++ h2/src/main/org/h2/value/ValueDecimal.java  (working copy)
> @@ -57,9 +57,6 @@
>      private ValueDecimal(BigDecimal value) {
>          if (value == null) {
>              throw new IllegalArgumentException();
> -        } else if (!value.getClass().equals(BigDecimal.class)) {
> -            throw DbException.get(ErrorCode.INVALID_CLASS_2,
> -                    BigDecimal.class.getName(), value.getClass().getName
> ());
>          }
>          this.value = value;
>      }
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to