Skip to content

Commit

Permalink
Add layer for low priority coder conflict (#5274)
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones authored Feb 27, 2024
1 parent 8b05328 commit 9a41d8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scio-core/src/main/scala/com/spotify/scio/coders/Coder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,14 @@ object Coder

}

trait LowPriorityCoders { self: CoderDerivation with JavaBeanCoders =>
implicit override def javaBeanCoder[T: IsJavaBean: ClassTag]: Coder[T] = JavaCoders.javaBeanCoder
trait LowPriorityCoders extends LowPriorityCoders1 { self: CoderDerivation with JavaBeanCoders =>
implicit override def gen[T]: Coder[T] = macro MagnoliaMacros.genWithoutAnnotations[T]
}

trait LowPriorityCoders1 { self: JavaBeanCoders =>
implicit override def javaBeanCoder[T: IsJavaBean: ClassTag]: Coder[T] = JavaCoders.javaBeanCoder
}

private[coders] object CoderStackTrace {

val CoderStackElemMarker = new StackTraceElement(
Expand Down

0 comments on commit 9a41d8e

Please sign in to comment.