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

 
 

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

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Tue 02 Aug 2016 12:52:29 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned 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.

 

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>
Project Administrator
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 File(s):
   
   
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
  • -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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Aug 2016 01:23:49 PM UTCernstreissnerAttached File-=>Added patchBug48679.patch, #38176
    Wed 03 Aug 2016 06:15:57 PM UTCmtmillerCategoryNone=>Octave Function
      Item GroupNone=>Incorrect Result
      StatusNone=>Confirmed
      Release4.0.3=>dev
    Tue 02 Aug 2016 12:52:29 PM UTCernstreissnerAttached File-=>Added OctaveInterfaceTester.java, #38077
      Attached File-=>Added OctaveInterfaceTester.class, #38078
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1