-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: [Validator] HV000188 in TypeAnnotationAwareMetaDataProvider
PostPosted: Fri Nov 28, 2014 8:47 am 
Newbie

Joined: Fri Nov 28, 2014 8:33 am
Posts: 1
Hi,

I started using bean validator 5.2.0 Alpha 1 on a Java 8 stand-alone application and found the following potential issue:

The class org.hibernate.validator.internal.metadata.provider.TypeAnnotationAwareMetaDataProvider logs the following at warning level:
Code:
HV000188: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported


Now this could have been because there's no EL (which was the case at first), but that message is actually logged while doing type introspection. More specifically, TypeAnnotationAwareMetaDataProvider.getTypeParameter shows this warning whenever there's a non-Map attribute using generics with more than one type. So I see two issues:

  1. The message is probably not what is intended for that situation
  2. A warning message is probably overkill in that case, if required at all

Am I missing something or should I open a defect?


Thanks,


Top
 Profile  
 
 Post subject: Re: [Validator] HV000188 in TypeAnnotationAwareMetaDataProvider
PostPosted: Fri Nov 28, 2014 6:49 pm 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi Simon,

Thanks for getting in touch!

That looks like a bug indeed, the logger method is the right one, but its error message is wrong. My bet is it was a merging glitch as the same message is given for #184 (where it's right) and #188 (where it's wrong). Could you open an issue in our tracker (https://hibernate.atlassian.net/browse/HV)? Btw. I agree, logging that warning here seems a bit over the top, likely it should be removed.

Thanks,

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.