--- a/src/JavaField.st Wed Dec 07 20:37:12 2011 +0000
+++ b/src/JavaField.st Wed Dec 07 21:58:15 2011 +0000
@@ -262,18 +262,25 @@
!JavaField methodsFor:'printing & storing'!
-printOn: aStream
-
+printOn: aStream
+ | signatureOrDescriptor |
+ signature notNil ifTrue: [ signatureOrDescriptor := signature ] ifFalse: [
+ descriptor notNil ifTrue: [ signatureOrDescriptor := descriptor ] ifFalse: [
+ signatureOrDescriptor := 'unknown descriptor'
+ ]
+ ].
super printOn: aStream.
- aStream
- nextPutAll:'(name: ';
+ aStream
+ nextPutAll: '(name: ';
nextPutAll: name;
- nextPut:$,; space;
- nextPutAll:'descriptor: ';
- nextPutAll: signature;
- nextPut:$)
+ nextPut: $,;
+ space;
+ nextPutAll: 'descriptor: ';
+ nextPutAll: signatureOrDescriptor;
+ nextPut: $)
"Created: / 22-05-2011 / 16:07:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 07-12-2011 / 22:03:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
! !
!JavaField methodsFor:'queries'!