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

ClassCastException when interface implementing function uses arguments object

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • None
    • 8
    • core-libs
    • None
    • b82
    • Verified

    Description

      The following scripts result in ClassCastException being thrown:

      -----------
      function run() {
          print(arguments);
          print("in run");
      }

      var t = new java.lang.Thread(run);
      t.start();
      t.join();
      ----------------

      ---------------


      var r = new java.lang.Runnable() {
              run: function() {
                  print(arguments);
                  print("in run");
              }
          }

      r.run()

      --------------

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: