JShell: SourceCodeAnalysis splits code with array initialiazer incorrectly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • b147
    • Verified

      SourceCodeAnalysis splits code with array declaration incorrectly.

      Example:
      int[] m = {1, 2}, n = new int[0];
      int i;

      SourceCodeAnalysis is expected to split these two lines, but it does not. If "{1, 2}" is replaced with "new int..." or removed, the code is split as expected.

      ------

      Also handle, as incomplete:

           int m = 0,

           Map<String,

            Assignee:
            Robert Field (Inactive)
            Reporter:
            Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: