Looks good.

I can see that Lance has offered to sponsor that for you. (I was writing this 
message when I saw his reply.) 

I researched history a bit. That happened as one might guess quite trivially in 
November 2006:

2c2
<  * @(#)Pattern.java   1.124 06/11/09
---
>  * @(#)Pattern.java   1.125 06/11/14
583,585c583,585
<  * constructs, please see <a href="http://www.oreilly.com/catalog/regex2/";>
<  * <i>Mastering Regular Expressions, 2nd Edition</i>, Jeffrey E. F. Friedl,
<  * O'Reilly and Associates, 2002.</a>
---
>  * constructs, please see <a href="http://www.oreilly.com/catalog/regex3/";>
>  * <i>Mastering Regular Expressions, 3nd Edition</i>, Jeffrey E. F. Friedl,
>  * O'Reilly and Associates, 2006.</a>
594c594
<  * @version   1.124, 06/11/09
---
>  * @version   1.125, 06/11/14

-Pavel

> On 30 May 2020, at 03:24, Hong Shao Yang <hongsy2...@gmail.com> wrote:
> 
> Hi!
> 
> I found a typo which has been long undetected in the documentation.
> 
> In case you think this is worthwhile, I would appreciate it if someone
> can sponsor this patch.
> 
> Cheers,
> Shao Yang
> 
> ========= PATCH ==========
> 
> diff --git a/src/java.base/share/classes/java/util/regex/Pattern.java
> b/src/java.base/share/classes/java/util/regex/Pattern.java
> index 0d7d0738965..82325d04f25 100644
> --- a/src/java.base/share/classes/java/util/regex/Pattern.java
> +++ b/src/java.base/share/classes/java/util/regex/Pattern.java
> @@ -760,7 +760,7 @@ import jdk.internal.util.ArraysSupport;
>  *
>  * <p> For a more precise description of the behavior of regular expression
>  * constructs, please see <a href="http://www.oreilly.com/catalog/regex3/";>
> - * <i>Mastering Regular Expressions, 3nd Edition</i>, Jeffrey E. F. Friedl,
> + * <i>Mastering Regular Expressions, 3rd Edition</i>, Jeffrey E. F. Friedl,
>  * O'Reilly and Associates, 2006.</a>
>  * </p>
>  *

Reply via email to