ClassCarpenter fails when superclass has double-size primitive field (e.g. long, double)

Description

The following test fails, because the `ClassCarpenter` incorrectly calculates the stack size of fields if there are double-size primitive fields (e.g. long or double) in a superclass constructor:

The fault is in ClassWriter.generateClassConstructor, and the solution is to sum the sizes of the fields in the superclass constructor and make sure this value is used to set the initial stack slot correctly for the parameters.

Activity

Show:
Katelyn Baker
September 14, 2018, 4:21 PM

This isn't on the V3 branch so un-marking

Assignee

Dominic.Fox@r3.com

Reporter

Dominic.Fox@r3.com

Labels

None

Sprint

None

Epic Link

None

Priority

Medium

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

None

Fix versions

Affects versions

Ported to...

None

Story Points / Dev Days

None
Configure