Created
August 12, 2014 16:38
-
-
Save lviggiano/4ce8330e157144c0eb91 to your computer and use it in GitHub Desktop.
owner-patch-for-list-problem.diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/owner/src/main/java/org/aeonbits/owner/Converters.java b/owner/src/main/java/org/aeonbits/owner/Converters.java | |
index fcf28c6..ca01d31 100644 | |
--- a/owner/src/main/java/org/aeonbits/owner/Converters.java | |
+++ b/owner/src/main/java/org/aeonbits/owner/Converters.java | |
@@ -58,6 +58,9 @@ enum Converters { | |
for (int i = 0; i < chunks.length; i++) { | |
String chunk = chunks[i]; | |
Object value = converter.tryConvert(targetMethod, type, chunk); | |
+ if ( value == SKIP ) { | |
+ throw unsupportedConversion(type, chunk); | |
+ } | |
Array.set(result, i, value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment