redline-smalltalk/redline-smalltalk — Issue #56: array literals cause exception
Author: LeeBreisacher
Created: 2011-12-20 01:06:55+00:00
State: open

I picked up the latest changes and now array literals don't work.

#(1 2 3) class.

produces:

st.redline.RedlineException: java.lang.ClassNotFoundException: value
at st.redline.RedlineException.withCause(RedlineException.java:15)
at st.redline.SmalltalkClassLoader.tryFindSystemClass(SmalltalkClassLoader.java:53)
at st.redline.SmalltalkClassLoader.findClass0(SmalltalkClassLoader.java:45)
at st.redline.SmalltalkClassLoader.findClass(SmalltalkClassLoader.java:38)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at st.redline.ProtoObject.loadObject(ProtoObject.java:124)
at st.redline.ProtoObject.resolveObject0(ProtoObject.java:111)
at st.redline.ProtoObject.resolveObject(ProtoObject.java:93)
at st.redline.Primitives.variableAt(Primitives.java:653)
at st.redline.Object$at:put:.applyTo(st/redline/Object.st:87)
at st.redline.Primitives.send(Primitives.java:709)
at st.redline.Primitives.putAt(Primitives.java:329)
at st.redline.ObjectTest.construct(st/redline/ObjectTest.st:62)
at st.redline.ObjectTest.(st/redline/ObjectTest.st)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at st.redline.ProtoObject.loadObject(ProtoObject.java:124)
at st.redline.ProtoObject.resolveObject0(ProtoObject.java:111)
at st.redline.ProtoObject.resolveObject(ProtoObject.java:93)
at st.redline.ProtoObject.resolveObject(ProtoObject.java:55)
at st.redline.Stic.createClassInstance(Stic.java:73)
at st.redline.Stic.invoke(Stic.java:69)
at st.redline.Stic.invokeWith(Stic.java:26)
at st.redline.StTester.test(StTester.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.ClassNotFoundException: value
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.ClassLoader.findSystemClass(ClassLoader.java:915)
at st.redline.SmalltalkClassLoader.tryFindSystemClass(SmalltalkClassLoader.java:51)
... 52 more