com.mysema.codegen.CodegenException: Compilation of public class Q_02078139909_65821278_1275614662 { public static java.util.List<Object[]> eval(Iterable<Cat> cat1_) { java.util.List<Object[]> rv = new java.util.ArrayList<Object[]>(); for (Cat cat1 : cat1_) { for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { rv.add(new Object[]{cat1,cat2}); } } return rv; } } failed. /Q_02078139909_65821278_1275614662.java:6: error: incompatible types: Object cannot be converted to Cat for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { ^ 1 error

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • com.mysema.codegen.CodegenException: Compilation of public class Q_02078139909_65821278_1275614662 { public static java.util.List<Object[]> eval(Iterable<Cat> cat1_) { java.util.List<Object[]> rv = new java.util.ArrayList<Object[]>(); for (Cat cat1 : cat1_) { for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { rv.add(new Object[]{cat1,cat2}); } } return rv; } } failed. /Q_02078139909_65821278_1275614662.java:6: error: incompatible types: Object cannot be converted to Cat for (Cat cat2 : com.querydsl.collections.CollQueryFunctions.<java.util.List>get(cat1, "kittens")) { ^ 1 error at com.mysema.codegen.JDKEvaluatorFactory.compile(JDKEvaluatorFactory.java:74) at com.mysema.codegen.AbstractEvaluatorFactory.createEvaluator(AbstractEvaluatorFactory.java:128) at com.querydsl.collections.DefaultEvaluatorFactory.createEvaluator(DefaultEvaluatorFactory.java:262) at com.querydsl.collections.DefaultQueryEngine.evaluateMultipleSources(DefaultQueryEngine.java:109) at com.querydsl.collections.DefaultQueryEngine.list(DefaultQueryEngine.java:82) at com.querydsl.collections.AbstractCollQuery.fetch(AbstractCollQuery.java:182) at ScalaMain$.delayedEndpoint$ScalaMain$1(Main.scala:13) at ScalaMain$delayedInit$body.apply(Main.scala:7) at scala.Function0$class.apply$mcV$sp(Function0.scala:34) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:76) at scala.App$$anonfun$main$1.apply(App.scala:76) at scala.collection.immutable.List.foreach(List.scala:381) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35) at scala.App$class.main(App.scala:76) at ScalaMain$.main(Main.scala:7) at ScalaMain.main(Main.scala)
No Bugmate found.