chore(TypeHandlerLibrary)! make Serializer more type-safe #5049
Terasology Jenkins.io / Jenkins
failed
Nov 9, 2023 in 5m 54s
Build: error in 'sh' step
Build / Shell Script
Error in sh
step, with arguments ./gradlew --console=plain clean extractConfig extractNatives distForLauncher testDist
.
script returned exit code 1
Build log
+ ./gradlew --console=plain clean extractConfig extractNatives distForLauncher testDist
Starting a Gradle Daemon (subsequent builds will be faster)
Processing facade facades:PC, including it as a sub-project
> Task :build-logic:generateExternalPluginSpecBuilders
> Task :build-logic:extractPrecompiledScriptPluginPlugins
> Task :build-logic:compilePluginsBlocks
> Task :build-logic:generatePrecompiledScriptPluginAccessors
> Task :build-logic:generateScriptPluginAdapters
> Task :build-logic:pluginDescriptors
> Task :build-logic:processResources
> Task :build-logic:compileKotlin
w: file:///home/jenkins/agent/workspace/Terasology_engine_PR-5049/build-logic/src/main/kotlin/org/terasology/gradology/module_deps.kt:93:9 Variable 'artifactView' is never used
> Task :build-logic:compileJava NO-SOURCE
> Task :build-logic:classes
> Task :build-logic:jar
> Configure project :engine
Scanning for version in module.txt for engine
Version for engine loaded as 5.4.0-SNAPSHOT for group org.terasology.engine
> Configure project :engine-tests
Scanning for version in module.txt for engine-tests
Version for engine-tests loaded as 5.4.0-SNAPSHOT for group org.terasology.engine
> Task :clean
Cleaned root - don't forget to re-extract stuff! 'gradlew extractNatives extractConfig' will do so
> Task :engine:clean
> Task :engine-tests:clean UP-TO-DATE
> Task :modules:cleanFetchModuleDependencies UP-TO-DATE
> Task :modules:clean UP-TO-DATE
> Task :facades:PC:clean UP-TO-DATE
> Task :subsystems:DiscordRPC:clean UP-TO-DATE
> Task :subsystems:TypeHandlerLibrary:clean UP-TO-DATE
> Task :extractConfig
> Task :extractJNLuaNatives
> Task :extractLinuxNatives
> Task :extractMacOSXNatives
> Task :extractNativeBulletNatives
> Task :extractWindowsNatives
> Task :extractNatives
> Task :engine:createVersionInfoFile
> Task :engine:extractProto
> Task :engine:processResources
> Task :engine:copyResourcesToClasses
> Task :subsystems:TypeHandlerLibrary:processResources NO-SOURCE
> Task :engine:extractIncludeProto
> Task :engine:generateProto
> Task :subsystems:TypeHandlerLibrary:compileJava
/home/jenkins/agent/workspace/Terasology_engine_PR-5049/subsystems/TypeHandlerLibrary/src/main/java/org/terasology/persistence/typeHandling/TypeHandlerLibrary.java:213: error: incompatible types: TypeInfo<CAP#1> cannot be converted to TypeInfo<T>
TypeInfo<T> typeInfo = TypeInfo.of(type);
^
where T is a type-variable:
T extends Object declared in method <T>getTypeHandler(Type)
where CAP#1 is a fresh type-variable:
CAP#1 extends Object from capture of ?
/home/jenkins/agent/workspace/Terasology_engine_PR-5049/subsystems/TypeHandlerLibrary/src/main/java/org/terasology/persistence/typeHandling/coreTypes/factories/CollectionTypeHandlerFactory.java:46: error: cannot infer type arguments for RuntimeDelegatingTypeHandler<>
var elementTypeHandler = new RuntimeDelegatingTypeHandler<>(
^
reason: inference variable T has incompatible equality constraints CAP#1,Object
where T is a type-variable:
T extends Object declared in class RuntimeDelegatingTypeHandler
where CAP#1 is a fresh type-variable:
CAP#1 extends Object from capture of ?
/home/jenkins/agent/workspace/Terasology_engine_PR-5049/subsystems/TypeHandlerLibrary/src/main/java/org/terasology/persistence/typeHandling/coreTypes/factories/ArrayTypeHandlerFactory.java:36: error: cannot infer type arguments for RuntimeDelegatingTypeHandler<>
var elementTypeHandler = new RuntimeDelegatingTypeHandler<>(
^
reason: inference variable T has incompatible equality constraints CAP#1,Object
where T is a type-variable:
T extends Object declared in class RuntimeDelegatingTypeHandler
where CAP#1 is a fresh type-variable:
CAP#1 extends Object from capture of ?
/home/jenkins/agent/workspace/Terasology_engine_PR-5049/subsystems/TypeHandlerLibrary/src/main/java/org/terasology/persistence/typeHandling/coreTypes/factories/MapTypeHandlerFactory.java:38: error: cannot infer type arguments for RuntimeDelegatingTypeHandler<>
TypeHandler<?> valueTypeHandler = new RuntimeDelegatingTypeHandler<>(
^
reason: inference variable T#1 has incompatible equality constraints CAP#1,T#2
where T#1,T#2 are type-variables:
T#1 extends Object declared in class RuntimeDelegatingTypeHandler
T#2 extends Object declared in method <T#2>create(TypeInfo<T#2>,TypeHandlerContext)
where CAP#1 is a fresh type-variable:
CAP#1 extends Object from capture of ?
/home/jenkins/agent/workspace/Terasology_engine_PR-5049/subsystems/TypeHandlerLibrary/src/main/java/org/terasology/persistence/typeHandling/coreTypes/factories/MapTypeHandlerFactory.java:49: error: cannot infer type arguments for RuntimeDelegatingTypeHandler<>
TypeHandler<?> keyTypeHandler = new RuntimeDelegatingTypeHandler<>(
^
reason: inference variable T has incompatible equality constraints CAP#1,Object
where T is a type-variable:
T extends Object declared in class RuntimeDelegatingTypeHandler
where CAP#1 is a fresh type-variable:
CAP#1 extends Object from capture of ?
Note: /home/jenkins/agent/workspace/Terasology_engine_PR-5049/subsystems/TypeHandlerLibrary/src/main/java/org/terasology/reflection/reflect/ConstructorLibrary.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
> Task :subsystems:TypeHandlerLibrary:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':subsystems:TypeHandlerLibrary:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 5m
30 actionable tasks: 24 executed, 6 up-to-date
Details
- Declarative: Checkout SCM (31 sec)
- Setup (11 sec)
- Build (5 min 2 sec)
Error: script returned exit code 1 - Unit Tests (1.2 sec)
- Publish (1.2 sec)
- Analytics (1.4 sec)
- Documentation (1.1 sec)
- Integration Tests (1.1 sec)
Loading