geantyref icon indicating copy to clipboard operation
geantyref copied to clipboard

Advanced generic type reflection library with support for working with AnnotatedTypes (for Java 8+)

Results 7 geantyref issues
Sort by recently updated
recently updated
newest added

mfriedenhagen reported an issue in Spock https://github.com/spockframework/spock/issues/1909 where geantyref throws a `StackOverflowError`. I have removed the Spock dependency from the reproducer attached to the Spock issue, and the error is...

## Summary Adds a `module-info.java` so that Geantyref can be used from Modular Java apps. Fixes and closes leangen/geantyref#28 and leangen/geantyref#26 ## Changelog - chore: add mvn build wrapper -...

It would be cool to be able to use Geantyref from Modular Java, i.e. with tools like `jlink`. But right now, it is not possible, because Geantyref ships an `Automatic-Module-Name`,...

`getAnnotatedOwnerType()` was added to the `AnnotatedType` interface in JDK9. It should be properly implemented, effectively bumping the version requirement.

Coming from https://github.com/coekie/gentyref/issues/5#issuecomment-968368485 I gave it a spin and came up with this: ```java public static Type getResolvedReturnType(Method m, Type declaringType) { return resolveTypeVariableIfNecessary(GenericTypeReflector.getReturnType(m, declaringType)); } public static Type getResolvedFieldType(Field...

In its current state, `GenericTypeReflector.annotate` adds class annotations as type annotations. I'm not entirely sure where this would be useful, but it is a serious problem for almost anything that...

The VarMap now tracks the currently resolving TypeVars to detect, if we already resolve the same TypeVar. Fixes #27