tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Update of "Tomcat/UTF-8" by JuanGarcia
Date Sun, 22 Nov 2009 21:23:51 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "Tomcat/UTF-8" page has been changed by JuanGarcia.
The comment on this change is: Properly propagate the exception if there is a dangerous misconfiguration.
http://wiki.apache.org/tomcat/Tomcat/UTF-8?action=diff&rev1=12&rev2=13

--------------------------------------------------

     }
     catch(UnsupportedEncodingException e)
     {
+     throw new RuntimeException(e);
-     //  TODO: This should never happen. The UnsupportedEncodingException
-     // should be propagated instead of swallowed. This error would indicate
-     // a severe misconfiguration of the JVM.
- 
-     // As we can't translate just send back the best guess.
-     System.out.println("UnsupportedEncodingException is: " +
- e.getMessage());
-     utf8String = isoString;
     }
    }
    else

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message