New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fields package bug #7458
Comments
From jean.flouret@infineon.comTo: perlbug@perl.org This is a bug report for perl from jean.flouret@infineon.com, fields package is shifting attribute in following case : Let's consider 3 levels of simple hierarchy (-> represents a class condition : 1/ A, C , and have their own fields , 2/ A is mixing private attribute and public attribute workaround : add a "dummy" field for class B, so all level of I put a small testcase to reproduce the trouble below. Regards, #!/opt/perl_5.8.4/bin/perl package packageA ; sub getA2 { sub getA3 { package packageB ; sub new { package packageC ; $this->{_C1} = "c1"; my $Cobject = packageC->new(); print "A1:".$Cobject->getA1()."\n"; Flags: Site configuration information for perl v5.8.3: Configured by hwadm at Fri Jan 23 08:22:08 MET 2004. Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Locally applied patches: @INC for perl v5.8.3: /var/vob/relman/kernel/vob/HDLDepend/lib/perl/sun4-solaris-thread-multi /var/vob/relman/kernel/vob/foundation/lib/perl/sun4-solaris-thread-multi Environment for perl v5.8.3: LD_LIBRARY_PATH=/opt/gcc_3.2.3/lib:/usr/lib:/usr/local/lib:/opt/cds_5033 PATH=/opt/xemacs_21.4.12/bin:/var/vob/relman/flows/vob/inwaybase/bin:/op PERL5LIB=/var/vob/relman/kernel/vob/HDLDepend/lib/perl:/var/vob/relman/k |
From @iabynOn Fri, Aug 13, 2004 at 06:40:56AM -0000, Jean. Flouret @ infineon. com wrote:
Thanks for the report. The following 2 patches, once integrated into the 5.8.X branch, should A note to P5pers: While fixing this patch, I've discovered that the 5.9.x restricted hashes package A; package B; my B $b = B->new(); Then $b is a ref to a readonly hash with keys 'a1' and 'b'. Any attempt I'm not sure what the best way to deal with this is. I guess we probably Dave. -- Change 23266 by davem@davem-percy on 2004/09/05 20:04:35 [perl #31078] Fields package bug Affected files ... ... //depot/perl/lib/base.pm#29 edit Differences ... ==== //depot/perl/lib/base.pm#29 (text) ==== ==== //depot/perl/lib/base/t/fields-base.t#4 (text) ==== @@ -21,7 +21,7 @@ use strict; BEGIN { use_ok('base'); } @@ -224,3 +224,55 @@ Change 23267 by davem@davem-percy on 2004/09/05 20:16:55 I somehow managed to omit the base.pm change from #23266 Affected files ... ... //depot/perl/lib/base.pm#30 edit Differences ... ==== //depot/perl/lib/base.pm#30 (text) ==== @@ -152,10 +152,9 @@ - unless( keys %$bfields ) { |
The RT System itself - Status changed from 'new' to 'open' |
From rick@bort.caOn Sun, Sep 05, 2004 at 09:40:10PM +0100, Dave Mitchell wrote:
I haven't been able to get a compile-time error. Do you have a test
Me neither. -- |
From @iabynOn Sun, Sep 05, 2004 at 06:02:42PM -0400, Rick Delaney wrote:
I think I must have got confused. I can only see run-time errors now.
:-( -- |
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#31078 (status was 'resolved')
Searchable as RT31078$
The text was updated successfully, but these errors were encountered: