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] Closed: (ABDERA-30) Entry.clone does not clone the content type
Date Thu, 15 Mar 2007 04:53:10 GMT

     [ 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.


Mime
View raw message