Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] Fixing a ClassNotFoundException
Resolves #30. This fixes a problem where a var that looked like a Java class constructor would cause Yagni to try to resolve the class it thought existed. Unfortunately, while `resolve` returns nil when it believes it's dealing with a Clojure symbol, when it's targeting something it believes to be a Java class it throws a ClassNotFoundException. This commit wraps the resolve attempt in a try/catch block - it's ugly, but I'm not aware of a more elegant solution at the moment.
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters