We had similar challenges and discussions even before JSR 363 about knowing what type of quantity you're dealing with types like
Unit<Q extends Quantity<Q>>
I can only confirm Arjan's impression. And I had numerous conversations with Andrew Kennedy, the Chief Architect behind the F# Units of Measurement support and other .NET libraries about it. Where he mentioned shortcomings of the Java language especially the lack of Reified Generics (http://stackoverflow.com/questions/31876372/what-is-reification), which C#, F# or other .NET languages got, but Java won't at least not until Java 10, 11 or even later.
I tried a lot between 2010 and now but so far none of these Reflection tricks and approaches were stable enough, so not sure, if it'll work any better in this case (unless you implement CDI in C#;-)
On Wed, Apr 26, 2017 at 5:29 PM, <[hidden email]> wrote:
Send cdi-dev mailing list submissions to
cdi-dev mailing list
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.
|Free forum by Nabble||Edit this page|