Fehlschlag

tests.wurstscript.tests.ClassesExtTests.ondestroy_dynamicdispatchFrotty2

Schlägt fehl seit 2 Builds (Seit #1287 )
Dauer: 2 ms.

Fehlermeldung

Error in File ondestroy_dynamicdispatchFrotty2 line 6:
 Global variable <s> must be declared before it is used.

Stacktrace

Error in File ondestroy_dynamicdispatchFrotty2 line 6:
 Global variable <s> must be declared before it is used.
	at de.peeeq.wurstscript.attributes.ErrorHandling.makeCompileError(ErrorHandling.java:35)
	at de.peeeq.wurstscript.attributes.ErrorHandling.addErrorOrWarning(ErrorHandling.java:25)
	at de.peeeq.wurstscript.attributes.ErrorHandling.addError(ErrorHandling.java:15)
	at de.peeeq.wurstscript.ast.ExprVarAccessImpl.addError(ExprVarAccessImpl.java:473)
	at de.peeeq.wurstscript.validation.ValidateGlobalsUsage$2.visit(ValidateGlobalsUsage.java:64)
	at de.peeeq.wurstscript.ast.ExprVarAccessImpl.accept(ExprVarAccessImpl.java:106)
	at de.peeeq.wurstscript.ast.Element$DefaultVisitor.visit(Element.java:612)
	at de.peeeq.wurstscript.ast.StmtSetImpl.accept(StmtSetImpl.java:115)
	at de.peeeq.wurstscript.ast.Element$DefaultVisitor.visit(Element.java:895)
	at de.peeeq.wurstscript.ast.WStatementsImpl.accept(WStatementsImpl.java:70)
	at de.peeeq.wurstscript.ast.Element$DefaultVisitor.visit(Element.java:539)
	at de.peeeq.wurstscript.ast.OnDestroyDefImpl.accept(OnDestroyDefImpl.java:97)
	at de.peeeq.wurstscript.ast.Element$DefaultVisitor.visit(Element.java:498)
	at de.peeeq.wurstscript.ast.ClassDefImpl.accept(ClassDefImpl.java:289)
	at de.peeeq.wurstscript.ast.Element$DefaultVisitor.visit(Element.java:825)
	at de.peeeq.wurstscript.ast.WEntitiesImpl.accept(WEntitiesImpl.java:63)
	at de.peeeq.wurstscript.ast.Element$DefaultVisitor.visit(Element.java:429)
	at de.peeeq.wurstscript.ast.WPackageImpl.accept(WPackageImpl.java:154)
	at de.peeeq.wurstscript.validation.ValidateGlobalsUsage.checkGlobalsUsage(ValidateGlobalsUsage.java:47)
	at de.peeeq.wurstscript.validation.ValidateGlobalsUsage.checkGlobalsUsage(ValidateGlobalsUsage.java:16)
	at de.peeeq.wurstscript.validation.WurstValidator.postChecks(WurstValidator.java:83)
	at de.peeeq.wurstscript.validation.WurstValidator.validate(WurstValidator.java:64)
	at de.peeeq.wurstscript.WurstChecker.checkProg(WurstChecker.java:46)
	at de.peeeq.wurstio.WurstCompilerJassImpl.checkProg(WurstCompilerJassImpl.java:402)
	at de.peeeq.wurstio.WurstCompilerJassImpl.checkProg(WurstCompilerJassImpl.java:390)
	at tests.wurstscript.tests.WurstScriptTest$TestConfig.testScript(WurstScriptTest.java:181)
	at tests.wurstscript.tests.WurstScriptTest$TestConfig.run(WurstScriptTest.java:129)
	at tests.wurstscript.tests.WurstScriptTest$TestConfig.lines(WurstScriptTest.java:119)
	at tests.wurstscript.tests.WurstScriptTest.testAssertOkLines(WurstScriptTest.java:312)
	at tests.wurstscript.tests.ClassesExtTests.ondestroy_dynamicdispatchFrotty2(ClassesExtTests.java:411)
	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:498)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
	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:1208)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1204)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
	at org.testng.TestNG.runSuites(TestNG.java:1049)
	at org.testng.TestNG.run(TestNG.java:1017)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:141)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:90)
	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:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:133)
	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:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
	at java.lang.Thread.run(Thread.java:748)

Standard Fehler (STDERR)

AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl
AAbstract
MyInterfaceImpl