avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Karp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-1463) Undefined values cause warnings when unions with null serialized
Date Fri, 21 Feb 2014 02:36:19 GMT
John Karp created AVRO-1463:
-------------------------------

             Summary: Undefined values cause warnings when unions with null serialized
                 Key: AVRO-1463
                 URL: https://issues.apache.org/jira/browse/AVRO-1463
             Project: Avro
          Issue Type: Bug
          Components: perl
            Reporter: John Karp
            Assignee: John Karp
            Priority: Minor


This code produces warnings:
{noformat}
$enc = '';
$schema = Avro::Schema->parse(q(["long","null"]));
Avro::BinaryEncoder->encode(
    schema => $schema,
    data => undef,
    emit_cb => sub { $enc .= ${ $_[0] } },
);
{noformat}

{noformat}
Use of uninitialized value $data in pack at /home/johnkarp/git/avro/lang/perl/blib/lib/Avro/Schema.pm
line 285.
Use of uninitialized value $data in string eq at /home/johnkarp/git/avro/lang/perl/blib/lib/Avro/Schema.pm
line 287.
{noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message