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

Indexed access of Java methods on JS primitive types does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      This issue was reported by Axel Faust via https://twitter.com/ReluctantBird83/status/679600616595918848 (see also JI-9027774).

      Test case is here -> http://fpaste.org/304235/50864308/

      Test case copied here for convenience:

          var nr = Packages.java.lang.Double.valueOf(2.5);
          var prop = 'int';
          print(nr[prop + 'Value']); // yields undefined instead of method handle for intValue()


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

              Created:
              Updated:
              Resolved: