scala.MatchError: J (of class java.lang.String)

qiita.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    第18章:Scalaのパターンマッチ - Qiita

    qiita.com | 6 months ago
    scala.MatchError: J (of class java.lang.String)

    Root Cause Analysis

    1. scala.MatchError

      J (of class java.lang.String)

      at PatternMatch3_2$$anonfun$main$1.apply()
    2. Unknown
      PatternMatch3_2$$anonfun$main$1.apply
      1. PatternMatch3_2$$anonfun$main$1.apply(PatternMatch3_2.scala:7)
      2. PatternMatch3_2$$anonfun$main$1.apply(PatternMatch3_2.scala:6)
      2 frames
    3. Scala
      List.foreach
      1. scala.collection.immutable.List.foreach(List.scala:318)
      1 frame
    4. Unknown
      PatternMatch3_2.main
      1. PatternMatch3_2$.main(PatternMatch3_2.scala:6)
      2. PatternMatch3_2.main(PatternMatch3_2.scala)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    6. 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