mirror of
				https://github.com/msgpack/msgpack-c.git
				synced 2025-10-27 19:10:21 +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)) { | 		} else if(isAnnotated(field, Optional.class)) { | ||||||
| 			return FieldOption.OPTIONAL; | 			return FieldOption.OPTIONAL; | ||||||
| 		} else if(isAnnotated(field, Nullable.class)) { | 		} else if(isAnnotated(field, Nullable.class)) { | ||||||
| 			if(field.getDeclaringClass().isPrimitive()) { | 			if(field.getType().isPrimitive()) { | ||||||
| 				return FieldOption.REQUIRED; | 				return FieldOption.REQUIRED; | ||||||
| 			} else { | 			} else { | ||||||
| 				return FieldOption.NULLABLE; | 				return FieldOption.NULLABLE; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Muga Nishizawa
					Muga Nishizawa