You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Ben Maurer (JIRA)" <ji...@apache.org> on 2009/02/05 06:37:59 UTC
[jira] Created: (THRIFT-315) Invalid code when Enum is in another
package
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
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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (THRIFT-315) Invalid code when Enum is in another
package
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury updated THRIFT-315:
---------------------------------
Fix Version/s: 0.1
> 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)
> Affects Versions: 0.1
> Reporter: Ben Maurer
> Assignee: Bryan Duxbury
> Priority: Blocker
> Fix For: 0.1
>
>
> 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.
[jira] Updated: (THRIFT-315) Invalid code when Enum is in another
package
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (THRIFT-315) Invalid code when Enum is in another
package
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury updated THRIFT-315:
---------------------------------
Affects Version/s: 0.1
Assignee: Bryan Duxbury
> 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)
> Affects Versions: 0.1
> Reporter: Ben Maurer
> Assignee: Bryan Duxbury
> 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.
[jira] Resolved: (THRIFT-315) Invalid code when Enum is in another
package
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury resolved THRIFT-315.
----------------------------------
Resolution: Fixed
Turns out this was fixed already as part of another issue. Oops!
> 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)
> Affects Versions: 0.1
> Reporter: Ben Maurer
> Assignee: Bryan Duxbury
> Priority: Blocker
> Fix For: 0.1
>
>
> 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.