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

Indexed access to java package not working

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Backports

        Description

        The following should work to access java package "java.net":

        jjs> java['net']

        But it works only after the package has been created, e.g. after calling

        jjs> java.net

        One possible solution is to make ScriptObject#invokeNoSuchProperty(String) non-private and override it in NativeJavaImporter and possibly NativeJavaPackage.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sundar Sundararajan Athijegannathan
                  Reporter:
                  hannesw Hannes Wallnoefer
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: