Skip to content

AOT issues with clj_http.headers.HeaderMap #638

@pesterhazy

Description

@pesterhazy

I'm following the guide for using AOT. This works ... except for clj-http.

The error I'm getting is not when compiling but when loading the compiled classes (rather than clj files):

Execution error (ClassNotFoundException) at jdk.internal.loader.BuiltinClassLoader/loadClass (BuiltinClassLoader.java:641).
clj_http.headers.HeaderMap

When I rm -rf classes/clj_http, it works again.

Unfortunately I couldn't come up with a simple repro case - when I tried it outside of the main app, it worked. Not sure why - race condition?

I suspect (but cannot prove) that the AOT incompatibility is due to the use of potemkin.

There's an earlier report from 2016, but I'm not using Leiningen https://clojurians.slack.com/archives/C0AB48493/p1469153573000034

clj-http/clj-http 3.12.3
potemkin/potemkin 0.4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions