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

ArrayIndexOutOfBoundsException in regular expression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • 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

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

              Created:
              Updated:
              Resolved: