Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8057173 Treat POJOs as Object.seal()'d JS objects
  3. JDK-8058545

With strict mode, bean property assignment of a non-existent property should result in TypeError

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b32
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Script:

        'use strict';
        var File = Java.type("java.io.File");
        var f = new File(".");
        f.foo = 33;


        Expected: TypeError
        Actual: no error thrown.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sundar Sundararajan Athijegannathan
                Reporter:
                sundar Sundararajan Athijegannathan
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: