Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch NoClassDefFoundError #224

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

hugoduncan
Copy link
Member

@hugoduncan hugoduncan commented Jan 15, 2024

This exception can be thrown on a case indifferent filesystem, eg. on
macOS.

One way this happens is if there is a java class with a camel cased name
that otherwise matches the name of a clojure namespace.

For some reason, when this exception was thrown, the classes in the
class cache were also getting initialised.

This exception can be thrown on a case indifferent filesystem, eg. on OS
X.

One way this happens is if there is a java class with a camel cased name
that otherwise matches the name of a clojure namespace.

For some reason, when this exception was thrown, the classes in the
class cache were also getting initialised.
@vemv
Copy link
Member

vemv commented Jan 15, 2024

Looking reasonable to me - thanks!

(catch java.lang.NoClassDefFoundError _
;; this can happen if there is a java class with a camel cased name
;; that otherwise matches the name of a clojure namespace, on a case
;; indifferent filesystem, eg. on OS X.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it's named macOS these days. :-)

@bbatsov
Copy link
Member

bbatsov commented Jan 15, 2024

Same, just needs a changelog entry.

@hugoduncan hugoduncan marked this pull request as ready for review January 15, 2024 11:39
@vemv vemv merged commit be42fb5 into clojure-emacs:master Jan 15, 2024
@vemv
Copy link
Member

vemv commented Jan 15, 2024

Thanks! Would you need a release asap? Otherwise I'd bundle it with other stuff next weekend

@hugoduncan
Copy link
Member Author

No rush, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants