Skip to content

Week-year based properties fail on calendar-maximal years #197

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Create a LocalDate late in the largest year supported by a calendar
2. Ask for the WeekYear

What is the expected output? What do you see instead?
It should give the right year. Instead, it will throw an exception when it 
tries to check whether the date is actually in the next week-year.

Fundamentally we have a problem around maximum/minimum years, as they won't 
necessarily align. We can say we support everything in the last calendar year, 
but we'd potentially need to increase the maximum week-year, and just not 
support everything in that.

(Also, we're not very good at spotting that we've gone outside the bounds of 
the largest year. We should potentially validate against a min/max LocalInstant 
every time we create a new LocalDate/LocalDateTime.)

Original issue reported on code.google.com by jonathan.skeet on 17 Mar 2013 at 10:11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions