• Stephane Nicoll's avatar
    Rework type generation algorithm · 927c2cac
    Stephane Nicoll authored
    The initial solution to gh-11512 was still using a plain `toString` that
    could potentially break with a JDK upgrade. Turns out that JDK9 actually
    uses the same type for AnnotatedType and ClassType so the trick of using
    a visitor doesn't work anymore.
    
    Retrospectively, it is quite easy to generate the full type once we have
    the DeclaredType as we already have some logic to get the qualified,
    that is raw, type and we have access to the type parameters.
    
    This commit still uses a `toString` to generate the representation of
    the type parameters but this looks much safer than trying to redo what
    such a simple `toString` should do. Also, the additional metadata that
    we could get on an ExecutableElement does not apply to them.
    
    Closes gh-11512
    927c2cac
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...