You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/09/20 18:06:32 UTC

[jira] Created: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

[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


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.


[jira] Updated: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov updated HARMONY-4831:
-------------------------------------

    Priority: Critical  (was: Major)

This issue is also a blocker for HARMONY-4816, HARMONY-4817, HARMONY-4782.

Raising priority to Critical.


> [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.


[jira] Closed: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov closed HARMONY-4831.
------------------------------------


Alexey, thank you very much, the patch is fine!

All the blocked issues are now resolved.

Closing.


> [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
>         Environment: Windows
>            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.


[jira] Commented: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529381 ] 

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

I suppose that to fix this issue we should have the source structure of working_jdktools/modules/samsa/src/main/native/samsa changed to something similar to the one in working_classlib/modules/luni/src/main/native/launcher.


> [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.


[jira] Commented: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529326 ] 

Alexey Petrenko commented on HARMONY-4831:
------------------------------------------

Could you please provide a reproducer?

> [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
>
> 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.


[jira] Resolved: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-4831.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [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
>         Environment: Windows
>            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.


[jira] Assigned: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-4831:
----------------------------------------

    Assignee: Alexey Petrenko

> [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
>
> 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.


[jira] Updated: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov updated HARMONY-4831:
-------------------------------------

    Environment: Windows

> [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
>         Environment: Windows
>            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.


[jira] Commented: (HARMONY-4831) [tools] jdk/bin/javaw.exe must be a windows application

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ 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.