Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9a469af548ed5d648cc6f7a894eff89be55f87dc958d8374685b40e7162f5f8
Ticket: 154f0982f2f701a1c3f964c0a3d54737361a3630
Tcl_NewObjectInstance() silently ignores existing namespace argument
User & Date: dgp on 2024-09-04 18:46:33
Changes

  1. closedate changed to: "2460558.28232981"
  2. icomment:
    
    To be more concrete, here are two of the simple test failures
    in the Itcl test suite:
    
    ==== fossil-9.0 d0126511d9 FAILED
    ==== Contents of test case:
    
        itcl::class N {}
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: can't create namespace "N": already existsITCL: cannot create Tcl_NewObjectInstance for class "::N"
        while executing
    "itcl::class N {}"
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: TCL OPERATION NAMESPACE CREATEEXISTING
    ---- Test cleanup failed:
    class "N" not found in context "::"
    ---- errorInfo(cleanup): class "N" not found in context "::"
        while executing
    "itcl::delete class N::B N"
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $cleanup"
    ---- errorCode(cleanup): NONE
    ==== fossil-9.0 FAILED
    
    
    
    ==== fossil-9.1 d0126511d9 FAILED
    ==== Contents of test case:
    
        itcl::class N {}
    
    ---- Test setup failed:
    class "N::B" already exists
    ---- errorInfo(setup): class "N::B" already exists
        while executing
    "itcl::class N::B {}"
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $setup"
    ---- errorCode(setup): NONE
    ---- Test cleanup failed:
    class "N" not found in context "::"
    ---- errorInfo(cleanup): class "N" not found in context "::"
        while executing
    "itcl::delete class N"
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $cleanup"
    ---- errorCode(cleanup): NONE
    ==== fossil-9.1 FAILED
    
    These tests were created when the issue in this ticket was
    first addressed back in 2015 to detect if it would ever come back.
    Should not really be a surprise this change makes them fail.
    
  3. login: "dgp"
  4. mimetype: "text/plain"