int3/doppio — pull request #252 by angrave (2013-08-14 20:08:32+00:00)
Title: Reflect array changes

Please see just the 3 recent commits in reflectArray-changes branch

git cherry-pick b9b6f0d3580b77671f3e80b8f2045663651c5937
git cherry-pick e4df0560fd2c157623f194c66172e2d04530961e
git cherry-pick 1b3e54a274b64fa1c0f42741a2209f560090b505

* Added array code to BeanShellTest that creates and uses a few arrays.
* A new test classes that exercises all public methods in java.lang.reflect.Array
* An attempt to implement the get() method

Note the given native Array implementation does not work, and instead generates the following errors-
make -j4 test
✓✓✓✓✓✓✓✓✓✓✓✓✓✓javap -bootclasspath /Users/angrave/develop/javaplayland/vendor/doppio/vendor/classes -c -verbose -private classes/test/JavaLangReflectArrayTest >classes/test/JavaLangReflectArrayTest.disasm

Internal JVM Error: TypeError: Cannot call method 'method_lookup' of undefined
TypeError: Cannot call method 'method_lookup' of undefined
at DynInvokeOpcode.root.DynInvokeOpcode.DynInvokeOpcode.execute (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/opcodes.js:92:34)
at Method.root.Method.Method.run_bytecode (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/methods.js:148:24)
at StackFrame.sf.runner (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/methods.js:166:34)
at Object._onImmediate (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/runtime.js:315:85)
at processImmediate [as _immediateCallback] (timers.js:317:15)
✗java -Xbootclasspath/a:/Users/angrave/develop/javaplayland/vendor/doppio/vendor/classes classes/test/JavaLangReflectArrayTest &>classes/test/JavaLangReflectArrayTest.runout
✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓
Internal JVM Error: TypeError: Cannot call method 'is_castable' of undefined
TypeError: Cannot call method 'is_castable' of undefined
at ClassOpcode.cls.new_execute (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/opcodes.js:1121:62)
at ClassOpcode.root.opcodes.root.ClassOpcode.execute (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/opcodes.js:1123:32)
at Method.root.Method.Method.run_bytecode (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/methods.js:148:24)
at StackFrame.sf.runner (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/methods.js:166:34)
at Object._onImmediate (/Users/angrave/develop/javaplayland/vendor/doppio/build/release/src/runtime.js:315:85)
at processImmediate [as _immediateCallback] (timers.js:317:15)
✗✓
Failed output test: classes/test/BeanShellTest