ASF Bugzilla – Attachment 8020 Details for
Bug 22804
ArrayIndexOutOfBoundsException on negated classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase
testre.java (text/plain), 810 bytes, created by
Fernando Schapachnik
on 2003-09-01 12:48:08 UTC
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Fernando Schapachnik
Created:
2003-09-01 12:48:08 UTC
Size:
810 bytes
patch
obsolete
>/* > * testre.java > * > * Created on 1 de septiembre de 2003, 9:20 > */ > >package ar.gov.mecon.sso.testing; >import org.apache.regexp.*; > >/** > * > * @author fpscha > * @version > */ >public class testre { > > /** Creates new testre */ > public testre() { > } > > static public String sanitize(String input) { > String output= null; > try { > String allowed= "a-zA-Z0-9_@.: \u00F1\u00D1\u00E1\u00E9\u00ED\u00F3\u00FA\u00C1\u00C9\u00CD\u00D3\u00DA\r\n\\-"; > RE r= new RE("[^"+allowed+"]"); > output= r.subst(input, "_", RE.REPLACE_ALL); > } catch (Exception ex) { > ex.printStackTrace(); > } > > return output; > } > > /** > * @param args the command line arguments > */ > public static void main (String args[]) { > > System.out.println(sanitize("a$.\u00F1JOla^|-+_")); > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 22804
: 8020