The compiler ignores too few or too many arguments to throw

Description

The compiler does not fail on "malformed" throw forms with less than or greater than one arg:

Approach: Count forms and throw an appropriate exception if arity != 1.

Patch: clj-1456-5.patch

Screened by: Alex Miller

Environment

None

Attachments

3

Activity

Alex Miller October 9, 2015 at 2:33 PM

Patch -5 updated to apply to master and to give more context lines in diff, no semantic changes, attribution retained.

Alex Miller May 4, 2015 at 3:31 PM

-4 patch is same, just refreshed to apply to master

Alf Kristian Støyle January 10, 2015 at 3:12 PM

Removed both obsolete attachments. So shouldn't be confusing any more

Andy Fingerhut January 9, 2015 at 12:07 AM

Alf, while JIRA can handle multiple attachments for the same ticket with the same name, it can get confusing for people trying to determine which one with the same name is meant. Could you remove or rename one of your identically-named attachments? Instructions for deleting patches are in the "Removing patches" section on this wiki page: http://dev.clojure.org/display/community/Developing+Patches

Alf Kristian Støyle August 30, 2014 at 8:18 AM

It was easy to fix the patch. Uploaded the new patch v3_0001-CLJ-1456-counting-forms-to-catch-malformed-throw-for.patch, which applies cleanly to the current master.

Completed

Details

Assignee

Reporter

Approval

Patch

Priority

Affects versions

Fix versions

Created June 30, 2014 at 5:52 PM
Updated October 13, 2015 at 3:37 AM
Resolved October 13, 2015 at 3:37 AM