bugGNU Octave - Bugs: bug #55975, shadowed package functions result...

 
 

bug #55975: shadowed package functions result in incorrect calls

Submitter:  John W. Eaton <jwe>
Submitted:  Thu 21 Mar 2019 07:14:27 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  jwe
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 25 Mar 2019 07:17:29 PM UTC, comment #1: 

I backed out changeset 40d44f2f942 here:

http://hg.savannah.gnu.org/hgweb/octave/rev/340d44f2f942

and that seems to have fixed this problem for me.

John W. Eaton <jwe>
Group administrator
Thu 21 Mar 2019 07:14:27 PM UTC, original submission:  

Given a directory layout like


top/foo.m
top/+pkga/+pkgb/foo.m


and the current directory for Octave in "top", calling the function


pkga.pkgb.foo ()


calls the top-leve function foo instead of the one defined in the package directory.  This also happens when the function is called through a functio handle.  The same result occurs for classdef static methods.

I'm working on a fix but wanted a bug report number for tests I'm adding to the test suite.

John W. Eaton <jwe>
Group administrator

 

(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 jwe (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-25 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code