Bug 211 - clone backUp pool should do not clone the tile set object
Summary: clone backUp pool should do not clone the tile set object
Status: RESOLVED FIXED
Alias: None
Product: Gp10
Classification: Unclassified
Component: java (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- blocker
Assignee: whng28-c
URL:
Depends on:
Blocks:
 
Reported: 2017-11-26 02:13 HKT by whng28-c
Modified: 2017-11-26 02:13 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whng28-c 2017-11-26 02:13:21 HKT
1. New a Game
2. Add a New set to pool
3. End turn
4. Add a invalid tile to that previous valid set in the pool
5. End turn

Expected:
- invalid pool
- should not save the pool, do backUp() to resolve the previous pool
- add back the played invalid tile to player's rack

Actual:
- invalid pool
- do backUp(), but the backUp pool clone the linked tileSet object, when player add invalid tile to that tileSet object, backUp pool also affected
- add back the played invalid tile to player's rack