Skip to content

“No library” warning when “import static” is used #8

Description

@rdlester

When a static import is used, Processing will throw a compiler error, but the program will still run and the static import will occur successfully.

For example: the statement "import static hermes.HermesMath;" will cause the compiler error "No library found for static hermes.HermesMath", but the static import still works and the sketch will still run.

My guess is that the Processing preprocesser reads the library name as "static hermes.HermesMath" instead of "hermes.HermesMath", but despite the error leaves the line in for the Java compilation step, which handles them correctly.
This forum thread seems to agree with me.

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