Javac error: incompatible types: SparkContext cannot be converted to ADAMContext #1217

Closed
heuermh opened this Issue Oct 18, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@heuermh
Member

heuermh commented Oct 18, 2016

Not sure if this is an issue or something that we knew would happen.

When updating a downstream application dependency from ADAM version 0.19.1-SNAPSHOT to ADAM Spark 2 release version 0.20.0, javac reports a compiler error:

[ERROR] adam-commands/src/main/java/c/g/h/a/commands/JavaCountAlignments.java:92:
  error: incompatible types: SparkContext cannot be converted to ADAMContext
[ERROR]         JavaADAMContext javaAdamContext = new JavaADAMContext(sc);

The fix is an explicit wrapping in ADAMContext first

ADAMContext ac = new ADAMContext(sc);
JavaADAMContext javaAdamContext = new JavaADAMContext(ac);
@heuermh

This comment has been minimized.

Show comment
Hide comment
@heuermh

heuermh Dec 9, 2016

Member

Fixed by #1298

Member

heuermh commented Dec 9, 2016

Fixed by #1298

@heuermh heuermh closed this Dec 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment