bugGNU Octave - Bugs: bug #62432, classdef object display of boolean...

 
 

bug #62432: classdef object display of boolean matrix property fails with error: octave_base_value::bool_value(): wrong type argumen

Submitted by:  PIERRE LABRECHE <pierre5018>
Submitted on:  Tue 10 May 2022 04:12:06 PM UTC
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Confirmed Assigned to:  None
Originator Name:  PIERRE LABRECHE Open/Closed:  * Open
Release:  * 7.1.0 Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Tue 10 May 2022 08:31:13 PM UTC, comment #2: 

Confirmed.  This applies generally as I did my test on Linux so I have changed the Operating System to "Any".

Rik <rik5>
Project Administrator
Tue 10 May 2022 07:58:53 PM UTC, comment #1: 

When using the variables editor to display object "obj" created in the command window, the interpreter goes into an infinite loop of errors :

GNU Octave, version 7.1.0
Copyright (C) 1993-2022 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-w64-mingw32".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

>> addpath( "C:/Users/pierr/Documents/Photo private/Octave bugs")
>> obj = Bool_matrix_class()
obj =

  Bool_matrix_class object with properties:

      bool_matrix_prop: error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> error: octave_base_value::bool_value(): wrong type argument 'bool matrix'

PIERRE LABRECHE <pierre5018>
Tue 10 May 2022 04:12:06 PM UTC, original submission:  

Given a classdef file Bool_matrix_class.m

classdef Bool_matrix_class
  properties
    x ;
  endproperties

  methods
    function obj = Bool_matrix_class()
      obj.x = false([1 3]) ;
    endfunction
  endmethods
endclassdef

The interpreter behaves as shown below:

⃲>> obj = Bool_matrix_class()
                    obj =

                      Bool_matrix_class object with properties:

                          x: error: octave_base_value::bool_value(): wrong type argument 'bool matrix'
>> obj.x
ans =

                          0  0  0

>>

PIERRE LABRECHE <pierre5018>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by pierre5018 (Submitted the item)
  •  

    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 project members can vote.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-10 rik5 StatusNone => Confirmed
        Operating SystemMicrosoft Windows => Any

    Back to the top


    Powered by Savane 3.9