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

Properties.load fails to throw IAE on malformed unicode in certain circumstances

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0, 6, 7, 8, 11, 12, 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b24

      Backports

        Description

        A property file like the following should fail to load with an IAE

        a=\u0

        but if there's a preceding property like this, it might mis-parse instead:

        b=\u0123
        a=\u0

        -> property a erroneously becomes \u0123

        Fixing this might mean some properties files that were malformed would go from being silently misparsed to throwing an IllegalArgumentException, so a CSR will be filed.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  redestad Claes Redestad
                  Reporter:
                  redestad Claes Redestad
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: