- Timestamp:
- 07/04/10 07:49:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generic-class-file/abcl/src/org/armedbear/lisp/jvm-class-file.lisp
r12779 r12781 154 154 155 155 (defun internal-field-type (field-type) 156 (if ( keywordp field-type)156 (if (symbolp field-type) 157 157 (map-primitive-type field-type) 158 158 (class-name-internal field-type))) 159 159 160 160 (defun internal-field-ref (field-type) 161 (if ( keywordp field-type)161 (if (symbolp field-type) 162 162 (map-primitive-type field-type) 163 163 (class-ref field-type))) 164 164 165 165 (defun descriptor (return-type &rest argument-types) 166 (format nil "(~{~A~} ~A)" (mapcar #'internal-field-ref argument-types)166 (format nil "(~{~A~})~A" (mapcar #'internal-field-ref argument-types) 167 167 (internal-field-type return-type))) 168 168 … … 402 402 403 403 (defun class-add-attribute (class attribute) 404 (push att tribute (class-file-attributes class)))404 (push attribute (class-file-attributes class))) 405 405 406 406 (defun class-attribute (class name) … … 416 416 (setf (class-file-access-flags class) 417 417 (map-flags (class-file-access-flags class))) 418 (setf (class-file-class -nameclass)419 (pool-add-class (class-name-internal (class-file-class -nameclass))))418 (setf (class-file-class class) 419 (pool-add-class (class-name-internal (class-file-class class)))) 420 420 ;; (finalize-interfaces) 421 421 (dolist (field (class-file-fields class)) … … 583 583 "Creates an (empty) 'Code' attribute for the method." 584 584 (method-add-attribute 585 (make-code-attribute (+ (length args)585 (make-code-attribute (+ (length (cdr (method-descriptor method))) 586 586 (if (member :static (method-access-flags method)) 587 587 0 1))))) ;; 1 == implicit 'this'
Note: See TracChangeset
for help on using the changeset viewer.