[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #30661] Reflection methods return strange object.
From: |
anonymous |
Subject: |
[Bug-kawa] [bug #30661] Reflection methods return strange object. |
Date: |
Thu, 05 Aug 2010 19:00:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Ant.com Toolbar 2.0.1 Firefox/3.6.3 |
URL:
<http://savannah.gnu.org/bugs/?30661>
Summary: Reflection methods return strange object.
Project: Kawa
Submitted by: None
Submitted on: Thu 05 Aug 2010 07:00:43 PM UTC
Category: None
Severity: 3 - Normal
Item Group: Unexpected result
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When I use reflection like this
(define (get-class object)
(invoke object 'getClass))
(define (get-methods object)
(invoke (get-class object) 'getDeclaredMethods))
(get-methods 'foo)
I get this:
[public java.lang.Object gnu.mapping.SimpleSymbol.readResolve() throws
java.io.ObjectStreamException
public void gnu.mapping.SimpleSymbol.writeExternal(java.io.ObjectOutput)
throws java.io.IOException
public void gnu.mapping.SimpleSymbol.readExternal(java.io.ObjectInput)
throws java.io.IOException,java.lang.ClassNotFoundException]
And when I ask for the type of value returned by get-methods
(get-class (get-methods 'foo))
I've got
=> class [Ljava.lang.reflect.Method;
Insted list, java array or iterator.
And list of methods of value of methods
(get-methods (get-methods 'x))
returns
=> []
invoking getDeclaredMethods should return list of <java.lang.reflect.Method>
objects.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30661>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-kawa] [bug #30661] Reflection methods return strange object.,
anonymous <=