Stream API - how to build -

Juan Jose Fumero juan.fumero at ed.ac.uk
Tue Feb 4 08:16:18 PST 2014


Hello,
   I am trying to build JDK 8 and Stream API. Following the instructions 
in [1], first I download the jdk8 and apply the patch with the patch 
command in Linux. The patch was built with webrev and when I try to 
apply it, It fails so I decided to do manually.  But, when the jdk is 
compiling, I get the following error:

...
## Starting jdk
Compiling 9420 files for BUILD_JDK
/home/juanjo/phd/jdk8Sumatra/jdk/src/share/classes/java/util/stream/Streams.java:309: 
error: cannot find symbol
             implements StreamBuilder<T> {
                        ^
   symbol:   class StreamBuilder
   location: class Streams
/home/juanjo/phd/jdk8Sumatra/jdk/src/share/classes/java/util/stream/Streams.java:355: 
error: cannot find symbol
         public StreamBuilder<T> add(T t) {
                ^
   symbol:   class StreamBuilder
   location: class StreamBuilderImpl<T>
   where T is a type-variable:
...


I guess I am doing something wrong.  Also I tried to download the 
sumatra code but If I am not wrong, the Stream API in java.util is not 
there [2]. I have seen the Aparapi project as well but I do not see 
where they use the stream interface.


I would like to work with the Stream API and Graal with the aim to 
connect our backend (source to source) for OpenCL. Our interest is to 
work the interface in java.util.stream of Java 8 and provide some 
optimisations and transformations in our backend based on this interface.

///
//
//[1] / 
///https://wiki.openjdk.java.net/display/Sumatra/AMD+Sumatra+prototype%3A+APU+meets+Stream+API//
//[2] / 
///https://wiki.openjdk.java.net/display/Sumatra/Sumatra+Repository+Info/// 
////

Thanks so much
Juanjo

-- 
PhD Candidate
University of Edinburgh

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://mail.openjdk.java.net/pipermail/sumatra-dev/attachments/20140204/cbcd3805/attachment.ksh 


More information about the sumatra-dev mailing list