You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MatchIterator returned by scala.util.matching.Regex.findAllIn is backed by a java.util.regex.Matcher, which throws IllegalStateExceptions if called before it had been initialized.
This behaviour is not documented in the Scaladoc, leading to a confusing user experience:
valmsg="I love Scala"valstart="".r.findAllIn(msg).start // throws an IllegalStateException
The MatchIterator returned by scala.util.matching.Regex.findAllIn is backed by a java.util.regex.Matcher, which throws IllegalStateExceptions if called before it had been initialized.
This behaviour is not documented in the Scaladoc, leading to a confusing user experience:
See discussion here: https://groups.google.com/forum/#!topic/scala-language/2T2wKVQiyVg
The text was updated successfully, but these errors were encountered: