Skip to content

java.lang.String is not java.lang.String #1327

@pulkin

Description

@pulkin

Thanks for the great project!

Somehow in pytests I can end up with this error:

        from java.lang import String                                 
>       assert type(a) is String, f"not a string: {type(a)}"
E       AssertionError: not a string: <java class 'java.lang.String'>

It happens in a multiprocessing-heavy context. Otherwise I did not investigate much into it (need to run a very large test suite to reproduce). Worth noting that it is probably not related to serializing the object because it would otherwise simply fail during serialization.

jpype 1.6.0 cpython 3.9.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion on how to use JPype

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions