File tree Expand file tree Collapse file tree
src/main/java/com/github/elebras1/flecs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,14 @@ java {
1818}
1919
2020tasks.withType<JavaExec > {
21- jvmArgs(" --enable-native-access=ALL-UNNAMED" )
21+ jvmArgs(" --enable-native-access=ALL-UNNAMED" , " --add-modules " , " jdk.incubator.vector " )
2222}
2323
24- tasks.compileJava {
24+ tasks.withType<JavaCompile > {
25+ options.compilerArgs.addAll(listOf (
26+ " --add-modules" , " jdk.incubator.vector"
27+ ))
28+
2529 val processorOutput = rootProject.layout.buildDirectory.dir(" classes/java/processor" ).get().asFile
2630 options.annotationProcessorPath = files(processorOutput) + rootProject.configurations.runtimeClasspath.get()
2731}
Original file line number Diff line number Diff line change @@ -264,7 +264,8 @@ public void resetColumn(Class<?> componentClass) {
264264 }
265265 }
266266
267- public ComponentRowView getRowView (Class <?> componentClass ) {
267+ @ SuppressWarnings ("unchecked" )
268+ public <V extends ComponentRowView > V getRowView (Class <?> componentClass ) {
268269 int col = this .columnIndex (componentClass );
269270 if (col == -1 ) {
270271 return null ;
@@ -273,7 +274,7 @@ public ComponentRowView getRowView(Class<?> componentClass) {
273274 if (columnSeg .address () == 0 ) {
274275 return null ;
275276 }
276- ComponentRowView view = this .world .viewCache ().getComponentRowView (componentClass );
277+ V view = ( V ) this .world .viewCache ().getComponentRowView (componentClass );
277278 view .setSegment (columnSeg );
278279 view .setCount (this .count ());
279280 return view ;
You can’t perform that action at this time.
0 commit comments