bugKawa - Bugs: bug #32585, Class.getMethods

 
 

bug #32585: Class.getMethods

Submitted by:  Helmut Eller <ellerh>
Submitted on:  Wed 23 Feb 2011 03:44:28 PM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 27 Feb 2011 08:06:12 AM UTC, comment #2:

OK. Never realized that : is kinda overlaoded
for Class but it makes sense now.

Helmut Eller <ellerh>
Sun 27 Feb 2011 12:31:37 AM UTC, comment #1:

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.

Per Bothner <bothner>
Project Administrator
Wed 23 Feb 2011 03:44:28 PM UTC, original submission:

In this example:
ms3 and ms5 abort with: no applicable method named `getMethods' in
gnu.math.IntNum. ms1, ms2 and ms4 work as expected.

Helmut Eller <ellerh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by ellerh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Apr 2012 05:30:19 AM UTCbothnerCategoryNone=>Scheme language
      StatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1