Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #26

Open
xbbnqwp opened this issue Nov 21, 2019 · 5 comments
Open

Build error #26

xbbnqwp opened this issue Nov 21, 2019 · 5 comments

Comments

@xbbnqwp
Copy link

xbbnqwp commented Nov 21, 2019

Pruning sources from previous analysis, due to incompatible CompileSetup.
/Users/xbbnqwp/worksapce/eagleinvsys/poc/xml-avro/src/main/scala/in/dreamlabs/xmlavro/RichAvro.scala:76: non-variable type argument AnyRef in type pattern java.util.ArrayList[AnyRef] is unchecked since it is eliminated by erasure
case existingList: util.ArrayList[AnyRef] =>
^
/Users/xbbnqwp/worksapce/eagleinvsys/poc/xml-avro/src/main/scala/in/dreamlabs/xmlavro/Supporters.scala:4: object bind is not a member of package javax.xml
import javax.xml.bind.DatatypeConverter
^
/Users/xbbnqwp/worksapce/eagleinvsys/poc/xml-avro/src/main/scala/in/dreamlabs/xmlavro/Supporters.scala:262: not found: value DatatypeConverter
var cal = DatatypeConverter.parseDateTime(text)
^
/Users/xbbnqwp/worksapce/eagleinvsys/poc/xml-avro/src/main/scala/in/dreamlabs/xmlavro/Supporters.scala:270: not found: value DatatypeConverter
cal = DatatypeConverter.parseDateTime(tsp)
^
one warning found
three errors found

@GeethanadhP
Copy link
Owner

which version of scala are you using?

@bernman
Copy link

bernman commented Dec 31, 2019

Am seeing identical errors using:
Scala code runner version 2.11.12 -- Copyright 2002-2017, LAMP/EPF

Default Scala install on Ubuntu 18.04.3 LTS

@GeethanadhP
Copy link
Owner

it is supposed to be only warnings nto error :?

@pkibiego
Copy link

I know this is old but I'm also getting the one warning and three errors:

Task :compileScala
Scala Compiler interface compilation took 44.265 secs
[Warn] /home/pkibi/git/xml-avro/src/main/scala/in/dreamlabs/xmlavro/RichAvro.scala:76: non-variable type argument AnyRef in type pattern java.util.ArrayList[AnyRef] is unchecked since it is eliminated by erasure
[Error] /home/pkibi/git/xml-avro/src/main/scala/in/dreamlabs/xmlavro/Supporters.scala:4: object bind is not a member of package javax.xml
[Error] /home/pkibi/git/xml-avro/src/main/scala/in/dreamlabs/xmlavro/Supporters.scala:262: not found: value DatatypeConverter
[Error] /home/pkibi/git/xml-avro/src/main/scala/in/dreamlabs/xmlavro/Supporters.scala:270: not found: value DatatypeConverter
one warning found
three errors found

@pkibiego
Copy link

I managed to resolve this by adding a dependency:

compile 'org.glassfish.jaxb:jaxb-runtime:2.3.1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants