Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 959043

Pages: 1
Anonymous
Unregistered




wrong result
      #15544 - 02/15/05 01:20 AM

When I tried run the TestParameter class, print below;

testParam1: 1
testParam2: 2
testParam3: 3
testParam4: 4

this is OK? Isn't a problem in GenericClassAttributeValidator class?


Post Extras: Print Post   Remind Me!   Notify Moderator  
SFR
stranger


Reged: 06/14/04
Posts: 6
Re: wrong result [Re: Anonymous]
      #19522 - 07/01/05 06:15 AM

Hav a look in the TestParameter.java and comment out one of the following lines

param.setTestParam1( new Integer( 1 ) );
param.setTestParam2( new Integer( 2 ) );
param.setTestParam4( new Integer( 4 ) );

Then ther will be an error!!! Because this params are checked if the y are null and if so this is an error, cause they are not optional.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 4988

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5