aionnetwork / AVM

Enabling Java code to run in a blockchain environment
https://theoan.com/
MIT License
49 stars 25 forks source link

[CLOSED] Insert the bytecode of energy charging and lazyLoad() when the ArrayWrappingClassGenerator generates the bytecode for avm_clone() method #264

Closed aionbot closed 5 years ago

aionbot commented 5 years ago

Issue created by nancyaion (on Friday Sep 28, 2018 at 16:01 GMT)

Discovered when re-writing the EnumShadowingTest. It fails at calculating the instance size of shadow.java.math.RoundingMode

aionbot commented 5 years ago

Comment by nancyaion (on Friday Sep 28, 2018 at 18:30 GMT)

After investigation, it turns out that this is not the problem; instead, we should not include any class file of shadow JCL when building the jar.

However, this test exposes another problem that we need to insert the bytecode of energy charging and lazyLoad() when the ArrayWrappingClassGenerator generates the bytecode for avm_clone() method. Changing the title.

aionbot commented 5 years ago

Comment by nancyaion (on Friday Sep 28, 2018 at 19:28 GMT)

Done.