typeof does not work properly for java methods and foreign objects

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: