You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/07/01 07:06:34 UTC
[jira] [Commented] (GORA-32) Map type with long values generates
non-compilable Java class
[ https://issues.apache.org/jira/browse/GORA-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696493#comment-13696493 ]
Hudson commented on GORA-32:
----------------------------
Integrated in goraOracle #6 (See [https://builds.apache.org/job/goraOracle/6/])
GORA-32. Map type with long values generates non-compilable Java class | Patch from Yves Langisch (Revision de89793edd1118490a40a81ba81d9570971cc08d)
Result = FAILURE
hsaputra :
Files :
* CHANGES.txt
* gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java
> Map type with long values generates non-compilable Java class
> -------------------------------------------------------------
>
> Key: GORA-32
> URL: https://issues.apache.org/jira/browse/GORA-32
> Project: Apache Gora
> Issue Type: Bug
> Components: schema
> Affects Versions: 0.1-incubating
> Reporter: Yves Langisch
> Fix For: 0.2
>
> Attachments: GORA-32.patch, unboxing.patch
>
>
> I have the following Avro JSON schema:
> {
> "type": "record",
> "name": "Request",
> "namespace": "ch.test.generated",
> "fields" : [
> {
> "name": "data",
> "type": {
> "type": "map",
> "values": "long"
> }
> }
> ]
> }
> Compiling the schema I get a Java class that does not compile. The problem is that primitive types are not allowed in generic maps:
> ...
> public Map<Utf8, long> getData() {
> return (Map<Utf8, long>) get(0);
> }
> ...
> The issue seems to be that in the {{GoraCompiler}} class the unboxed types are used.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira