You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "ZhiQiang,He (JIRA)" <ji...@apache.org> on 2012/11/28 12:25:00 UTC

[jira] [Created] (COCOON3-114) The next year and previous year is incorrect

ZhiQiang,He created COCOON3-114:
-----------------------------------

             Summary: The next year and previous year is incorrect
                 Key: COCOON3-114
                 URL: https://issues.apache.org/jira/browse/COCOON3-114
             Project: Cocoon 3
          Issue Type: Bug
          Components: cocoon-optional
            Reporter: ZhiQiang,He
            Priority: Critical


The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "Robby Pelssers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505382#comment-13505382 ] 

Robby Pelssers commented on COCOON3-114:
----------------------------------------

The unit test only checks if the number of nodes equals the expected output.

1   <calendar:calendar>
5   <calendar:week>
31 <calendar:day>

37 = total nodes so the test passes.  We probably should extra content specific tests like checking node values or attribute values

                
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "ZhiQiang,He (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505414#comment-13505414 ] 

ZhiQiang,He commented on COCOON3-114:
-------------------------------------

The cloned calendars are memory waste, i think whether we can add 1 on nextYear and substract 1 on prevYear
                
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "ZhiQiang,He (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ZhiQiang,He updated COCOON3-114:
--------------------------------

    Fix Version/s: 3.0.0-beta-1
    
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "ZhiQiang,He (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ZhiQiang,He updated COCOON3-114:
--------------------------------

    Summary: The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module  (was: The next year and previous year is incorrect)
    
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (COCOON3-114) The next year and previous year is incorrect

Posted by "ZhiQiang,He (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ZhiQiang,He updated COCOON3-114:
--------------------------------

    Attachment: cocoon-optional-CalendarGenerator.patch

This is patch file of CalendarGenerator generate from eclipse, file encoding is utf-8
                
> The next year and previous year is incorrect
> --------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "Robby Pelssers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505382#comment-13505382 ] 

Robby Pelssers edited comment on COCOON3-114 at 11/28/12 12:06 PM:
-------------------------------------------------------------------

The unit test only checks if the number of nodes equals the expected output.

1   <calendar:calendar>
5   <calendar:week>
31 <calendar:day>

37 = total nodes so the test passes.  We probably should add extra content specific tests like checking node values or attribute values

                
      was (Author: robbypelssers):
    The unit test only checks if the number of nodes equals the expected output.

1   <calendar:calendar>
5   <calendar:week>
31 <calendar:day>

37 = total nodes so the test passes.  We probably should extra content specific tests like checking node values or attribute values

                  
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "ZhiQiang,He (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505399#comment-13505399 ] 

ZhiQiang,He commented on COCOON3-114:
-------------------------------------

I means is if you set the year with parameter:

parameters.put("year", 2012);

Whether the "prevYear" attrubte of <calendar:calendar> should be 2011, "nextYear" should be 2013, but in the output of yours, the previous year and next year always same as you set

                
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "Robby Pelssers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robby Pelssers closed COCOON3-114.
----------------------------------

    Resolution: Fixed
      Assignee: Robby Pelssers

Subversion: Committed revision 1414667.
                
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Assignee: Robby Pelssers
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505461#comment-13505461 ] 

Hudson commented on COCOON3-114:
--------------------------------

Integrated in Cocoon 3.0 #224 (See [https://builds.apache.org/job/Cocoon%203.0/224/])
    [COCOON3-114]  bugfix

<calendar:calendar>  @prevYear="2010"  @nextYear="2012"  were not set correctly (Revision 1414667)

     Result = SUCCESS
robbypelssers : http://svn.apache.org/viewvc/?view=rev&rev=1414667
Files : 
* /cocoon/cocoon3/trunk/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/calendar/CalendarGenerator.java

                
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Assignee: Robby Pelssers
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "Robby Pelssers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505386#comment-13505386 ] 

Robby Pelssers commented on COCOON3-114:
----------------------------------------

Hi ZhiQiang,

I wish you would have specified more clearly what is wrong.  I think you made a wrong assumption about the cloning. The CalendarGenerator uses default values if they are not specified in the configuration:
        this.year = cacheKeyParList.getAsInteger("year", now.get(Calendar.YEAR));
        this.month = cacheKeyParList.getAsInteger("month", now.get(Calendar.MONTH) + 1) - 1;

But i ran the test for 2 configurations and it all looks just fine:

        parameters.put("lang", "de");
        parameters.put("country", "DE");
        parameters.put("year", 2011);
        parameters.put("month", 2);

<?xml version="1.0" encoding="UTF-8"?>
<calendar:calendar xmlns:calendar="http://apache.org/cocoon/calendar/1.0" year="2011" month="Februar" prevYear="2011" prevMonth="01" nextYear="2011" nextMonth="03">
  <calendar:week number="1">
    <calendar:day number="1" weekday="Dienstag" date="1. Februar 2011"/>
    <calendar:day number="2" weekday="Mittwoch" date="2. Februar 2011"/>
    <calendar:day number="3" weekday="Donnerstag" date="3. Februar 2011"/>
	<calendar:day number="4" weekday="Freitag" date="4. Februar 2011"/>
	<calendar:day number="5" weekday="Samstag" date="5. Februar 2011"/>
	<calendar:day number="6" weekday="Sonntag" date="6. Februar 2011"/>
  </calendar:week>
  <calendar:week number="2">
    <calendar:day number="7" weekday="Montag" date="7. Februar 2011"/>
	<calendar:day number="8" weekday="Dienstag" date="8. Februar 2011"/>
	<calendar:day number="9" weekday="Mittwoch" date="9. Februar 2011"/>
	<calendar:day number="10" weekday="Donnerstag" date="10. Februar 2011"/>
	<calendar:day number="11" weekday="Freitag" date="11. Februar 2011"/>
	<calendar:day number="12" weekday="Samstag" date="12. Februar 2011"/>
	<calendar:day number="13" weekday="Sonntag" date="13. Februar 2011"/>
  </calendar:week>
  <calendar:week number="3">
    <calendar:day number="14" weekday="Montag" date="14. Februar 2011"/>
	<calendar:day number="15" weekday="Dienstag" date="15. Februar 2011"/>
	<calendar:day number="16" weekday="Mittwoch" date="16. Februar 2011"/>
	<calendar:day number="17" weekday="Donnerstag" date="17. Februar 2011"/>
	<calendar:day number="18" weekday="Freitag" date="18. Februar 2011"/>
	<calendar:day number="19" weekday="Samstag" date="19. Februar 2011"/>
	<calendar:day number="20" weekday="Sonntag" date="20. Februar 2011"/>
  </calendar:week>
  <calendar:week number="4">
    <calendar:day number="21" weekday="Montag" date="21. Februar 2011"/>
	<calendar:day number="22" weekday="Dienstag" date="22. Februar 2011"/>
	<calendar:day number="23" weekday="Mittwoch" date="23. Februar 2011"/>
	<calendar:day number="24" weekday="Donnerstag" date="24. Februar 2011"/>
	<calendar:day number="25" weekday="Freitag" date="25. Februar 2011"/>
	<calendar:day number="26" weekday="Samstag" date="26. Februar 2011"/>
	<calendar:day number="27" weekday="Sonntag" date="27. Februar 2011"/>
  </calendar:week>
  <calendar:week number="5">
    <calendar:day number="28" weekday="Montag" date="28. Februar 2011"/>
  </calendar:week>
</calendar:calendar>

        parameters.put("lang", "de");
        parameters.put("country", "DE");
        parameters.put("year", 2012);
        parameters.put("month", 3);

