Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void main(String[] args) throws Exception {
ProcessResults processResults =
ProcessCommunicator
.executeChildProcess(Consumer.class, new String[0]);
if (!"Hello".equals(processResults.getStdErr())) {
if (!"Hello".equals(processResults.getStdOut())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who or what prompted this change ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The child process is started with -Djava.security.manager=allow (after the other PR) and a warning will be printed to stderr. Therefore I move the message to stdout.

throw new RuntimeException("transfer of remote object failed");
}
System.out.println("ok");
Expand All @@ -69,7 +69,7 @@ public static void main(String[] args) throws Exception {
DataFlavor dataFlavor = new DataFlavor(DataFlavor.javaRemoteObjectMimeType +
";class=Hello" );
Object data = clipboard.getData(dataFlavor);
System.err.print(((Hello) data).sayHello());
System.out.print(((Hello) data).sayHello());
}

}
Expand Down