Packages in PLL library referenced by Forms 6, HELP NEEDED

From: Moron <moron.jean-luc_at_rcc.ch>
Date: 31 Oct 2002 00:00:00 -0800
Message-ID: <fa37b3cd.0210310000.4e9b1f07_at_posting.google.com>



Hello ,

did somebody experience the same problem ?: it seems that Forms indexes the procedures within a package by position in the pack. header instead of doing it by name + parameters ( overloading).

It is very easy to reproduce but I suspect Oracle support to avoid any clear answer on that subject by saying they cannot reproduce the case ( I did succeed on 3 different forms 6/6i versions , 2 different OS (NT+W2K)and 3 different machines).

TEST CASE:
- create a new PLL : test.pll with a package:
PACKAGE pck IS
  procedure pc ;
END; PACKAGE BODY pck IS
  procedure pc is
   begin

   	message( 'HEllo world ');
   	message( 'HEllo world ');

   end;
END;
- compile all + save
  • Create a new form with a canvas + 1 button
  • Attach the library.
  • In the when-BUTTON-PRESSED trigger create the code: pck.pc;
  • GENERATE THE FMX, run : you get hello world message. Now: At a new procedure "p4" before the "pc" procedure:

PACKAGE pck IS
  procedure p4 ;
  procedure pc ;

END; PACKAGE BODY pck IS
  procedure p4 is
   begin

   	message( 'bugggg ');
   	message( 'bugggg ');

   end;
  procedure pc is
   begin
   	message( 'HEllo world ');
   	message( 'HEllo world ');

   end;
END;
- DON'T MAKE ANY CHANGE IN THE FMB
  • DON'T REGENERATE THE FMX
  • RUN THE EXISTING FMX
  • and you get .....

Every comment or help is welcome

Regards and have a nice day

JL Moron Received on Thu Oct 31 2002 - 09:00:00 CET

Original text of this message