6480539: BigDecimal.stripTrailingZeros() should specify no-op on zero BigDecimals (original) (raw)
Paul Benedict pbenedict at apache.org
Thu Feb 7 15:15:36 UTC 2013
- Previous message: RFR - 6480539: BigDecimal.stripTrailingZeros() should specify no-op on zero BigDecimals
- Next message: hg: jdk8/tl/jdk: 8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream; ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am chiming in to agree with Stephen. About a year ago, I encountered the same issue and was extremely dissatisfied with the behavior. I was forced to create a utility method to check for "0" before passing it onto stripTrailingZeros(). The current behavior is useless; the spec is clear stripping extra zeros means exactly that.
- Previous message: RFR - 6480539: BigDecimal.stripTrailingZeros() should specify no-op on zero BigDecimals
- Next message: hg: jdk8/tl/jdk: 8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream; ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]