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

JavaImporter fails to resolve method elements within functions, that contain too many statements

    XMLWordPrintable

    Details

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

      Backports

        Description

        JavaImporter fails to resolve method elements within functions, that contain too many statements
        var imports = new JavaImporter(java.lang, java.util);
         with (imports) {
          function func() {
           var i = new Integer(2); // first statement
            // more statements...
          }
          func();
        }

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pmuthuswamy Priya Lakshmi Muthuswamy (Inactive)
                Reporter:
                pmuthuswamy Priya Lakshmi Muthuswamy (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: