Regression
tests.wurstscript.tests.ModelManagerTests.movingFiles
Fehlermeldung
java.lang.ClassCastException: de.peeeq.wurstscript.ast.WPackageImpl cannot be cast to de.peeeq.wurstscript.ast.FunctionCall
Stacktrace
java.lang.ClassCastException: de.peeeq.wurstscript.ast.WPackageImpl cannot be cast to de.peeeq.wurstscript.ast.FunctionCall at tests.wurstscript.tests.ModelManagerTests.movingFiles(ModelManagerTests.java:162) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) 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.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:140) 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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) 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:132) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) 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:175) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:157) 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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.base/java.lang.Thread.run(Thread.java:844)
Standard Ausgabe (STDOUT)
err: Diagnostic [ range = Range [ start = Position [ line = 1 character = 0 ] end = Position [ line = 2 character = 0 ] ] severity = Error code = null source = "Wurst" message = "The import 'Test' could not be resolved.\nAvailable packages: " relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 4 character = 1 ] end = Position [ line = 4 character = 2 ] ] severity = Error code = null source = "Wurst" message = "Reference to function b could not be resolved." relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 5 character = 1 ] end = Position [ line = 5 character = 2 ] ] severity = Error code = null source = "Wurst" message = "Reference to function c could not be resolved." relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 1 character = 0 ] end = Position [ line = 2 character = 0 ] ] severity = Warning code = null source = "Wurst" message = "The import B is never used" relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 2 character = 0 ] end = Position [ line = 3 character = 0 ] ] severity = Warning code = null source = "Wurst" message = "The import C is never used" relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 3 character = 1 ] end = Position [ line = 3 character = 2 ] ] severity = Error code = null source = "Wurst" message = "Reference to function c could not be resolved." relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 1 character = 0 ] end = Position [ line = 2 character = 0 ] ] severity = Warning code = null source = "Wurst" message = "The import C is never used" relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 5 character = 1 ] end = Position [ line = 5 character = 2 ] ] severity = Error code = null source = "Wurst" message = "Reference to function c could not be resolved." relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 2 character = 0 ] end = Position [ line = 3 character = 0 ] ] severity = Warning code = null source = "Wurst" message = "The import C is never used" relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 3 character = 1 ] end = Position [ line = 3 character = 2 ] ] severity = Error code = null source = "Wurst" message = "Reference to function c could not be resolved." relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 1 character = 0 ] end = Position [ line = 2 character = 0 ] ] severity = Warning code = null source = "Wurst" message = "The import C is never used" relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 5 character = 1 ] end = Position [ line = 5 character = 2 ] ] severity = Error code = null source = "Wurst" message = "Reference to function c could not be resolved." relatedInformation = null ] err: Diagnostic [ range = Range [ start = Position [ line = 2 character = 0 ] end = Position [ line = 3 character = 0 ] ] severity = Warning code = null source = "Wurst" message = "The import C is never used" relatedInformation = null ]