Erfolg
tests.wurstscript.tests.NewFeatureTests.testSwitchEnumAll
Standard Fehler (STDERR)
java.lang.Error: Cannot change parent of element ImReturnImpl, as it is already used in another tree.Use the copy method to create a new tree or remove the tree from its old parent or set the parent to null before moving the tree. at de.peeeq.wurstscript.jassIm.ImReturnImpl.setParent(ImReturnImpl.java:21) at de.peeeq.wurstscript.jassIm.ImStmtsImpl.other_setParentToThis(ImStmtsImpl.java:29) at de.peeeq.wurstscript.jassIm.ImStmtsImpl.other_setParentToThis(ImStmtsImpl.java:5) at de.peeeq.wurstscript.jassIm.AsgList.addAll(AsgList.java:40) at de.peeeq.wurstscript.jassIm.ImStmts.addAll(ImStmts.java:5) at de.peeeq.wurstscript.jassIm.JassIm.ImStmts(JassIm.java:188) at de.peeeq.wurstscript.translation.imtranslation.StmtTranslation$1.visit(StmtTranslation.java:193) at de.peeeq.wurstscript.jassIm.ImReturnImpl.accept(ImReturnImpl.java:81) at de.peeeq.wurstscript.jassIm.Element$DefaultVisitor.visit(Element.java:332) at de.peeeq.wurstscript.jassIm.ImStmtsImpl.accept(ImStmtsImpl.java:56) at de.peeeq.wurstscript.translation.imtranslation.StmtTranslation.lambda$translate$67(StmtTranslation.java:189) at java.util.Optional.ifPresent(Optional.java:159) at de.peeeq.wurstscript.translation.imtranslation.StmtTranslation.translate(StmtTranslation.java:186) at de.peeeq.wurstscript.ast.StmtForInImpl.imTranslateStmt(StmtForInImpl.java:447) at de.peeeq.wurstscript.translation.imtranslation.ImTranslator.translateStatements(ImTranslator.java:801) at de.peeeq.wurstscript.translation.imtranslation.TLDTranslation.translate(TLDTranslation.java:84) at de.peeeq.wurstscript.ast.FuncDefImpl.imTranslateEntity(FuncDefImpl.java:585) at de.peeeq.wurstscript.translation.imtranslation.TLDTranslation.translate(TLDTranslation.java:59) at de.peeeq.wurstscript.ast.WPackageImpl.imTranslateTLD(WPackageImpl.java:411) at de.peeeq.wurstscript.translation.imtranslation.ImTranslator.translateCompilationUnit(ImTranslator.java:312) at de.peeeq.wurstscript.translation.imtranslation.ImTranslator.translateProg(ImTranslator.java:121) at de.peeeq.wurstio.WurstCompilerJassImpl.translateProgToIm(WurstCompilerJassImpl.java:462) at tests.wurstscript.tests.WurstScriptTest.translateAndTest(WurstScriptTest.java:306) at tests.wurstscript.tests.WurstScriptTest.testWithoutInliningAndOptimization(WurstScriptTest.java:233) at tests.wurstscript.tests.WurstScriptTest.testScript(WurstScriptTest.java:191) at tests.wurstscript.tests.WurstScriptTest.testScript(WurstScriptTest.java:160) at tests.wurstscript.tests.WurstScriptTest.testAssertOk(WurstScriptTest.java:107) at tests.wurstscript.tests.WurstScriptTest.testAssertOkLines(WurstScriptTest.java:95) at tests.wurstscript.tests.NewFeatureTests.testForInCloseBeforeReturn(NewFeatureTests.java:375) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.Invoker.invokeMethod(Invoker.java:571) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.privateRun(TestRunner.java:648) at org.testng.TestRunner.run(TestRunner.java:505) at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1183) at org.testng.TestNG.runSuitesLocally(TestNG.java:1116) at org.testng.TestNG.runSuites(TestNG.java:1028) at org.testng.TestNG.run(TestNG.java:996) at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:139) at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:89) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy2.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137) at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:745)