sb-simple-streams:open silently ignores unknown stream class
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Low
|
Unassigned |
Bug Description
Calling open with a non-existent or non-stream :class argument
(sb-simple-
returns NIL without any error.
I have attached a patch which changes the cond form in open to signal
an error in that case. Two test cases are included.
This is the thread on the sbcl-devel mailing list:
http://
I'm using SBCL 1.0.53.39 on Ubuntu Oneiric
Linux 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux
*FEATURES*
(:IOLIB-DEBUG :ASDF2 :ASDF :ASDF-UNIX :ANSI-CL :COMMON-LISP :SBCL :SB-DOC :SB-TEST :SB-LDB :SB-PACKAGE-LOCKS :SB-UNICODE :SB-EVAL :SB-SOURCE-
:IEEE-
:COMPARE-
:STACK-
:OS-PROVIDES-
Changed in sbcl: | |
status: | New → Confirmed |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in sbcl: | |
assignee: | nobody → Nikodemus Siivola (nikodemus) |
status: | Triaged → In Progress |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
commit ac28b4bc430e89d b490c9bb23ec7aa 8d7cfe318a
Author: Kambiz Darabi <email address hidden>
Date: Fri Jan 6 09:11:36 2012 +0100
sb- simple- streams: signal an error for bad stream classes in OPEN
Instead of silently returning NIL, signal an error if the class does not
exist (if argument :class is a symbol) or is not a stream class.
lp#969352