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

typeof does not work properly for java methods and foreign objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • b100
    • generic
    • generic
    • Verified

      jjs> typeof java.lang.System.exit
      object

      Expected: function

      jjs> typeof java.lang.System["exit(int)"]
      object

      Expected: function

      jjs> var global = loadWithNewGlobal({ name: "t", script: "this" })
      jjs> typeof global.Object
      object

      Expected: function

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

              Created:
              Updated:
              Resolved: