octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62406] javaObject() java.lang.String Has Diff


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #62406] javaObject() java.lang.String Has Different Output with MATLAB
Date: Tue, 3 May 2022 11:35:48 -0400 (EDT)

Follow-up Comment #1, bug #62406 (project octave):

that looks like the default general display method for objects in octave. 
looking at the methods for that object:


>> methods(s)
Methods for class java.lang.String:
String               copyValueOf          join                 startsWith
charAt               endsWith             lastIndexOf          subSequence
chars                equals               length               substring
codePointAt          equalsIgnoreCase     matches              toCharArray
codePointBefore      format               notify               toLowerCase
codePointCount       getBytes             notifyAll            toString
codePoints           getChars             offsetByCodePoints   toUpperCase
compareTo            getClass             regionMatches        trim
compareToIgnoreCase  hashCode             replace              valueOf
concat               indexOf              replaceAll           wait
contains             intern               replaceFirst
contentEquals        isEmpty              split


appears the object or its parent (assuming it's inheriting things) doesn't
have the disp or display method defined (at least publicly).  that could be
done to change the way it echoes the contents. String or array display is
fairly straightforward, but depending on how variable the javaObject content
can get, it could get a bit involved.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62406>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]