[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60123] method methods and ismethod silently c
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now |
Date: |
Sun, 28 Feb 2021 18:46:03 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 |
Follow-up Comment #12, bug #60123 (project octave):
https://www.mathworks.com/help/matlab/ref/methods.html
shows how it is meant:
methods('java.lang.String')
returns just names of constructor(s) and methods.
If two (constructors or) functions have the same names (but differ e.g. in
arguments), only one name is given.
In contrast, methods('java.lang.String','full') shows method signatures.
It is ugly, but for that variant,
the result is given somewhere else:
https://www.mathworks.com/help/matlab/matlab_external/java-method-information.html
Methods for class java.awt.Dimension:
Dimension()
Dimension(java.awt.Dimension)
Dimension(int,int)
java.lang.Class getClass() % Inherited from java.lang.Object
int hashCode() % Inherited from java.lang.Object
boolean equals(java.lang.Object)
java.lang.String toString()
void notify() % Inherited from java.lang.Object
void notifyAll() % Inherited from java.lang.Object
void wait(long) throws java.lang.InterruptedException
% Inherited from java.lang.Object
void wait(long,int) throws java.lang.InterruptedException
% Inherited from java.lang.Object
void wait() throws java.lang.InterruptedException
% Inherited from java.lang.Object
java.awt.Dimension getSize()
void setSize(java.awt.Dimension)
void setSize(int,int)
You can see, that now the following is added:
- parameter list
- throws clause for checked exceptions,
- return type,
- inheritance information
- I think, also modifiers like static, final, .... (no access)
Again, the constructors are treated as methods.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60123>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, (continued)
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Ernst Reissner, 2021/02/26
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Ernst Reissner, 2021/02/26
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Philip Nienhuis, 2021/02/26
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Ernst Reissner, 2021/02/26
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Markus Mützel, 2021/02/26
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Rik, 2021/02/26
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Philip Nienhuis, 2021/02/27
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Ernst Reissner, 2021/02/28
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Philip Nienhuis, 2021/02/28
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now, Ernst Reissner, 2021/02/28
- [Octave-bug-tracker] [bug #60123] method methods and ismethod silently changed: includes constructors now,
Ernst Reissner <=