DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35684>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35684





------- Additional Comments From [EMAIL PROTECTED]  2006-01-31 10:22 -------
(In reply to comment #1)
> Sorry about the late reaction...
> If you can supply a patch I will apply it.


In the method parseDate of MetaFeedParser.java enhance the try/catch block.
Like this:

private static boolean parseDate( String name,
                                      Namespace ns,
                                      MetaFeedParserListener listener,
                                      FeedParserState state,
                                      boolean ISO8601 ) {

        // Buzilla Bug 35684            
        try {                   
                //ok.  Support dc:date
                String v = state.current.getChildText( name, ns );

                if ( v != null ) {
                        
                Date d = null;

                if ( ISO8601 ) {
                    d = ISO8601DateParser.parse( v );
                } else {
                    d = RFC822DateParser.parse( v );
                }

                listener.onCreated( state, d );
                listener.onCreatedEnd();

                return true;                
                }
        //if it fails to parse we can just move on.
        } catch ( Throwable t ) { }
        return false;
    }
 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to