Opened 11 years ago

Closed 23 months ago

#338 closed defect (fixed)

read-invoke #" reader-macro doesn't work for top level forms

Reported by: charmon Owned by: Mark Evenson
Priority: major Milestone: 1.9.1
Component: libraries Version: 1.3.0-dev
Keywords: read-invoke sharpsign-doublequote jss has-test Cc:
Parent Tickets:

Description (last modified by Mark Evenson)

c.f. <https://github.com/armedbear/abcl/issues/541>

Attempting to use the #" read-invoke reader macro fails for top-level forms:

;; This works:
(defun bar ()

(#"openConnection" (jss::new 'java.net.url "http://google.com")))

(bar)

;; This doesn't:
(#"openConnection" (jss::new 'java.net.url "http://google.com"))

And here is the stack trace:

The value (LAMBDA (#1=#:G5344 &REST #2=#:G5345)

(JSS:INVOKE-RESTARGS "openConnection" #1# #2# NIL)) is not of type SYMBOL.

[Condition of type TYPE-ERROR]

Restarts:

0: [ABORT] Abort compilation.
1: [*ABORT] Return to SLIME's top level.
2: [ABORT] Abort thread.

Backtrace:

0: (#<FUNCTION {4EF56F8}> #<TYPE-ERROR {5D0F047B}> #<FUNCTION {4EF56F8}>)
1: (APPLY #<FUNCTION {4EF56F8}> (#<TYPE-ERROR {5D0F047B}> #<FUNCTION {4EF56F8}>))
2: (SYSTEM::RUN-HOOK SYSTEM::*INVOKE-DEBUGGER-HOOK* #<TYPE-ERROR {5D0F047B}> #<FUNCTION {4EF56F8}>)
3: (INVOKE-DEBUGGER #<TYPE-ERROR {5D0F047B}>)
4: org.armedbear.lisp.Lisp.error(Lisp.java:382)
5: org.armedbear.lisp.Lisp.type_error(Lisp.java:435)
6: org.armedbear.lisp.Lisp.checkSymbol(Lisp.java:1089)
7: org.armedbear.lisp.Lisp.get(Lisp.java:1962)
8: org.armedbear.lisp.compile_file_50.execute(compile-file.lisp:606)

...

Change History (16)

comment:1 Changed 11 years ago by Mark Evenson

Keywords: sharpsign-doublequote jss has-test added; sharpsign-quote removed
Milestone: 1.3.0
Owner: set to Mark Evenson
Status: newassigned

comment:2 Changed 11 years ago by Mark Evenson

Milestone: 1.3.02.0

Ticket retargeted after milestone closed

comment:3 Changed 11 years ago by Mark Evenson

Milestone: 2.02.0.0

Milestone renamed

comment:4 Changed 11 years ago by Mark Evenson

Milestone: 2.0.01.4.0

comment:5 Changed 8 years ago by Mark Evenson

Milestone: 1.4.01.5.0

Ticket retargeted after milestone closed

comment:6 Changed 8 years ago by Mark Evenson

Milestone: 1.5.01.6.0

Ticket retargeted after milestone closed

comment:7 Changed 5 years ago by Mark Evenson

Milestone: 1.6.01.6.1

Ticket retargeted after milestone closed

comment:8 Changed 5 years ago by Mark Evenson

Milestone: 1.6.11.6.2

Ticket retargeted after milestone closed

comment:9 Changed 5 years ago by Mark Evenson

Milestone: 1.6.21.7.0

comment:10 Changed 5 years ago by Mark Evenson

Milestone: 1.7.01.7.1

Ticket retargeted after milestone closed

comment:11 Changed 4 years ago by Mark Evenson

Milestone: 1.7.11.7.2

Ticket retargeted after milestone closed

comment:12 Changed 4 years ago by Mark Evenson

Milestone: 1.7.21.8.0

Milestone renamed

comment:13 Changed 4 years ago by Mark Evenson

Milestone: 1.8.01.8.1

Ticket retargeted after milestone closed

comment:14 Changed 3 years ago by Mark Evenson

Milestone: 1.8.11.9.0

comment:15 Changed 23 months ago by Mark Evenson

Milestone: 1.9.01.9.1

comment:16 Changed 23 months ago by Mark Evenson

Description: modified (diff)
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.