maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <rfscho...@apache.org>
Subject Re: OS Family DOS not windows with Java 8
Date Sun, 05 Apr 2015 16:44:38 GMT
Hi,

I've seen similar issues with Collections like this. AFAIK the order up  
until JDK7 was based on the hash, since JDK8 it's the add-order. In some  
cases these Collections worked as expected, but that was more coincidence.  
As you already discribed: there seems to be a preferred order for the  
families.
I suggest to create an issue for it.

thanks,
Robert

Op Fri, 03 Apr 2015 18:24:00 +0200 schreef Bernd Eckenfels  
<ecki@zusammenkunft.net>:

> Hello,
>
> did you notice, that with Java 8 all Maven versions will print Dos
> instead of Windows as the OS Familiy of an (german) Win7 (x64) system:
>
> mvn -v
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T18:29:23+01:00)
> Maven home: C:\devenv\apache-maven-3.2.5
> Java version: 1.8.0_40, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_40\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
>
> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da;
> 2013-02-19 14:51:28+0100)
> Maven home: C:\devenv\apache-maven-3.0.5 Java
> version: 1.8.0_40, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_40\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
>
> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da;
> 2013-02-19 14:51:28+0100)
> Maven home: C:\devenv\apache-maven-3.0.5
> Java version: 1.7.0_72, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_72\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>
>
> I think the problem here is, that the sequence has changed (and Maven
> never bothered all families which apply).
>
> I could imagine two (or do nothing as the third) options here, first
> would be to print all families which apply, not only the "first" one
> and secondly using a different data structure to hold the list of
> families to make them sorted (again).
>
> https://github.com/sonatype/plexus-utils/blob/f2beca21c75084986b49b3ab7b5f0f988021dcea/src/main/java/org/codehaus/plexus/util/Os.java#L392
>
> Gruss
> Bernd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message