jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest GetLocalesTestServlet.java
Date Tue, 05 Dec 2000 02:17:38 GMT
craigmcc    00/12/04 18:17:37

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest
                        GetLocalesTestServlet.java
  Log:
  Correct bugs in this test:
  * Cannot use equals() method of Locale to compare to a String.
  * "locale2" was not being set correctly.
  
  Revision  Changes    Path
  1.4       +5 -5      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetLocalesTestServlet.java
  
  Index: GetLocalesTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetLocalesTestServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GetLocalesTestServlet.java	2000/11/09 17:54:48	1.3
  +++ GetLocalesTestServlet.java	2000/12/05 02:17:37	1.4
  @@ -1,6 +1,6 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetLocalesTestServlet.java,v
1.3 2000/11/09 17:54:48 santosh Exp $
  - * $Date: 2000/11/09 17:54:48 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetLocalesTestServlet.java,v
1.4 2000/12/05 02:17:37 craigmcc Exp $
  + * $Date: 2000/12/05 02:17:37 $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -92,11 +92,11 @@
   		while(e.hasMoreElements()) {
                           count++;
                           Locale gotLocale = (Locale)e.nextElement();
  -                        if ( gotLocale.equals("en_US") )
  +                        if ( gotLocale.toString().equals("en_US") )
                           locale1="us" ;
   
  -                        if ( gotLocale.equals("en_GB") )
  -                        locale1="gb" ;
  +                        if ( gotLocale.toString().equals("en_GB") )
  +                        locale2="gb" ;
   
                           }
    String final_string = locale1 + locale2;
  
  
  

Mime
View raw message