scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving type E

Scala JIRA | Eugene Burmako | 4 years ago
  1. 0

    {code} enum SimpleEnumeration { FOO, BAR } {code} {code} import scala.reflect.runtime.universe._ object Test extends App { println(typeOf[SimpleEnumeration].declarations) } {code} {code} scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving type E at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1188) at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1186) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.reflect.internal.Symbols$Symbol.lock(Symbols.scala:468) at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1186) at scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4316) at scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4315) at scala.reflect.internal.util.Collections$class.mapWithIndex(Collections.scala:122) at scala.reflect.internal.SymbolTable.mapWithIndex(SymbolTable.scala:12) at scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4315) at scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12) at scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4321) at scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12) at scala.reflect.internal.Types$$anon$11.apply(Types.scala:4352) at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1004) at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1007) at scala.reflect.runtime.JavaMirrors$JavaMirror$TypeParamCompleter$$anonfun$complete$1.apply(JavaMirrors.scala:567) at scala.reflect.runtime.JavaMirrors$JavaMirror$TypeParamCompleter$$anonfun$complete$1.apply(JavaMirrors.scala:567) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.immutable.List.foreach(List.scala:309) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at scala.reflect.runtime.JavaMirrors$JavaMirror$TypeParamCompleter.complete(JavaMirrors.scala:567) at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1198) at scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4316) at scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4315) at scala.reflect.internal.util.Collections$class.mapWithIndex(Collections.scala:122) at scala.reflect.internal.SymbolTable.mapWithIndex(SymbolTable.scala:12) at scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4315) at scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12) at scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4321) at scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12) at scala.reflect.internal.Types$$anon$11.apply(Types.scala:4352) at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1004) at scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1007) at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:653) at scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.complete(JavaMirrors.scala:644) at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1198) at scala.reflect.internal.Types$TypeRef.decls(Types.scala:2421) at scala.reflect.internal.Types$TypeApiImpl.declarations(Types.scala:298) at scala.reflect.internal.Types$TypeApiImpl.declarations(Types.scala:295) at Test$delayedInit$body.apply(Test.scala:4) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:61) at scala.App$$anonfun$main$1.apply(App.scala:61) at scala.collection.immutable.List.foreach(List.scala:309) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45) at scala.App$class.main(App.scala:61) at Test$.main(Test.scala:3) at Test.main(Test.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:71) at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31) at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:139) at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:71) at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:139) at scala.tools.nsc.CommonRunner$class.run(ObjectRunner.scala:28) at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:45) at scala.tools.nsc.CommonRunner$class.runAndCatch(ObjectRunner.scala:35) at scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:45) at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:74) at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:96) at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:105) at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) {code}

    Scala JIRA | 4 years ago | Eugene Burmako
    scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving type E
  2. 0

    Best practices for configuring SORM

    Stack Overflow | 3 years ago | Peter vR
    scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving method productPrefix
  3. 0

    Synchronize reflection code as scala 2.10 reflection is not threadsafe

    GitHub | 3 years ago | timcharper
    scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving anonymous class $$anonfun$4
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 56#222386963

    GitHub | 6 months ago | alexarchambault
    scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving object InterfaceAudience
  6. 0

    Spark is throughing scala.reflect.internal.MissingRequirementError when writing Naive Bayes model

    Stack Overflow | 5 months ago | Kaushal
    scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving class NaiveBayesModelWriter

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. scala.reflect.internal.Symbols$CyclicReference

      illegal cyclic reference involving type E

      at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply()
    2. Scala
      Symbols$Symbol$$anonfun$info$3.apply
      1. scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1188)
      2. scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1186)
      2 frames
    3. Scala
      AbstractFunction0.apply$mcV$sp
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:40)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      2 frames
    4. Scala
      JavaMirrors$JavaMirror$TypeParamCompleter$$anonfun$complete$1.apply
      1. scala.reflect.internal.Symbols$Symbol.lock(Symbols.scala:468)
      2. scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1186)
      3. scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4316)
      4. scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4315)
      5. scala.reflect.internal.util.Collections$class.mapWithIndex(Collections.scala:122)
      6. scala.reflect.internal.SymbolTable.mapWithIndex(SymbolTable.scala:12)
      7. scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4315)
      8. scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12)
      9. scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4321)
      10. scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12)
      11. scala.reflect.internal.Types$$anon$11.apply(Types.scala:4352)
      12. scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1004)
      13. scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1007)
      14. scala.reflect.runtime.JavaMirrors$JavaMirror$TypeParamCompleter$$anonfun$complete$1.apply(JavaMirrors.scala:567)
      15. scala.reflect.runtime.JavaMirrors$JavaMirror$TypeParamCompleter$$anonfun$complete$1.apply(JavaMirrors.scala:567)
      15 frames
    5. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      3. scala.collection.immutable.List.foreach(List.scala:309)
      4. scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
      5. scala.collection.AbstractTraversable.map(Traversable.scala:105)
      5 frames
    6. Scala
      Types$TypeApiImpl.declarations
      1. scala.reflect.runtime.JavaMirrors$JavaMirror$TypeParamCompleter.complete(JavaMirrors.scala:567)
      2. scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1198)
      3. scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4316)
      4. scala.reflect.internal.Types$$anonfun$40.apply(Types.scala:4315)
      5. scala.reflect.internal.util.Collections$class.mapWithIndex(Collections.scala:122)
      6. scala.reflect.internal.SymbolTable.mapWithIndex(SymbolTable.scala:12)
      7. scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4315)
      8. scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12)
      9. scala.reflect.internal.Types$class.typeParamsToExistentials(Types.scala:4321)
      10. scala.reflect.internal.SymbolTable.typeParamsToExistentials(SymbolTable.scala:12)
      11. scala.reflect.internal.Types$$anon$11.apply(Types.scala:4352)
      12. scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1004)
      13. scala.reflect.runtime.JavaMirrors$JavaMirror.typeToScala(JavaMirrors.scala:1007)
      14. scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.completeRest(JavaMirrors.scala:653)
      15. scala.reflect.runtime.JavaMirrors$JavaMirror$FromJavaClassCompleter.complete(JavaMirrors.scala:644)
      16. scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1198)
      17. scala.reflect.internal.Types$TypeRef.decls(Types.scala:2421)
      18. scala.reflect.internal.Types$TypeApiImpl.declarations(Types.scala:298)
      19. scala.reflect.internal.Types$TypeApiImpl.declarations(Types.scala:295)
      19 frames
    7. Unknown
      Test$delayedInit$body.apply
      1. Test$delayedInit$body.apply(Test.scala:4)
      1 frame
    8. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:40)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:61)
      4. scala.App$$anonfun$main$1.apply(App.scala:61)
      5. scala.collection.immutable.List.foreach(List.scala:309)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
      7. scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45)
      8. scala.App$class.main(App.scala:61)
      8 frames
    9. Unknown
      Test.main
      1. Test$.main(Test.scala:3)
      2. Test.main(Test.scala)
      2 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    11. Scala Compiler
      MainGenericRunner.main
      1. scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:71)
      2. scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)
      3. scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:139)
      4. scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:71)
      5. scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:139)
      6. scala.tools.nsc.CommonRunner$class.run(ObjectRunner.scala:28)
      7. scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:45)
      8. scala.tools.nsc.CommonRunner$class.runAndCatch(ObjectRunner.scala:35)
      9. scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:45)
      10. scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:74)
      11. scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:96)
      12. scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:105)
      13. scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
      13 frames