harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application
Date Fri, 21 Sep 2007 10:45:50 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529374
] 

Vasily Zakharov commented on HARMONY-4831:
------------------------------------------

Alexey,

No, I can't provide a real reproducer now. The issue was detected while running EUT, and the
configurations the bug appears in are rather complex. However, the fact that everything works
fine with jdk/jre/bin/javaw.exe and doesn't work with jdk/bin/javaw.exe moves us to look for
the differences between those two launchers, and between java.exe and javaw.exe, and wrong
application type is the first visible thing here.

As an indicator usable while creating and testing a patch, I could propose the following scenario.

Use this simple class:

public class Test {
    public static void main(String argv[]) {
        System.out.println("SUCCESS");
    }
}

Run it as:

java Test > log

And then check if log file exists and contains the word SUCCESS (I mark these cases "+" below)
or not ("-").

Make sure to remove the log file before each run!

Here's what we have on RI:

+ jdk/bin/java
- jdk/bin/javaw
+ jdk/jre/bin/java
- jdk/jre/bin/javaw

And here's what we have on Harmony:

+ jdk/bin/java
+ jdk/bin/javaw
+ jdk/jre/bin/java
- jdk/jre/bin/javaw

Note that on RI both javaw launchers are pure windows applications, without console at all
- their output streams can't be redirected, log file is not even created. On Harmony this
is only true for JRE launcher, not for JDK one.

Note that the problem is clearly launcher specific, as it appears the same on both DRLVM and
IBM VME.


> [tools] jdk/bin/javaw.exe must be a windows application
> -------------------------------------------------------
>
>                 Key: HARMONY-4831
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4831
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>            Priority: Critical
>
> Patch to HARMONY-4420 introduced new jdk/bin/javaw.exe file, that is identical to jdk/bin/java.exe
file.
> However, javaw.exe must not be a copy of console application java.exe, it must be a windows
application, much like jdk/jre/bin/javaw.exe, which is much different from jdk/jre/bin/java.exe.
Console applications handle streams differently than windows ones, and these sometimes causes
errors when trying to redirect the streams.
> This issue is a blocker for HARMONY-4789.

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


Mime
View raw message