[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATCH: broken handling of alternate separators in java
From: |
Simon Josefsson |
Subject: |
Re: PATCH: broken handling of alternate separators in java |
Date: |
Thu, 16 Nov 2006 16:03:46 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) |
"Stephane Mikaty" <address@hidden> writes:
> +import gnu.inet.encoding.*;
> +
> +public class IDNATest {
> +
> + public static void main( String[] args ) throws Exception {
> + String[] tests = new String[] {
> + "domain\u3002invalid",
> + "domain\uFF0Einvalid",
> + "domain\uFF61invalid",
> + };
> + for ( String test : tests ) {
> + assert IDNA.toASCII( test ).equals( "domain.invalid" );
> + }
> + }
> +
> +}
When I tested this part of the patch (which is now merged with
TestIDNA.java in CVS), I got errors from gcj:
TestIDNA.java:57: error: Invalid declaration.
for ( String test : tests ) {
I'm not a Java programmer, is your syntax correct here?
/Simon