[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #32585] Class.getMethods
From: |
Per Bothner |
Subject: |
[Bug-kawa] [bug #32585] Class.getMethods |
Date: |
Sun, 27 Feb 2011 00:31:38 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 |
Follow-up Comment #1, bug #32585 (project kawa):
This isn't a bug, but how things are supposed to work.
CLASS:METHOD_NAME searches for a static field or method of the CLASS. And
CLASS isn't necessarily a CLASS_NAME - it could be any expression that
evaluates to type Class or gnu.bytecode.Type.
In other words - the colon notation doesn't work when trying to get get
methods of class Class itself.
This inconsistency is unfortunate, but I don't know if there is any better
solution. Perhaps using different operators for static and instance members
might have been better. However, using methods of Class is higher-level
programming, so application programmers should rarely do it.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32585>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/