United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 5082756 Image I/O plug-ins set metadata boolean attributes to "true" or "false"
5082756 : Image I/O plug-ins set metadata boolean attributes to "true" or "false"

Details
Type:
Bug
Submit Date:
2004-08-04
Status:
Closed
Updated Date:
2010-07-09
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
client-libs
OS:
generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2_04,5.0
Fixed Versions:
7

Related Reports

Sub Tasks

Description
Image I/O plug-ins set metadata boolean attributes to "true" or "false"
According to the native and standard stream and image metadata specifications these should be "TRUE" or "FALSE", respectively.

                                    

Comments
EVALUATION

Relax the implementation and the specification to be more accommodating.

  Clarify specification of the boolean data type in IIOMetadataFormat
  class to explicitly declare the set of allowed names for the values for
  boolean attributes.

  Change the implementation to consistently emit uppercase literal "TRUE" 
  instead of lowercase "true", and "FALSE" instead of "false" for all metadata
  boolean attributes.

  In order to help minimise backward incompatibility, the implementations
  that previously accepted only lower case, will now accept both lowercase and
  uppercase "true" and "false" values. This will accommodate the case where
  metadata was constructed to satisfy the previous lowercase behavior.
                                     
2009-01-13
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/java2d_data/7/5082756.1
                                     
2009-01-13
PUBLIC COMMENTS

Image I/O plug-ins set metadata boolean attributes to "true" or "false"
According to the native and standard stream and image metadata specifications these should be "TRUE" or "FALSE", respectively.
                                     
2004-10-01
SUGGESTED FIX

Change "true" to "TRUE" and "false" to "FALSE" for all metadata boolean attributes set by Image I/O plug-ins.
                                     
2004-10-01
WORK AROUND

Do a case-insensitive comparison when testing the value of a boolean attribute.
                                     
2004-10-01
EVALUATION

Not a showstopper.
###@###.### 2004-08-05
                                     
2004-08-05



Hardware and Software, Engineered to Work Together