JDK-4937728 : Must be able to know if regex engine hit end of input
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.regex
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2003-10-15
  • Updated: 2017-05-16
  • Resolved: 2003-11-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
5.0 betaFixed
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-beta
2004-06-14

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