Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAX_INT (2147483647) is not handled in product and item quantity upon updating item quantity - Scenario 1 #6

Open
dannytayjy opened this issue Apr 1, 2022 · 0 comments

Comments

@dannytayjy
Copy link
Owner

dannytayjy commented Apr 1, 2022

Problem: MAX_INT (2147483647) is not handled in product and item quantity upon updating item quantity - Scenario 1

Updating the quantity of an existing item to MAX_INT + 1 (i.e., 2147483648) is prevented but the exception is not handled. There is no error message in the message box for the user to recover from the error.

Before Execution of Command in Command Text Box:

image.png

After Execution of Command in Command Text Box:

image.png

Log Messages:

Apr 01, 2022 4:12:38 PM seedu.ibook.logic.LogicManager execute
INFO: ----------------[USER COMMAND][update-item 1-2 q:2147483648]

Actual Outcome:

  • Nothing happens i.e., item and product quantity is not updated

Expected Outcome:

  • Nothing happens i.e., item and product quantity is not updated
  • Displays error message in the message box so that the user can recover from the error
@dannytayjy dannytayjy changed the title Problem MAX_INT (2147483647) is not handled in product and item quantity upon updating item quantity - Scenario 1 Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant