Hi all,

when i try to compile my project i have this error :

duplicate case label error.

Below the code where the error is raised:

for (int i = 0; i < n; i++) {

         char c = s.charAt(i);

         switch (c) {

            case '<': sb.append("&lt;"); break;

            case '>': sb.append("&gt;"); break;

            case '&': sb.append("&amp;"); break;

            case '"': sb.append("&quot;"); break;

            case 'à': sb.append("&agrave;");break;

            case 'À': sb.append("&Agrave;");break;

            case 'â': sb.append("&acirc;");break;

            case 'Â': sb.append("&Acirc;");break;

            case 'ä': sb.append("&auml;");break;

            case 'Ä': sb.append("&Auml;");break;

            case 'å': sb.append("&aring;");break;

            case 'Å': sb.append("&Aring;");break;

            case 'æ': sb.append("&aelig;");break;

            case 'Æ': sb.append("&AElig;");break;

            case 'ç': sb.append("&ccedil;");break;

…



In all the line.

I compiled in windows machine and all works fine.

I try ti compile in my linux machine and I have that error.

Some body can help me?



Tnx,

Luca

Reply via email to