| Summary: | Invalid input incorrectly deducted users tokens | ||
|---|---|---|---|
| Product: | Slot Machine | Reporter: | josephccs0917 |
| Component: | slot machine | Assignee: | billy777 <cfyeung27-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | ||
| Priority: | High | ||
| Version: | 1.0 release | ||
| Hardware: | PC | ||
| OS: | Mac OS | ||
|
Description
josephccs0917
2019-11-24 14:55:34 HKT
Problem resolved by prohibiting player to enter input by themselves, but allow them to input the bet by clicking the add or minus button. The problem is caused by Generics in Java is only available at compile time. Java generic is only performing type safe casting at compile time. However, the problem is caused by user enter inputs at run time. Therefore, disabling the editable feature in spinner is the most intuitive way to solve the problem. |