History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1131
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: Dierk Koenig
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Character ++ and -- should be closed under their type

Created: 01/Nov/05 04:08 PM   Updated: 19/Jun/08 02:48 AM
Component/s: groovy-jdk
Affects Version/s: 1.0-JSR-3
Fix Version/s: 1.5.7, 1.6-beta-2

Time Tracking:
Not Specified


 Description  « Hide
public static Number next(Character self) { // Number/Character math ???
public static Number previous(Character self) {
++ and – should be closed under their type.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jochen Theodorou - 09/Sep/06 03:51 PM
to keep 1.0 compatibility we move it to 1.1

Paul King - 05/Jan/08 11:20 PM
We probably should do this but we need to hold off until + and - are also closed under their type for Character, i.e. do both at once.

Paul King - 16/Apr/08 07:54 PM
We should aim to do this for 1.6 as it is a minor breaking change.

Jochen Theodorou - 12/May/08 04:54 AM
given that Character.next and previous are exactly the same as Number.next and previous I don't see why we currently even have a special method for it.