You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "James M Snell (JIRA)" <ji...@apache.org> on 2007/03/15 05:53:10 UTC

[jira] Closed: (ABDERA-30) Entry.clone does not clone the content type

     [ https://issues.apache.org/jira/browse/ABDERA-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell closed ABDERA-30.
-------------------------------


> Entry.clone does not clone the content type
> -------------------------------------------
>
>                 Key: ABDERA-30
>                 URL: https://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.
-
You can reply to this email to add a comment to the issue online.