Skip to content

Instantly share code, notes, and snippets.

@drazzib
Created May 25, 2014 23:28
Show Gist options
  • Save drazzib/263da2ec0dc46afac0d0 to your computer and use it in GitHub Desktop.
Save drazzib/263da2ec0dc46afac0d0 to your computer and use it in GitHub Desktop.
Gora 0.4 generate invalid Java code
$> ./bin/gora goracompiler record_with_bytes.avsc test/
Compiling: /home/drazzib/incoming/apache-gora-0.4/record_with_bytes.avsc
Compiled into: /home/drazzib/incoming/apache-gora-0.4/test
Compiler executed SUCCESSFULL.
$> find test/ -name *.java | xargs javac -cp gora-core/target/classes/:gora-core/lib/avro-1.7.4.jar:gora-core/lib/jackson-core-asl-1.6.9.jar -d test/
test/com/drazzib/com/RecordWityBytes.java:92: error: cannot find symbol
this.type = deepCopyToReadOnlyBuffer(value);
^
symbol: method deepCopyToReadOnlyBuffer(ByteBuffer)
location: class RecordWityBytes
1 error
{
"name": "RecordWityBytes",
"namespace": "com.drazzib.com",
"type": "record",
"fields": [
{
"name": "type",
"type": {
"name": "MyData",
"type": "bytes"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment