United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4937728 : Must be able to know if regex engine hit end of input

Details
Type:
Bug
Submit Date:
2003-10-15
Status:
Resolved
Updated Date:
2003-11-23
Project Name:
JDK
Resolved Date:
2003-11-23
Component:
core-libs
OS:
solaris_9
Sub-Component:
java.util.regex
CPU:
sparc
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (beta)

Related Reports

Sub Tasks

Description
There needs to be a way to find out if the end of input was hit by the search 
engine in the last match operation performed by a matcher. A boolean method 
hitEnd() could be used to offer this information.

When this method returns true, then it is possible that more input 
would have changed the result of the last search.

Similarly, a method is needed that returns true if more input could change a 
positive match into a negative one. A boolean method requireEnd() could be 
used to offer this information.

If this method returns true, and a match was found, then more input could cause
the match to be lost. If this method returns false and a match was found, then 
more input might change the match but the match won't be lost.


                                    

Comments
EVALUATION

Yes, this is needed to make a correct Scanner.
###@###.### 2003-10-14
                                     
2003-10-14
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together