<div dir="ltr">I am trying to learn the Streams package of the JDK, and successfully built the jdk.<div><div>I set the IDE (IntelliJ Community Edition) to use the JDK.</div><div>I put some dummy output statements in a stream method, peek(), and built the JDK again.<br><div>I was stepping through a toy Java program that uses it, but I see that when it gets to the core/base libraries, it does not use the Java code, but rather, the decompiled code.</div><div>How to get the IDE to use the Java code?</div><div>Here is the code I changed in <span style="font-family:"JetBrains Mono",monospace;font-size:9.8pt;color:rgb(8,8,8)">java.util.stream.</span><span style="font-family:"JetBrains Mono",monospace;font-size:9.8pt;color:rgb(8,8,8)">ReferencePipeline.java</span></div><div><div style="color:rgb(8,8,8)"><pre style="font-family:"JetBrains Mono",monospace;font-size:9.8pt"><span style="color:rgb(0,51,179)">public final </span>Stream<P_OUT> peek(Consumer<? <span style="color:rgb(0,51,179)">super </span>P_OUT> action) {<br>    Objects.requireNonNull(action);<br>    System.out.println(<span style="color:rgb(6,125,23)">"=========anil 3 ================"</span>);<br>    <span style="color:rgb(0,51,179)">return new </span>StatelessOp<>(<span style="color:rgb(0,51,179)">this</span>, StreamShape.REFERENCE,<br>            <span style="color:rgb(23,80,235)">0</span>) {<br>        @Override<br>        Sink<P_OUT> opWrapSink(<span style="color:rgb(0,51,179)">int </span>flags, Sink<P_OUT> sink) {<br>            <span style="color:rgb(0,51,179)">return new </span>Sink.ChainedReference<>(sink) {<br>                @Override<br>                <span style="color:rgb(0,51,179)">public void </span>accept(P_OUT u) {<br>                    System.out.println(<span style="color:rgb(6,125,23)">"=========anil 0 ================"</span>);<br>                    action.accept(u);<br>                    System.out.println(<span style="color:rgb(6,125,23)">"=========anil 1 ================"</span>);<br>                    downstream.accept(u);<br>                    System.out.println(<span style="color:rgb(6,125,23)">"=========anil 2 ================"</span>);<br>                }<br>            };<br>        }<br>    };<br>}<br></pre></div></div><div>thanks,</div><div>Anil</div><div><br></div><div> </div></div></div></div>