bugGNU Octave - Bugs: bug #36311, NoSuchMethodException: questdlg,...

 
 

bug #36311: NoSuchMethodException: questdlg, errordlg, helpdlg, inputdlg, warndlg

Submitter:  NitraM <nitram>
Submitted:  Thu 26 Apr 2012 08:26:30 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Octave Forge Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 02 Oct 2012 06:54:22 AM UTC, comment #3: 

(Some info just to be sure that this bug report is complete:

Last July ago I've updated the dialog functions in the Java package in Octave-Forge svn to accept cell string arrays for the first arg (MESSAGE) => fixed in Java pkg v. 1.2.9)

Philip Nienhuis <philipnienhuis>
Group Member
Thu 26 Apr 2012 07:54:00 PM UTC, comment #2: 

(Sorry for posting here, I'll keep it short)

Nitram,

questdlg's arguments are fed directly to Java methods, and Java doesn't know how to handle Octave cell data types.
So, questdlg doesn't accept cell arguments. What makes you think that you can substitute cellstr arrays where plain text strings are to be expected?
What do you expect/hope to get as output?

I'd agree that perhaps more rigid input validation is needed for the Java ui functions.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 26 Apr 2012 12:11:55 PM UTC, comment #1: 

This bug tracker is limited to Octave's core functions.

The problem reported is for the java package on Octave Forge.

The proper bug tracker for that is below.

http://sourceforge.net/tracker/?group_id=2888&atid=102888

I'd transplant the bug, but I don't see how to add Nitra so that he is cc'd

Ben Abbott <bpabbott>
Group Member
Thu 26 Apr 2012 08:26:30 AM UTC, original submission:  

Hello,

I found the next bug:

This is working fine:

questdlg('yes or no?', 'question', 'yes', 'no', 'no')
ans = no


But if there is a cell specified instead of a char[], there is a Java Exception.

questdlg({'yes or no?'}, 'question', 'yes', 'no', 'no')
error: [java] java.lang.NoSuchMethodException: questdlg
error: called from:
error:   E:\octave\Octave3.6.1_gcc4.6.2\share\octave\packages\java-1.2.8\questdlg.m at line 79, column 7


Thanks,
Nitram

NitraM <nitram>

 

(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 (Updated the item)
  • -email is unavailable- added by philipnienhuis (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by nitram (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 group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-02 rik5 StatusInvalid / Not an Octave Bug Octave Forge
        Open/ClosedOpen Closed
    2012-04-26 bpabbott StatusNone Invalid / Not an Octave Bug

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code