bugGNU Octave - Bugs: bug #48849, which: return Java class methods

 
 

bug #48849: which: return Java class methods

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Mon 22 Aug 2016 09:47:10 AM UTC  
 
Category: Octave FunctionSeverity: 1 - Wish
Priority: 3 - LowItem Group: Matlab Compatibility
Status: Need InfoAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 23 Aug 2016 02:41:49 PM UTC, comment #2:

Hm,... maybe.
I think, which could be useful also for java methods.
I do not say I can't do without it.

Ernst Reissner <ernstreissner>
Tue 23 Aug 2016 02:31:19 PM UTC, comment #1:

According to https://www.mathworks.com/help/matlab/ref/which.html, only methods that are in classes that are "loaded" are returned.

This also implies the following syntax that Matlab supports, but Octave does not:

where the method is called as a function with the object as argument. I'm not saying this can't be done without that support, but that's what "which" seems to be paired with, the list of functions that you can call as a bare function.

Mike Miller <mtmiller>
Project Administrator
Mon 22 Aug 2016 09:47:10 AM UTC, original submission:

according to 'Undocumented Secrets of MATLAB-Java Programming'
function which is also applicable to java methods.

which setSize
yields
setSize is a Java method % javax.swing.JPanel method

which setSize -all
yields a list accordingly.

Ernst Reissner <ernstreissner>

 

(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 mtmiller (Posted a comment)
  • -unavailable- added by ernstreissner (Submitted the item)
  • -unavailable- added by ernstreissner
  •  

    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 project members can vote.

     

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

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 Aug 2016 02:31:19 PM UTCmtmillerCategoryNone=>Octave Function
      Severity3 - Normal=>1 - Wish
      Priority5 - Normal=>3 - Low
      Item GroupNone=>Matlab Compatibility
      StatusNone=>Need Info
      Summaryjava integration which on java methods=>which: return Java class methods
    Mon 22 Aug 2016 09:47:11 AM UTCernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1