https://github.com/xuwei-k/scalaz/commit/c4eed17b9916fd1de79113664c2f2e083f88daf5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scalacOption -deprecation -Wunused:all | |
| //> using dependencies org.scala-sbt::io:1.13.4 | |
| //> using dependencies io.get-coursier::coursier:2.1.26 | |
| //> using dependencies org.ow2.asm:asm:9.10.1 | |
| //> using scala 3.9.0 | |
| import org.objectweb.asm.ClassVisitor | |
| import org.objectweb.asm.MethodVisitor | |
| import java.nio.file.Path | |
| import sbt.io.IO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [error] java.lang.ExceptionInInitializerError | |
| [error] at lmcoursier.internal.shaded.coursier.version.Version$.apply(Version.scala:12) | |
| [error] at lmcoursier.internal.shaded.coursier.version.Version$.<clinit>(Version.scala:81) | |
| [error] at lmcoursier.internal.shaded.coursier.version.VersionInterval$.<clinit>(VersionInterval.scala:102) | |
| [error] at lmcoursier.internal.shaded.coursier.version.VersionConstraint$.<clinit>(VersionConstraint.scala:149) | |
| [error] at lmcoursier.internal.shaded.coursier.package$.<clinit>(package.scala:35) | |
| [error] at lmcoursier.CoursierDependencyResolution.$anonfun$8(CoursierDependencyResolution.scala:146) | |
| [error] at lmcoursier.CoursierDependencyResolution.$anonfun$adapted$1(CoursierDependencyResolution.scala:146) | |
| [error] at scala.Option.map(Option.scala:279) | |
| [error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:146) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| org.json4s.DefaultWriters$W | |
| org.json4s.Extraction$ClassInstanceBuilder$TypeHint$ | |
| org.json4s.Xml$XArray$1 | |
| org.json4s.Xml$XLeaf$1 | |
| org.json4s.Xml$XNode$1 | |
| org.json4s.Xml$XValue$1 | |
| org.json4s.native.JsonParser$Parser$ARRAY$ | |
| org.json4s.native.JsonParser$Parser$BlockMode | |
| org.json4s.native.JsonParser$Parser$OBJECT$ | |
| org.json4s.reflect.ClassDescriptor$Score$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sbt.* | |
| import sbt.Keys.* | |
| import java.net.URLClassLoader | |
| object OuterReference extends AutoPlugin { | |
| override def requires = plugins.JvmPlugin | |
| override def trigger = allRequirements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.nio.file.Files | |
| import java.nio.file.Paths | |
| import scala.concurrent.Future | |
| import scala.jdk.StreamConverters.* | |
| class OuterReferencesTest { | |
| "Don't contain outer references" in Future.successful { | |
| val classpath = scala.util.Properties.javaClassPath.split(":").filter(_.endsWith("/classes")).toList | |
| assert(classpath.nonEmpty) | |
| val outerReferences = classpath.flatMap { |
- xmlとparser-combinatorが別のjarになった http://d.hatena.ne.jp/xuwei/20130726/1374809559
- case classやメソッドの22制限がなくなった scala/scala#2305
- 「value classのvalがpublicでないといけない」という制限がなくなった scala/scala#2965 scala/scala#3113
- Java8のようなSingle Abstract Methodの糖衣構文を(experimantalだが)サポート scala/scala#3037
- パターンマッチの際に使われる
unapplyの戻り値型が、Optionではなく「isEmpty: Booleanとget: Aをもっていればどんな型でもよい」と、制限が緩くなった - http://d.hatena.ne.jp/xuwei/20131005/1380887673
- scala/scala#2848
scala.util.contrll.TailCalls.TailRecにflatMapが追加された scala/scala#2865- view boundが非推奨になった scala/scala#2909
- リフレクションが
スレッドセーフになった(またバグが見つかったらしい) scala/scala#3029
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:210:31 | |
| [error] 210 | def targetRule = rule((2 to 4).times("x")) | |
| [error] | ^^^^^^ | |
| [error] | Invalid base expression for `.times(...)`: scala.Int.to(2)(4) | |
| [error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:220:31 | |
| [error] 220 | def targetRule = rule((2 to 4).times("x") ~ EOI) | |
| [error] | ^^^^^^ | |
| [error] | Invalid base expression for `.times(...)`: scala.Int.to(2)(4) | |
| [error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:229:31 | |
| [error] 229 | def targetRule = rule((2 to max).times("x") ~ EOI) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val workaroundScalaPB2112 = { | |
| // https://github.com/scalapb/ScalaPB/pull/2112 | |
| protocbridge.SandboxedJvmGenerator.forModule( | |
| "scala", | |
| protocbridge.Artifact( | |
| "com.thesamet.scalapb", | |
| "compilerplugin_3", | |
| scalapb.compiler.Version.scalapbVersion | |
| ), | |
| "scalapb.ScalaPbCodeGenerator$", |
NewerOlder