« Return to Thread: bean validator issue in jdk 6

Re: bean validator issue in jdk 6

by Gunnar Hillert :: Rate this Message:

Reply to Author | View in Thread

Hi Andrea,

Thanks for your answer! Is this issue somewhere in Jira? (I just want to
make sure this gets resolved for the next version :-)

Regards,

Gunnar

Andrea Nasato wrote:

> On 2/27/07, Gunnar Hillert <gunnar@...> wrote:
>> Hi,
>>
>> I came across the same issue. The error is even worse if you try to use
>> the XML schema configuration (Thought it was a configuration error).
>> Switched back to Java 5 and everything works fine. (??)
>>
>> Regards,
> Hi Gunnar,
>
> I solved my problem updating commons-lang to commons-lang-2.3 :
>
> The validation framework declares a dependency to commons-lang-2.1
> which hasn't got SystemUtils.IS_JAVA_1_6.
>
> Before loading AnnotationValidator, the ValidatorNamespaceHandler
> checks if the vm has annotations enabled, using
> LibraryUtils.JDK_ANNOTATIONS_SUPPORTED, which is:
> SystemUtils.IS_JAVA_1_5 || SystemUtils.IS_JAVA_1_6;
>
> In java 5 the first part of the boolean expression returns true and
> the second isn't evaluated ---> No problems
>
> In java 6 the first part returns false so the second is evaluated --->
> using commons-lang-2.3 solves the problem
>
> Hope this helps
>
> bye
> Andrea
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: bean validator issue in jdk 6