I updated this so we don't have special code to convert enum, but rather we use xbean-reflect's conversion capabilities which handles enum and much more.
Small change: - https://github.com/apache/tomee/commit/1217e64a8a3eef021e9cad1e6eb02a4e5d2d38c4 Xbean-reflect's conversion capabilities are basically as simple as: - `PropertyEditors.getValue(type, claimValue)` -- David Blevins http://twitter.com/dblevins http://www.tomitribe.com > On Aug 3, 2018, at 1:16 PM, Ivan Junckes Filho <[email protected]> wrote: > > Thank you JL. > > On Fri, Aug 3, 2018 at 5:13 PM Jean-Louis Monteiro <[email protected]> > wrote: > >> Hey Ivan, >> >> Thanks for the patch. >> I have reviewed and merge the PR against master and the backport to >> tomee-7.1.x >> >> >> >> -- >> Jean-Louis Monteiro >> http://twitter.com/jlouismonteiro >> http://www.tomitribe.com >> >> On Fri, Aug 3, 2018 at 9:51 PM, Ivan Junckes Filho <[email protected]> >> wrote: >> >>> Hello guys, I did a fix so the Microprofile JWT impl has support for >>> injecting Enums. Basically checks if the injection point is an enum and >>> then convert it. >>> >>> Please review: >>> https://github.com/apache/tomee/pull/143 >>> >>> Thanks. >>> >>
