StreamInterceptor sample failed
-------------------------------

                 Key: CXF-728
                 URL: https://issues.apache.org/jira/browse/CXF-728
             Project: CXF
          Issue Type: Bug
            Reporter: Bozhong Lin
            Assignee: Freeman Fang
             Fix For: 2.0


with following error message, I believe this is related to Dan Diephouse's low 
level I/O refactoring:

compile:
    [javac] Compiling 17 source files to 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/build/classes
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:29:
 cannot find symbol
    [javac] symbol  : class AbstractCachedOutputStream
    [javac] location: package org.apache.cxf.io
    [javac] import org.apache.cxf.io.AbstractCachedOutputStream;
    [javac]                          ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:86:
 cannot find symbol
    [javac] symbol  : class AbstractCachedOutputStream
    [javac] location: class demo.stream.interceptor.StreamInterceptor
    [javac]     private class CachedStream extends AbstractCachedOutputStream {
    [javac]                                        ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:52:
 <T>setContent(java.lang.Class<T>,java.lang.Object) in 
org.apache.cxf.message.Message cannot be applied to 
(java.lang.Class<java.io.OutputStream>,demo.stream.interceptor.StreamInterceptor.CachedStream)
    [javac]             message.setContent(OutputStream.class, cs);
    [javac]                    ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:57:
 cannot find symbol
    [javac] symbol  : method flush()
    [javac] location: class 
demo.stream.interceptor.StreamInterceptor.CachedStream
    [javac]                 cs.flush();
    [javac]                   ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:58:
 cannot find symbol
    [javac] symbol  : class AbstractCachedOutputStream
    [javac] location: class demo.stream.interceptor.StreamInterceptor
    [javac]                 AbstractCachedOutputStream csnew = 
(AbstractCachedOutputStream) message
    [javac]                 ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:58:
 cannot find symbol
    [javac] symbol  : class AbstractCachedOutputStream
    [javac] location: class demo.stream.interceptor.StreamInterceptor
    [javac]                 AbstractCachedOutputStream csnew = 
(AbstractCachedOutputStream) message
    [javac]                                                     ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:61:
 cannot find symbol
    [javac] symbol  : variable AbstractCachedOutputStream
    [javac] location: class demo.stream.interceptor.StreamInterceptor
    [javac]                 
AbstractCachedOutputStream.copyStream(csnew.getInputStream(), zipOutput, 1024);
    [javac]                 ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:63:
 cannot find symbol
    [javac] symbol  : method close()
    [javac] location: class 
demo.stream.interceptor.StreamInterceptor.CachedStream
    [javac]                 cs.close();
    [javac]                   ^
    [javac] 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:92:
 cannot find symbol
    [javac] symbol  : variable currentStream
    [javac] location: class 
demo.stream.interceptor.StreamInterceptor.CachedStream
    [javac]             currentStream.flush();
    [javac]             ^
    [javac] Note: 
/local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java
 uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 9 errors

BUILD FAILED


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to