Andrea Boriero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate Commons Annotations (
https://hibernate.atlassian.net/browse/HCANN?atlOrigin=eyJpIjoiMWEwYTViOD...
) / Bug (
https://hibernate.atlassian.net/browse/HCANN-125?atlOrigin=eyJpIjoiMWEwYT...
) HCANN-125 (
https://hibernate.atlassian.net/browse/HCANN-125?atlOrigin=eyJpIjoiMWEwYT...
) The type of a multiple bound generic should correspond to value of the first bound (
https://hibernate.atlassian.net/browse/HCANN-125?atlOrigin=eyJpIjoiMWEwYT...
)
Change By: Andrea Boriero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Given
{code:java}public class MultipleBoundWithClass<T extends String &
MultipleBoundWithClass.Bound> {
T genericType;
public T getGenericType(){
return genericType;
}
public interface Bound{
}
}{code}
the bind type name
{code:java}Type type = MultipleBoundWithClass.class.getMethod( "getGenericType",
new Class[0] ).getGenericReturnType();
Type bind = approximatingUnboundContext.bind( type );{code}
the bind type name {{bind.getTypeName()}} should be equal to {{String.class.getName()}}
and not {{Object.class.getName()}}
(
https://hibernate.atlassian.net/browse/HCANN-125#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HCANN-125#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210- sha1:28a3636 )