bugGNU Octave - Bugs: bug #48679, java interface: conversion of...

 
 

bug #48679: java interface: conversion of number into byte

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Tue 02 Aug 2016 12:52:29 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Aug 2016 01:23:49 PM UTC, comment #5: 

As you said, just a few lines missing.


(file #38176)

Ernst Reissner <ernstreissner>
Wed 03 Aug 2016 08:29:27 PM UTC, comment #4: 

the patch is 9067

Ernst Reissner <ernstreissner>
Wed 03 Aug 2016 08:28:17 PM UTC, comment #3: 

Hi Mike,
yes, not so difficult.
I submitted a patch (#0967) providing doxygen docs
and cleaning up ClassHelper.

Please consider this patch first,
because this eases further work.
There are many bugs located in ClassHelper.


Ernst Reissner <ernstreissner>
Wed 03 Aug 2016 08:18:35 PM UTC, comment #2: 

Hi Mike,
yes, not so difficult.
I submitted a patch providing doxygen docs
and cleaning up ClassHelper.

Please consider this patch first,
because this eases further work.
There are many bugs located in ClassHelper.

Ernst Reissner <ernstreissner>
Wed 03 Aug 2016 06:15:57 PM UTC, comment #1: 

Confirmed, this looks like an oversight in the org.octave.ClassHelper class, should be an easy fix if you want to provide a patch.

Mike Miller <mtmiller>
Group Member
Tue 02 Aug 2016 12:52:29 PM UTC, original submission:  

with the attached testclass on the classpath (javaaddpath),
it is no problem to set iVal but setting bVal results in an error:

octave:2> javaObject('eu.simuline.octave.OctaveInterfaceTester')

octave:3> java_set(tester,'iVal',-127)
octave:4> java_set(tester,'bVal',-127)
error: [java] java.lang.IllegalArgumentException: Can not set byte field eu.simuline.octave.OctaveInterfaceTester.bVal to null value
error: called from
    java_set at line 48 column 16


Comment: at the moment, the java interface is nearly UNUSABLE
in particular because of bug 48013.
But there are many further bugs I submitted.
I would be willing to provide bugfixes for all of them,
but still no enough input to do so.
The bugs refer all to a small number of files
and so I must do one after the other.

Please help me working on java integration.

Ernst Reissner <ernstreissner>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38176:  patchBug48679.patch added by ernstreissner (3KiB - text/x-patch)
file #38077:  OctaveInterfaceTester.java added by ernstreissner (2KiB - application/x-java)
file #38078:  OctaveInterfaceTester.class added by ernstreissner (2KiB - application/java-vm)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by ernstreissner (Submitted the item)
  • -email is unavailable- added by ernstreissner
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-11 ernstreissner Attached File- Added patchBug48679.patch, #38176
    2016-08-03 mtmiller CategoryNone Octave Function
        Item GroupNone Incorrect Result
        StatusNone Confirmed
        Release4.0.3 dev
    2016-08-02 ernstreissner Attached File- Added OctaveInterfaceTester.java, #38077
        Attached File- Added OctaveInterfaceTester.class, #38078
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code