Completed
Details
Assignee
UnassignedUnassignedReporter
Nicola MomettoNicola MomettoLabels
Approval
OkPatch
Code and TestPriority
MinorFix versions
Details
Details
Assignee
Unassigned
UnassignedReporter
Nicola Mometto
Nicola MomettoLabels
Approval
Ok
Patch
Code and Test
Priority
Fix versions
Created April 14, 2014 at 7:57 PM
Updated September 14, 2018 at 10:21 PM
Resolved September 14, 2018 at 10:21 PM
The doc of ns-resolve states that in case the symbol cannot be resolved, it should return nil.
However if the symbol contains dots and is not a resolvable Class, a ClassNotFoundException is thrown
Approach: Catch CNFE when attempting to resolve a dotted symbol as a class and return nil instead.
Patch: clj-1403-2.patch
Screened by: Alex Miller
The attached patch makes ns-resolve return nil in that case instead of throwing an exception