Faculty of Information Technology
Software Engineering Group

Opened 4 years ago

#86 new defect

Integer arithmetic is not spec-compliant

Reported by: Jan Vraný Owned by: Jan Vraný
Priority: major Milestone: milestone:
Component: stx:libjava Keywords:
Cc:

Description

Integer arithmetic (int, long) does not behave according to spec.
Behaviour on underflow/overflow is likely to be broken (especially on 64bit). Corner cases (such as Integer.MIN_VALUE / -1 are not handled properly.

Before fixing this, the interpreter should make use of helper routines such as _idiv(), _iadd() to ensure the behaviour is in sync with jitted code.

See also #85

Change History (0)

Note: See TracTickets for help on using tickets.