Regression

tests.wurstscript.tests.BugTests.test_init_order_globals_warning

Schlägt fehl seit 1 Build (Seit #1287 )
Dauer: 3 ms.

Fehlermeldung

Error in File test_init_order_globals_warning line 2:
 Global variable <b> must be declared before it is used.

Stacktrace

Error in File test_init_order_globals_warning line 2:
 Global variable <b> 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:569)
	at de.peeeq.wurstscript.validation.ValidateGlobalsUsage$2.visit(ValidateGlobalsUsage.java:51)
	at de.peeeq.wurstscript.ast.GlobalVarDefImpl.accept(GlobalVarDefImpl.java:145)
	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.testAssertErrorsLines(WurstScriptTest.java:316)
	at tests.wurstscript.tests.BugTests.test_init_order_globals_warning(BugTests.java:135)
	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 Ausgabe (STDOUT)

Wrong version 'a4291ec364d20db94dd247966eaf0698c23ae4e0', executing git pull to get '51f3274640197f957c3c53fb8cbe97c4e96ae898'

Standard Fehler (STDERR)

... when calling bar(2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling foo(1, 2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling bar(2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling foo(1, 2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()



... when calling bar(2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling foo(1, 2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling bar(2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling foo(1, 2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()



... when calling bar(2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling foo(1, 2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling init_Test() in testStacktrace:5
... when calling main()



... when calling bar(2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling foo(1, 2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling init_Test() in testStacktrace:5
... when calling main()



... when calling bar(2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()

... when calling foo(1, 2) in testStacktrace:17
... when calling init_Test() in testStacktrace:5
... when calling main()


   when calling bar in testStacktrace, line 17
   when calling init_Test in testStacktrace, line 5

   when calling foo in testStacktrace, line 17
   when calling init_Test in testStacktrace, line 5

   when calling bar in testStacktrace, line 17
   when calling init_Test in testStacktrace, line 5

   when calling foo in testStacktrace, line 17
   when calling init_Test in testStacktrace, line 5