<?xml version="1.0" encoding="UTF-8"?>
<calendar:calendar xmlns:calendar="http://apache.org/cocoon/calendar/1.0" year="2012" month="März" prevYear="2012" prevMonth="02" nextYear="2012" nextMonth="04">
  <calendar:week number="1">
    <calendar:day number="1" weekday="Donnerstag" date="1. März 2012"/>
	<calendar:day number="2" weekday="Freitag" date="2. März 2012"/>
	<calendar:day number="3" weekday="Samstag" date="3. März 2012"/>
	<calendar:day number="4" weekday="Sonntag" date="4. März 2012"/>
  </calendar:week>
  <calendar:week number="2">
	<calendar:day number="5" weekday="Montag" date="5. März 2012"/>
	<calendar:day number="6" weekday="Dienstag" date="6. März 2012"/>
	<calendar:day number="7" weekday="Mittwoch" date="7. März 2012"/>
	<calendar:day number="8" weekday="Donnerstag" date="8. März 2012"/>
	<calendar:day number="9" weekday="Freitag" date="9. März 2012"/>
	<calendar:day number="10" weekday="Samstag" date="10. März 2012"/>
	<calendar:day number="11" weekday="Sonntag" date="11. März 2012"/>
  </calendar:week>
  <calendar:week number="3">
    <calendar:day number="12" weekday="Montag" date="12. März 2012"/>
	<calendar:day number="13" weekday="Dienstag" date="13. März 2012"/>
	<calendar:day number="14" weekday="Mittwoch" date="14. März 2012"/>
	<calendar:day number="15" weekday="Donnerstag" date="15. März 2012"/>
	<calendar:day number="16" weekday="Freitag" date="16. März 2012"/>
	<calendar:day number="17" weekday="Samstag" date="17. März 2012"/>
	<calendar:day number="18" weekday="Sonntag" date="18. März 2012"/>
  </calendar:week>
  <calendar:week number="4">
    <calendar:day number="19" weekday="Montag" date="19. März 2012"/>
	<calendar:day number="20" weekday="Dienstag" date="20. März 2012"/>
	<calendar:day number="21" weekday="Mittwoch" date="21. März 2012"/>
	<calendar:day number="22" weekday="Donnerstag" date="22. März 2012"/>
	<calendar:day number="23" weekday="Freitag" date="23. März 2012"/>
	<calendar:day number="24" weekday="Samstag" date="24. März 2012"/>
	<calendar:day number="25" weekday="Sonntag" date="25. März 2012"/>
  </calendar:week>
  <calendar:week number="5">
    <calendar:day number="26" weekday="Montag" date="26. März 2012"/>
	<calendar:day number="27" weekday="Dienstag" date="27. März 2012"/>
	<calendar:day number="28" weekday="Mittwoch" date="28. März 2012"/>
	<calendar:day number="29" weekday="Donnerstag" date="29. März 2012"/>
	<calendar:day number="30" weekday="Freitag" date="30. März 2012"/>
	<calendar:day number="31" weekday="Samstag" date="31. März 2012"/>
  </calendar:week>
</calendar:calendar>

Please test again or add useful comments to the ticket as to what you think is wrong !!!  Otherwise I will close this ticket as not reproducable.

                
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "Robby Pelssers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505409#comment-13505409 ] 

Robby Pelssers commented on COCOON3-114:
----------------------------------------

Ok... now i understand... only the @prevYear="2012" and  @nextYear="2012" are wrong.  I will look into it.
                
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (COCOON3-114) The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module

Posted by "ZhiQiang,He (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505399#comment-13505399 ] 

ZhiQiang,He edited comment on COCOON3-114 at 11/28/12 12:24 PM:
----------------------------------------------------------------

I means is if you set the year with parameter:

parameters.put("year", 2012);

Whether the "prevYear" attrubte of <calendar:calendar> should be 2011, "nextYear" should be 2013, but in the output of yours, the previous year and next year always same as you set

The following is my sitemap pipeline configuration:

<map:pipeline>
	<map:match pattern="sitemaps/optional/calendar/{lang}">
		<map:generate type="calendar">
			<map:parameter name="lang" value="{map:lang}"/>
			<map:parameter name="country" value="CN"/>
			<map:parameter name="year" value="2013"/>
			<map:parameter name="month" value="12"/>
			<map:parameter name="dateFormat" value="yyyy-MM-dd"/>
		</map:generate>
		<map:serialize type="xml"/>
	</map:match>
</map:pipeline>    

                
      was (Author: zhiqiang,he):
    I means is if you set the year with parameter:

parameters.put("year", 2012);

Whether the "prevYear" attrubte of <calendar:calendar> should be 2011, "nextYear" should be 2013, but in the output of yours, the previous year and next year always same as you set

                  
> The next year and previous year is incorrect of CalendarGenerator in the cocoon-optional module
> -----------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-114
>                 URL: https://issues.apache.org/jira/browse/COCOON3-114
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-optional
>            Reporter: ZhiQiang,He
>            Priority: Critical
>             Fix For: 3.0.0-beta-1
>
>         Attachments: cocoon-optional-CalendarGenerator.patch
>
>
> The calendar of previous year and next year which cloned from start clendar is same as this year with no adding and substract, but i down known why the test case is passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira