Hey Lukas,
I got some more information on this after testing and taking a look at
source code parts:
This code doesn't work too - though it will fail with a slightly different
exception:
final UploadRecord u = result.fetchOneInto(Tables.UPLOAD);
>
23:47:09.891 [Thread-14] ERROR o.c.y.SimpleJavaYoutubeUploader - Caused by:
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.lang.Enum
> 23:47:09.891 [Thread-14] ERROR o.c.y.SimpleJavaYoutubeUploader - at
> org.jooq.impl.EnumConverter.to(EnumConverter.java:50)
> 23:47:09.891 [Thread-14] ERROR o.c.y.SimpleJavaYoutubeUploader - at
> org.jooq.impl.ConvertedDataType.convert(ConvertedDataType.java:84)
> 23:47:09.891 [Thread-14] ERROR o.c.y.SimpleJavaYoutubeUploader - at
> org.jooq.impl.Utils.setValue(Utils.java:1070)
> 23:47:09.891 [Thread-14] ERROR o.c.y.SimpleJavaYoutubeUploader - at
> org.jooq.impl.Utils.setValue(Utils.java:1063)
> 23:47:09.891 [Thread-14] ERROR o.c.y.SimpleJavaYoutubeUploader - at
> org.jooq.impl.AbstractRecord.into(AbstractRecord.java:480)
> 23:47:09.891 [Thread-14] ERROR o.c.y.SimpleJavaYoutubeUploader - ...
> 25 more
>
Stacktraces show the actual class used at runtime and not some parent
classes / interfaces right?
Then one thing you can see is that some generic EnumConverter is used and
not the "registered" ones.
Of course I could be wrong here - but that's it I've got so far.
Regards,
Dennis
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.