abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: svn commit: r597201 - /incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/ContentProviderTest.java
Date Wed, 21 Nov 2007 20:36:45 GMT
It's not so much generics in general but the inconsistent way the
various compilers handle them. I don't think any of the java 5 compilers
I've come across handle them consistently.

- James

dandiep@apache.org wrote:
> Author: dandiep
> Date: Wed Nov 21 12:30:51 2007
> New Revision: 597201
> 
> URL: http://svn.apache.org/viewvc?rev=597201&view=rev
> Log:
> Fix "org.apache.abdera.writer.Writer cannot be dereferenced" problem. *Dan curses Java
generics*
> 
> Modified:
>     incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/ContentProviderTest.java
> 
> Modified: incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/ContentProviderTest.java
> URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/ContentProviderTest.java?rev=597201&r1=597200&r2=597201&view=diff
> ==============================================================================
> --- incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/ContentProviderTest.java
(original)
> +++ incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/ContentProviderTest.java
Wed Nov 21 12:30:51 2007
> @@ -29,6 +29,8 @@
>  import org.apache.abdera.protocol.server.impl.SingletonProviderManager;
>  import org.apache.abdera.protocol.server.impl.WorkspaceProvider;
>  import org.apache.abdera.protocol.server.servlet.AbderaServlet;
> +import org.apache.abdera.writer.Writer;
> +import org.apache.abdera.writer.WriterFactory;
>  import org.mortbay.jetty.Server;
>  import org.mortbay.jetty.servlet.Context;
>  import org.mortbay.jetty.servlet.ServletHolder;
> @@ -118,7 +120,9 @@
>    }
>  
>    protected void prettyPrint(Abdera abdera, Base doc) throws IOException {
> -    abdera.getWriterFactory().getWriter("prettyxml").writeTo(doc, System.out);
> +    WriterFactory factory = abdera.getWriterFactory();
> +    Writer writer = factory.getWriter("prettyxml");
> +    writer.writeTo(doc, System.out);
>      System.out.println();
>    }
>  
> 
> 
> 

Mime
View raw message