Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8023647

" abc1c " .matches( " (\\w)+1\\1 " )) returns false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u11
    • core-libs
    • None
    • b106
    • windows_7
    • Verified

        FULL PRODUCT VERSION :
        java version " 1.7.0_11 "
        Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
        Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Ver 6.1.7601]

        A DESCRIPTION OF THE PROBLEM :
        System.out.println( " abc1c " .matches( " (\\w)+1\\1 " )); // prints false
        But
        System.out.println( " abc11 " .matches( " (\\w)+1\\1 " )); // prints true

        REGRESSION. Last worked in version 7


        REPRODUCIBILITY :
        This bug can be reproduced always.

              sherman Xueming Shen
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: