Skip to content

"Could not parse type signature" in Kotlin test classes #645

@polovkovaaa

Description

@polovkovaaa

Hello,

When parsing test code, an error occurs if the test method name contains parentheses, and the body contains curly brackets. Because of this, ClassInfo.isExternalClass == true and dependencies are not parsed. There is an error message in the logs "Invalid classfile: Could not parse type signature". Logs and an example project in the attached files.
class_graph_logs.txt
TestClassGraph.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions