tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlewissh...@apache.org
Subject cvs commit: jakarta-tapestry/junit/src/org/apache/tapestry/junit TestComponentMessages.java
Date Mon, 02 Jun 2003 21:52:44 GMT
rlewisshell    2003/06/02 14:52:43

  Modified:    framework/src/org/apache/tapestry/engine
                        ComponentMessages.java
               web      new.html
               junit/src/org/apache/tapestry/junit
                        TestComponentMessages.java
  Log:
  [ 20430 ] ComponentMessages and its test do not compile under JDK 1.3
  
  Revision  Changes    Path
  1.3       +3 -2      jakarta-tapestry/framework/src/org/apache/tapestry/engine/ComponentMessages.java
  
  Index: ComponentMessages.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/engine/ComponentMessages.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ComponentMessages.java	28 May 2003 14:53:53 -0000	1.2
  +++ ComponentMessages.java	2 Jun 2003 21:52:40 -0000	1.3
  @@ -118,7 +118,8 @@
       {
           String pattern = getMessage(key);
   
  -        MessageFormat messageFormat = new MessageFormat(pattern, _locale);
  +        MessageFormat messageFormat = new MessageFormat(pattern);
  +        messageFormat.setLocale(_locale);
   
           return messageFormat.format(arguments);
       }
  
  
  
  1.177     +5 -1      jakarta-tapestry/web/new.html
  
  Index: new.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/web/new.html,v
  retrieving revision 1.176
  retrieving revision 1.177
  diff -u -r1.176 -r1.177
  --- new.html	2 Jun 2003 15:38:57 -0000	1.176
  +++ new.html	2 Jun 2003 21:52:42 -0000	1.177
  @@ -11,6 +11,10 @@
   	<tr>
   		<td valign="top" align="left"><IMG alt="[Tapestry Banner]" src="images/Tapestry-Banner.png"
border="0">
   		
  +<pre>
  +[ 20430 ] ComponentMessages and its test do not compile under JDK 1.3
  +</pre>
  +
   <h3>Release 3.0-beta-1</h3>
   
   <ul>
  
  
  
  1.2       +4 -4      jakarta-tapestry/junit/src/org/apache/tapestry/junit/TestComponentMessages.java
  
  Index: TestComponentMessages.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/TestComponentMessages.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestComponentMessages.java	28 May 2003 14:53:53 -0000	1.1
  +++ TestComponentMessages.java	2 Jun 2003 21:52:43 -0000	1.2
  @@ -165,7 +165,7 @@
   
       public void testDateFormatting()
       {
  -        IPage page = createPage(MOCK1, new Locale("en"));
  +        IPage page = createPage(MOCK1, Locale.ENGLISH);
   
           Calendar c = new GregorianCalendar(1966, Calendar.DECEMBER, 24);
   
  @@ -178,8 +178,8 @@
   
       public void testDateFormatLocalization()
       {
  -        IPage page = createPage(MOCK1, new Locale("fr"));
  -
  +        IPage page = createPage(MOCK1, Locale.FRENCH);
  +        
           Calendar c = new GregorianCalendar(1966, Calendar.DECEMBER, 24);
   
           Date d = c.getTime();
  
  
  

Mime
View raw message