bugGNU Octave - Bugs: bug #48592, function char on java objects

 
 

bug #48592: function char on java objects

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Fri 22 Jul 2016 12:17:43 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem 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.

 

Fri 19 Aug 2016 10:04:18 AM UTC, comment #3:

what kind of information do you require to confirm or to reject this bugreport?

Ernst Reissner <ernstreissner>
Fri 29 Jul 2016 01:33:18 AM UTC, comment #2:

I read: if an array of strings, the result is an array of chars.
Well not clear whether String[] is mapped onto char[][] or onto char[].

The rest seems to me as you describe it.

Ernst Reissner <ernstreissner>
Fri 22 Jul 2016 04:11:13 PM UTC, comment #1:

Do you have access to Matlab to test?

The way I read the reference page is (pardon my Java pseudocode):

Do you agree?

Some examples of java classes to demonstrate this would be helpful, if you can suggest some classes from the standard library that show: a subclass of java.lang.String, a class that is not a subclass of java.lang.String but has a toString, and a class that has a toChar but not a toString.

Mike Miller <mtmiller>
Project Administrator
Fri 22 Jul 2016 12:17:43 AM UTC, original submission:

shows that unless a java object implements toChar,
method char(m) applied to java object m
shall result in an error.

what it seems to do is to invoke m.toString()
which is wrong.

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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Jul 2016 04:11:13 PM UTCmtmillerCategoryNone=>Interpreter
      Item GroupNone=>Matlab Compatibility
      StatusNone=>Need Info
      Release4.0.2=>dev
    Fri 22 Jul 2016 12:17:43 AM UTCernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1