ArrayIndexOutOfBoundsException in regular expression

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      From http://stackoverflow.com/questions/28703208/strange-exception-with-java8-nashorn-regex-engine

      jjs> var col0 = " xxxx, xxx xxxxxx xxxxxxxxx xxxxxxx, xxxx xxxxx xxxxx ";
      jjs> var name = /([^\s]+),(.*)+/.exec(col0);
      java.lang.ArrayIndexOutOfBoundsException: 64

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: