RFR: 8152293: Incomplete fraction reduction in getValueAsString() for TIFFTag.TIFF_RATIONAL, TIFFTag.TIFF_SRATIONAL
Brian Burkhalter
bpb at openjdk.org
Thu Mar 20 21:09:06 UTC 2025
On Thu, 20 Mar 2025 20:35:11 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Remove from `TIFFField.getValueAsString` the rudimentary reduction in terms in the conversion of `RATIONAL` and `SRATIONAL` field values to a string. Also, add a test.
If this change is deemed acceptable, then a CSR will be filed to remove the following sentence from the specification of `TIFFField.getValueAsString`:
If the numerator of a TIFFTag.TIFF_RATIONAL or TIFF_SRATIONAL is an integral
multiple of the denominator, then the value is represented as "q/1" where q
is the quotient of the numerator and denominator.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24141#issuecomment-2741661485
More information about the client-libs-dev
mailing list