You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY)
private interface WithoutTypeParam {}
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY)
private interface WithTypeParam<T> {}
private class Implementation implements WithTypeParam<Integer>, WithoutTypeParam {}
The @type property for WithoutTypeParam is correct: "Implementation"
But the @type property for WithTypeParam is incorrect: string
This is because in cz.habarta.typescript.generator.compiler.ModelCompiler#createChildrenMap the children map is built using the parameterized type WithTypeParam<Integer>, but when cz.habarta.typescript.generator.compiler.ModelCompiler#getSelfAndDescendants looks for implementations of WithTypeParam it uses the unparameterized type.
I have a fix for this, and am creating the slip to track the issue.
The text was updated successfully, but these errors were encountered:
Yona-Appletree
pushed a commit
to Yona-Appletree/typescript-generator
that referenced
this issue
Sep 27, 2017
Given the java type hierarchy:
The
@type
property forWithoutTypeParam
is correct:"Implementation"
But the
@type
property forWithTypeParam
is incorrect:string
This is because in
cz.habarta.typescript.generator.compiler.ModelCompiler#createChildrenMap
the children map is built using the parameterized typeWithTypeParam<Integer>
, but whencz.habarta.typescript.generator.compiler.ModelCompiler#getSelfAndDescendants
looks for implementations ofWithTypeParam
it uses the unparameterized type.I have a fix for this, and am creating the slip to track the issue.
The text was updated successfully, but these errors were encountered: