Issue Details (XML | Word | Printable)

Key: JANINO-114
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Arno Unkrig
Reporter: Matt Fowles
Votes: 0
Watchers: 0
Operations

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

ArithmeticException in UnitCompiler.getConstantValue

Created: 19/May/08 08:11 PM   Updated: 16/Jun/08 09:28 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File arithmetic.patch (13 kB)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide
Compiling the code
public int runIntDiv() {
        return 1 / 0;
    }

produces an ArithmeticException at compile time.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Arno Unkrig added a comment - 21/May/08 08:07 PM
Your fix will go into the next version of JANINO.

Matt Fowles added a comment - 16/Jun/08 09:28 AM
Arno, I do not have the ability to close this issue. I think my login to Jira does not have the power. You can consider this closed.