Skip to content

Missing "Coercible" conversion for user classes #2

@RobertFischer

Description

@RobertFischer

If you create a class and try to do convert a Java collection to a Scala one via "asScala", you get an error about missing an implicit argument "c", which looks like the Coercible definition. That "CoercibleSelf" doesn't seem to be making it into my code.

import scalaj.collections.Implicits._

Sample code:
class Foo
val x = new java.util.ArrayListFoo
x.add(new Foo())
x.asScala

Doesn't look like you've got a testing harness set up for the project, or I'd hand you a proper test case demonstrating the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions