diff options
Diffstat (limited to 'test/disabled/pos/bug2919.scala')
-rw-r--r-- | test/disabled/pos/bug2919.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/disabled/pos/bug2919.scala b/test/disabled/pos/bug2919.scala new file mode 100644 index 0000000000..5e51cf9de7 --- /dev/null +++ b/test/disabled/pos/bug2919.scala @@ -0,0 +1,12 @@ +import javax.xml.bind.annotation.adapters.XmlAdapter +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter + +case class Link( + @XmlJavaTypeAdapter(classOf[StringOptionAdapter]) val title: Option[String] +) + +class StringOptionAdapter extends XmlAdapter[String, Option[String]] { + def unmarshal(str: String) = error("stub") + def marshal(op: Option[String]) = error("Stub") +} + |