Opened 12 years ago

Last modified 18 months ago

#240 assigned defect

FIND-CLASS does not implement 3-argument behavior

Reported by: rschlatte Owned by: ehuelsmann
Priority: major Milestone: 1.9.3
Component: CLOS Version: 1.2.0-dev
Keywords: Cc:
Parent Tickets:

Description

Currently find-class does not use a supplied third (environment) parameter. (LispClass?.java line 331 has a FIXME to that effect.) This blocks the fix for #239 since classes cannot be inspected at compile-time.

Attachments (1)

ticket-240.patch (2.6 KB) - added by ehuelsmann 12 years ago.
initial implementation

Download all attachments as: .zip

Change History (21)

comment:1 Changed 12 years ago by ehuelsmann

Owner: changed from somebody to ehuelsmann
Status: newassigned

I promised to take this one.

Documenting my planned approach so anybody can pick it if they find time before I do.

The plan is to add a new field to the Environment java class. The field will contain a hash map just as the "live" class hash map does. Each new environment created from a "root" environment copies the pointer to the hash map.

The three argument find-class and %set-find-class cases set the class in that hash map instead of the global one.

As soon as the environment disappears the classes pointed to can be garbage collected, if their super classes don't contain pointers to them.

comment:2 Changed 12 years ago by Mark Evenson

Milestone: 1.2.0
Priority: minormajor

comment:3 Changed 12 years ago by Evenson Not Org

Version: 1.2.0-dev

Changed 12 years ago by ehuelsmann

Attachment: ticket-240.patch added

initial implementation

comment:4 Changed 11 years ago by Evenson Not Org

Milestone: 1.2.01.3.0

comment:5 Changed 11 years ago by Mark Evenson

Milestone: 1.3.02.0

Ticket retargeted after milestone closed

comment:6 Changed 11 years ago by Mark Evenson

Milestone: 2.02.0.0

Milestone renamed

comment:7 Changed 11 years ago by Mark Evenson

Milestone: 2.0.01.4.0

comment:8 Changed 8 years ago by Mark Evenson

Milestone: 1.4.01.5.0

Ticket retargeted after milestone closed

comment:9 Changed 8 years ago by Mark Evenson

Milestone: 1.5.01.6.0

Ticket retargeted after milestone closed

comment:10 Changed 5 years ago by Mark Evenson

Milestone: 1.6.01.6.1

Ticket retargeted after milestone closed

comment:11 Changed 5 years ago by Mark Evenson

Milestone: 1.6.11.6.2

Ticket retargeted after milestone closed

comment:12 Changed 5 years ago by Mark Evenson

Milestone: 1.6.21.7.0

comment:13 Changed 5 years ago by Mark Evenson

Milestone: 1.7.01.7.1

Ticket retargeted after milestone closed

comment:14 Changed 4 years ago by Mark Evenson

Milestone: 1.7.11.7.2

Ticket retargeted after milestone closed

comment:15 Changed 4 years ago by Mark Evenson

Milestone: 1.7.21.8.0

Milestone renamed

comment:16 Changed 4 years ago by Mark Evenson

Milestone: 1.8.01.8.1

Ticket retargeted after milestone closed

comment:17 Changed 3 years ago by Mark Evenson

Milestone: 1.8.11.9.0

comment:18 Changed 23 months ago by Mark Evenson

Milestone: 1.9.01.9.1

comment:19 Changed 22 months ago by Mark Evenson

Milestone: 1.9.11.9.2

comment:20 Changed 18 months ago by Mark Evenson

Milestone: 1.9.21.9.3
Note: See TracTickets for help on using tickets.