You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2009/02/07 20:52:59 UTC

[jira] Updated: (THRIFT-315) Invalid code when Enum is in another package

     [ https://issues.apache.org/jira/browse/THRIFT-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury updated THRIFT-315:
---------------------------------

       Priority: Blocker  (was: Major)
    Description: 
Thrift file 1

{code}
namespace java net.recaptcha.foo.bar
struct ChunkInfoRequest {
1: chunkheader.CaptchaImageType imageType
}
{code}

Thrift file 2
{code}
namespace java net.recaptcha.foo.blah
enum CaptchaImageType {
FOO = 1
}
{code}

When the java code is generated, the ChunkInfoRequest.validate method doesn't fully qualify the type name, leading to a compile error

  was:
Thrift file 1

namespace java net.recaptcha.foo.bar
struct ChunkInfoRequest {
1: chunkheader.CaptchaImageType imageType
}

Package 2:
namespace java net.recaptcha.foo.blah
enum CaptchaImageType {
FOO = 1
}

When the java code is generated, the ChunkInfoRequest.validate method doesn't fully qualify the type name, leading to a compile error


> Invalid code when Enum is in another package
> --------------------------------------------
>
>                 Key: THRIFT-315
>                 URL: https://issues.apache.org/jira/browse/THRIFT-315
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Java)
>            Reporter: Ben Maurer
>            Priority: Blocker
>
> Thrift file 1
> {code}
> namespace java net.recaptcha.foo.bar
> struct ChunkInfoRequest {
> 1: chunkheader.CaptchaImageType imageType
> }
> {code}
> Thrift file 2
> {code}
> namespace java net.recaptcha.foo.blah
> enum CaptchaImageType {
> FOO = 1
> }
> {code}
> When the java code is generated, the ChunkInfoRequest.validate method doesn't fully qualify the type name, leading to a compile error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.