Skip Menu |

This queue is for tickets about the IO-Moose CPAN distribution.

Report information
The Basics
Id: 44967
Status: resolved
Priority: 0/
Queue: IO-Moose

People
Owner: piotr.roszatycki [...] gmail.com
Requestors: framp [...] linux-tips-and-tricks.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: The alias_method method is deprecated. Use add_method instead.
Environment: SuSE 11.0, perl 5.10, Linux obelix 2.6.25.20-0.1-default #1 SMP 2008-12-12 20:30:38 +0100 i686 athlon i386 GNU/Linux Trying to use IO::Moose and get a stacktrace The alias_method method is deprecated. Use add_method instead. at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP/Class.pm line 672 Class::MOP::Class::alias_method('Moose::Meta::Class=HASH(0x8c2defc)', 'autoflush', 'CODE(0x8ff2cfc)') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 1956 require IO/Moose/Handle.pm called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 Class::MOP::_try_load_one_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 101 Class::MOP::load_first_existing_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 144 Class::MOP::load_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/Moose.pm line 59 Moose::extends('IO::Moose::Seekable', 'IO::Moose::Handle', 'IO::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/Moose/Exporter.pm line 201 Moose::extends('IO::Moose::Handle', 'IO::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Seekable.pm line 95 require IO/Moose/Seekable.pm called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 Class::MOP::_try_load_one_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 101 Class::MOP::load_first_existing_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 144 Class::MOP::load_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/Moose.pm line 59 Moose::extends('IO::Moose::File', 'IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/Moose/Exporter.pm line 201 Moose::extends('IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 107 require IO/Moose/File.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/Executor.pm line 5 Executor::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 require Executor.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/main.pl line 8 main::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 Could not load class (IO::Moose::Seekable) because : Could not load class (IO::Moose::Handle) because : You must define a method name at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP/Class.pm line 568 Class::MOP::Class::add_method('Moose::Meta::Class=HASH(0x8c2defc)') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP/Class.pm line 674 Class::MOP::Class::alias_method('Moose::Meta::Class=HASH(0x8c2defc)', 'autoflush', 'CODE(0x8ff2cfc)') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 1956 require IO/Moose/Handle.pm called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 Class::MOP::_try_load_one_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 101 Class::MOP::load_first_existing_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 144 Class::MOP::load_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/Moose.pm line 59 Moose::extends('IO::Moose::Seekable', 'IO::Moose::Handle', 'IO::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/Moose/Exporter.pm line 201 Moose::extends('IO::Moose::Handle', 'IO::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Seekable.pm line 95 require IO/Moose/Seekable.pm called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 Class::MOP::_try_load_one_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 101 Class::MOP::load_first_existing_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 144 Class::MOP::load_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/Moose.pm line 59 Moose::extends('IO::Moose::File', 'IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/Moose/Exporter.pm line 201 Moose::extends('IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 107 require IO/Moose/File.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/Executor.pm line 5 Executor::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 require Executor.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/main.pl line 8 main::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Handle.pm line 0 Compilation failed in require at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138. at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 124 Class::MOP::load_first_existing_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 144 Class::MOP::load_class('IO::Moose::Handle') called at /usr/lib/perl5/site_perl/5.10.0/Moose.pm line 59 Moose::extends('IO::Moose::Seekable', 'IO::Moose::Handle', 'IO::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/Moose/Exporter.pm line 201 Moose::extends('IO::Moose::Handle', 'IO::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Seekable.pm line 95 require IO/Moose/Seekable.pm called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138 Class::MOP::_try_load_one_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 101 Class::MOP::load_first_existing_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 144 Class::MOP::load_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/Moose.pm line 59 Moose::extends('IO::Moose::File', 'IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/Moose/Exporter.pm line 201 Moose::extends('IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 107 require IO/Moose/File.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/Executor.pm line 5 Executor::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Seekable.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Seekable.pm line 0 require Executor.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/main.pl line 8 main::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Seekable.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/Seekable.pm line 0 Compilation failed in require at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 138. at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 124 Class::MOP::load_first_existing_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Class/MOP.pm line 144 Class::MOP::load_class('IO::Moose::Seekable') called at /usr/lib/perl5/site_perl/5.10.0/Moose.pm line 59 Moose::extends('IO::Moose::File', 'IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/Moose/Exporter.pm line 201 Moose::extends('IO::Moose::Seekable', 'IO::File') called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 107 require IO/Moose/File.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/Executor.pm line 5 Executor::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 0 require Executor.pm called at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/main.pl line 8 main::BEGIN() called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 0 eval {...} called at /usr/lib/perl5/site_perl/5.10.0/IO/Moose/File.pm line 0 Compilation failed in require at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/Executor.pm line 5. BEGIN failed--compilation aborted at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/Executor.pm line 5. Compilation failed in require at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/main.pl line 8. BEGIN failed--compilation aborted at /disks/sda6/home11/peter/workspace2/collectnwdata/perl/main.pl line 8. That's in fact initially a depreciation warning only but unfortunately for some reasons the warning is not detected as a warning and the compilation terminates with the actual cpan code (4/12/09). I updated Class::MOP from git://jules.scsys.co.uk/gitmo/Moose.git and there is no compilation abort any more. But there is still the depreciation warning.
Fixed in 0.1003.