@@ -1623,9 +1623,9 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1623
1623
char userhome [EsMaxPath ];
1624
1624
wchar_t unicodeTemp [EsMaxPath ];
1625
1625
int i = 0 ;
1626
- #if JAVA_SPEC_VERSION < 11
1626
+ #if !defined( OPENJ9_BUILD )
1627
1627
char userdir [EsMaxPath ];
1628
- #endif /* JAVA_SPEC_VERSION < 11 */
1628
+ #endif /* !defined(OPENJ9_BUILD) */
1629
1629
wchar_t unicodeHome [EsMaxPath ];
1630
1630
HANDLE process = 0 ;
1631
1631
HANDLE token = 0 ;
@@ -1634,7 +1634,7 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1634
1634
1635
1635
/* Hard coded file/path separators and other values */
1636
1636
1637
- #if JAVA_SPEC_VERSION < 11
1637
+ #if !defined( OPENJ9_BUILD )
1638
1638
strings [propIndex ++ ] = "file.separator" ;
1639
1639
strings [propIndex ++ ] = "\\" ;
1640
1640
@@ -1644,7 +1644,7 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1644
1644
/* Get the Temp Dir name */
1645
1645
strings [propIndex ++ ] = "java.io.tmpdir" ;
1646
1646
strings [propIndex ++ ] = getTmpDir (env , & tempdir );
1647
- #endif /* JAVA_SPEC_VERSION < 11 */
1647
+ #endif /* !defined(OPENJ9_BUILD) */
1648
1648
1649
1649
strings [propIndex ++ ] = "user.home" ;
1650
1650
i = propIndex ;
@@ -1711,7 +1711,7 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1711
1711
}
1712
1712
}
1713
1713
1714
- #if JAVA_SPEC_VERSION < 11
1714
+ #if !defined( OPENJ9_BUILD )
1715
1715
/* Get the directory where the executable was started */
1716
1716
strings [propIndex ++ ] = "user.dir" ;
1717
1717
if (0 == GetCurrentDirectoryW (EsMaxPath , unicodeTemp )) {
@@ -1720,7 +1720,7 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1720
1720
convertToUTF8 (PORTLIB , unicodeTemp , userdir , EsMaxPath );
1721
1721
strings [propIndex ++ ] = userdir ;
1722
1722
}
1723
- #endif /* JAVA_SPEC_VERSION < 11 */
1723
+ #endif /* !defined(OPENJ9_BUILD) */
1724
1724
1725
1725
result = createSystemPropertyList (env , strings , propIndex );
1726
1726
j9mem_free_memory (tempdir );
@@ -1737,9 +1737,9 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1737
1737
char * charResult = NULL ;
1738
1738
char * envSpace = NULL ;
1739
1739
jobject plist = NULL ;
1740
- #if JAVA_SPEC_VERSION < 11
1740
+ #if !defined( OPENJ9_BUILD )
1741
1741
char userdir [EsMaxPath ] = {0 };
1742
- #endif /* JAVA_SPEC_VERSION < 11 */
1742
+ #endif /* !defined(OPENJ9_BUILD) */
1743
1743
char home [EsMaxPath ] = {0 };
1744
1744
char * homeAlloc = NULL ;
1745
1745
J9VMThread * currentThread = (J9VMThread * )env ;
@@ -1758,7 +1758,7 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1758
1758
}
1759
1759
#endif /* defined(J9ZOS390) */
1760
1760
1761
- #if JAVA_SPEC_VERSION < 11
1761
+ #if !defined( OPENJ9_BUILD )
1762
1762
strings [propIndex ++ ] = "file.separator" ;
1763
1763
strings [propIndex ++ ] = "/" ;
1764
1764
@@ -1773,7 +1773,7 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1773
1773
} else {
1774
1774
strings [propIndex ++ ] = charResult ;
1775
1775
}
1776
- #endif /* JAVA_SPEC_VERSION < 11 */
1776
+ #endif /* !defined(OPENJ9_BUILD) */
1777
1777
1778
1778
strings [propIndex ++ ] = "user.home" ;
1779
1779
charResult = NULL ;
@@ -1844,11 +1844,11 @@ getPlatformPropertyList(JNIEnv *env, const char *strings[], int propIndex)
1844
1844
propIndex += 1 ;
1845
1845
}
1846
1846
1847
- #if JAVA_SPEC_VERSION < 11
1847
+ #if !defined( OPENJ9_BUILD )
1848
1848
/* Get the Temp Dir name */
1849
1849
strings [propIndex ++ ] = "java.io.tmpdir" ;
1850
1850
strings [propIndex ++ ] = getTmpDir (env , & envSpace );
1851
- #endif /* JAVA_SPEC_VERSION < 11 */
1851
+ #endif /* !defined(OPENJ9_BUILD) */
1852
1852
1853
1853
plist = createSystemPropertyList (env , strings , propIndex );
1854
1854
if (NULL != envSpace ) {
@@ -1876,12 +1876,12 @@ getSystemPropertyList(JNIEnv *env)
1876
1876
int propIndex = 0 ;
1877
1877
jobject propertyList = NULL ;
1878
1878
#define PROPERTY_COUNT 137
1879
- #if JAVA_SPEC_VERSION < 11
1879
+ #if !defined( OPENJ9_BUILD )
1880
1880
char * propertyKey = NULL ;
1881
1881
const char * language = NULL ;
1882
1882
const char * region = NULL ;
1883
1883
const char * variant = NULL ;
1884
- #endif /* JAVA_SPEC_VERSION < 11 */
1884
+ #endif /* !defined(OPENJ9_BUILD) */
1885
1885
const char * strings [PROPERTY_COUNT ] = {0 };
1886
1886
#define USERNAME_LENGTH 128
1887
1887
char username [USERNAME_LENGTH ] = {0 };
@@ -1955,7 +1955,7 @@ getSystemPropertyList(JNIEnv *env)
1955
1955
strings [propIndex ++ ] = "big" ;
1956
1956
#endif /* defined(J9VM_ENV_LITTLE_ENDIAN) */
1957
1957
1958
- #if JAVA_SPEC_VERSION < 11
1958
+ #if !defined( OPENJ9_BUILD )
1959
1959
strings [propIndex ++ ] = "sun.cpu.endian" ;
1960
1960
#if defined(J9VM_ENV_LITTLE_ENDIAN )
1961
1961
strings [propIndex ++ ] = "little" ;
@@ -1990,7 +1990,7 @@ getSystemPropertyList(JNIEnv *env)
1990
1990
/* Get the timezone */
1991
1991
strings [propIndex ++ ] = "user.timezone" ;
1992
1992
strings [propIndex ++ ] = "" ;
1993
- #endif /* JAVA_SPEC_VERSION < 11 */
1993
+ #endif /* !defined(OPENJ9_BUILD) */
1994
1994
1995
1995
/* Get the User name */
1996
1996
strings [propIndex ++ ] = "user.name" ;
0 commit comments