Wrote /root/JavaX-Caches/tmp_1858353349/main.java - 71067 bytes (written=71067, should be 71067) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_597478693 /root/JavaX-Caches/tmp_1858353349/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_1858353349/main.java:49: error: no suitable method found for getOrCreate(Map<A#1,B#1>,A#1,()->new HashMap()) return getOrCreate(map, key, () -> new HashMap()); ^ method main.<A#2,B#2>getOrCreate(Map<A#2,B#2>,A#2,Class<? extends B#2>) is not applicable (cannot infer type-variable(s) A#2,B#2 (argument mismatch; Class is not a functional interface)) method main.<A#3,B#3>getOrCreate(Map<A#3,B#3>,A#3,Object) is not applicable (cannot infer type-variable(s) A#3,B#3 (argument mismatch; Object is not a functional interface)) method main.<A#4,B#4>getOrCreate(Class<? extends B#4>,Map<A#4,B#4>,A#4) is not applicable (cannot infer type-variable(s) A#4,B#4 (argument mismatch; Map<A#1,B#1> cannot be converted to Class<? extends B#4>)) where A#1,B#1,A#2,B#2,A#3,B#3,A#4,B#4 are type-variables: A#1 extends Object declared in method <A#1,B#1>mapGetOrCreateHashMap(Map<A#1,B#1>,A#1) B#1 extends Object declared in method <A#1,B#1>mapGetOrCreateHashMap(Map<A#1,B#1>,A#1) A#2 extends Object declared in method <A#2,B#2>getOrCreate(Map<A#2,B#2>,A#2,Class<? extends B#2>) B#2 extends Object declared in method <A#2,B#2>getOrCreate(Map<A#2,B#2>,A#2,Class<? extends B#2>) A#3 extends Object declared in method <A#3,B#3>getOrCreate(Map<A#3,B#3>,A#3,Object) B#3 extends Object declared in method <A#3,B#3>getOrCreate(Map<A#3,B#3>,A#3,Object) A#4 extends Object declared in method <A#4,B#4>getOrCreate(Class<? extends B#4>,Map<A#4,B#4>,A#4) B#4 extends Object declared in method <A#4,B#4>getOrCreate(Class<? extends B#4>,Map<A#4,B#4>,A#4) 1 error