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

java.util.regex.Pattern documentation is not correct.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • core-libs

      A DESCRIPTION OF THE PROBLEM :
      Documentation related to this method
      public static Pattern compile(String regex,int flags)
      is not correct.

      You can see this description:
      Throws:
          IllegalArgumentException - If bit values other than those corresponding to the defined match flags are set in flags

      while java.util.regex.Pattern never raises this excception.



      URL OF FAULTY DOCUMENTATION :
      http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html

            sherman Xueming Shen
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: