Error thrown if a {@link Pattern pattern} is extremely large to be correctly processed."Extremely large" usually means that the number of points of the pattern is greater, or is probably greater, than Integer.MAX_VALUE=231−1, but the method cannot process such number of points due to Java limits, connected with 32-bit indexing. The typical example is {@link Pattern#points()} method,which throws this exception if the number of points is greater than Integer.MAX_VALUE: this method returns result as Java Set type, which is limited by 231−1 elements.
Usually OutOfMemoryError is also probable in situations, when this exception is probable.
AlgART Laboratory 2007–2014
@author Daniel Alievsky @version 1.2 @since JDK 1.5
|
|