Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346465

Add a check in setData() to restrict the update of Built-In ICC_Profiles

XMLWordPrintable

    • 2d
    • b19
    • generic
    • generic

        A check needs to be added to setData() which prevent modifying Built-In profile.
        Built-in Profiles are singleton objects and if the user happens to modify the profile data via setData(), the modified version of the profile is returned each time the same built-in profile is requested via getInstance().

        It is better to protect Built-in profiles from direct modification by adding a check in setData() such that only custom profiles are allowed to be updated and if it is Built-In profile then throw IAE.

              honkar Harshitha Onkar
              honkar Harshitha Onkar
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: