mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-27 11:06:51 +01:00
fixed bug, which is cause of CannotCompileException during compiling primitive-type fields annotated by Nullable
This commit is contained in:
@@ -142,7 +142,7 @@ public class FieldEntryReader implements IFieldEntryReader{
|
||||
} else if(isAnnotated(field, Optional.class)) {
|
||||
return FieldOption.OPTIONAL;
|
||||
} else if(isAnnotated(field, Nullable.class)) {
|
||||
if(field.getDeclaringClass().isPrimitive()) {
|
||||
if(field.getType().isPrimitive()) {
|
||||
return FieldOption.REQUIRED;
|
||||
} else {
|
||||
return FieldOption.NULLABLE;
|
||||
|
||||
Reference in New Issue
Block a user