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

    • Sub-task
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 9
    • core-libs
    • None
    • b32
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: