YaroslavGaponov / node-jvm

java virtual machine in pure node.js
2.11k stars 178 forks source link

"not support constant type" error #24

Open allencblee opened 10 years ago

allencblee commented 10 years ago

The following throws the "not support constant type" error:

for (int i = 0; i < 100000; i++) { ..... }

inside the ldc in frame.js (line 213).

When I change it to for (long i = 0; i < 100000; i++), it works. Seems that ldc doesn't support int typed constants.