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

Indexed access to java package not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None

        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.

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

                Created:
                Updated:
                Resolved: