I'm converting my project to use 2.0m6 and restlet gwt seems to be having 
trouble parsing the Date header in the response from the server. After some 
poking around, I traced the problem to this line in the translated javascript: 

parser = ($clinit_502() , $DateTimeFormat_0(new DateTimeFormat(), null, 
defaultDateTimeConstants));

The null argument passed to DateTimeFormat_0 is the problem. It should be a 
parameter specifying the date format. 

I believe the problem is in the DateUtils.java source file in the parse method 
that has 2 parameters. There is a for loop that loops through each specified 
date format. The format parameter is assigned inside a [ifndef gwt] annotation 
block. This would cause the call to DateTimeFormat.getFormat inside an [ifdef 
gwt] annotation section at line 235 to always be called with an input parameter 
that is null and would seem to be why the javascript I showed above is 
generated. This is what I would guess is the cause of what I'm seeing. Anyone 
else had the problem? Am I correct that this is a bug?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2425666

Reply via email to