abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James M Snell (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (ABDERA-30) Entry.clone does not clone the content type
Date Tue, 19 Dec 2006 01:47:22 GMT
     [ http://issues.apache.org/jira/browse/ABDERA-30?page=all ]

James M Snell reassigned ABDERA-30:
-----------------------------------

    Assignee: James M Snell

> Entry.clone does not clone the content type
> -------------------------------------------
>
>                 Key: ABDERA-30
>                 URL: http://issues.apache.org/jira/browse/ABDERA-30
>             Project: Abdera
>          Issue Type: Bug
>         Environment: All
>            Reporter: James M Snell
>         Assigned To: James M Snell
>
>    String s = "<entry xmlns='http://www.w3.org/2005/Atom'><content type='image/jpeg'>test</content></entry>";
>    ByteArrayInputStream in = new ByteArrayInputStream(s.getBytes());
>    
>    Abdera abdera = new Abdera();
>    Parser parser = abdera.getParser();
>    Document doc = parser.parse(in);
>    
>    Entry entry = (Entry)(doc.getRoot().clone());
>    
>    System.out.println(entry.getContentType());
> Should return "MEDIA", returns "TEXT" instead

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message