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

MaskFormatter should provide a minimum match length

XMLWordPrintable

    • x86, sparc
    • solaris_8, windows_xp



      Name: jl125535 Date: 07/29/2002


      FULL PRODUCT VERSION :
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      SunOS panic 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-80


      ADDITIONAL OPERATING SYSTEMS : All



      A DESCRIPTION OF THE PROBLEM :
      The MaskFormatter class requires a stringent mask. I would
      like to specify the number of mask characters that must
      match to make the value valid. For example, if I have a
      zip code field, I would like to use a format of:
      "#####-####" with a numMatch of 5 which implies that only
      the first 5 characters are required. As another example you
      can specify a phone number as "(###)###-#### x####" with
      a numMatch set to 10 so that only the first 10 mask
      characters must match.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 159909)
      ======================================================================

            peterz Peter Zhelezniakov
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: