bugGNU Octave - Bugs: bug #60396, Java Methods expecting native java...

 
 

bug #60396: Java Methods expecting native java char type input cannot be used

Submitted by:  Tasos Papastylianou <tpapastylianou>
Submitted on:  Wed 14 Apr 2021 08:29:25 PM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Tasos Papastylianou Open/Closed:  Open
Release:  6.2.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Wed 14 Apr 2021 08:29:25 PM UTC, original submission:  

If a java method expects a 'char' input (i.e. a 'java char' type, not an octave 'char'), it is impossible to call it with valid input.

Example:

dfs = javaObject ( 'java.text.DecimalFormatSymbols' )
dfs.setDecimalSeparator( '.' )

I assume this is because octave treats '.' as a string and passes it to java as a string object? Or something along those lines?

There are a couple of other bugs in the bug tracker here involving java and chars, but these seem to mostly relate to conversions from java outputs, not the inability to pass a 'java char value'.

Tasos Papastylianou <tpapastylianou>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tpapastylianou (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.6