Changeset 263 for trunk/openjdk/jdk/src/windows/classes
- Timestamp:
- Feb 21, 2011, 12:02:20 AM (15 years ago)
- Location:
- trunk/openjdk/jdk/src/windows/classes
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/windows/classes/com/sun/tools/jdi/SharedMemoryAttachingConnector.java
r2 r263 51 51 transport = new Transport() { 52 52 public String name() { 53 if (System.getProperty("os.name").startsWith("OS/2")) 54 return "jdtshmem"; 53 55 return "dt_shmem"; // for compatability reasons 54 56 } -
trunk/openjdk/jdk/src/windows/classes/com/sun/tools/jdi/SharedMemoryListeningConnector.java
r2 r263 50 50 transport = new Transport() { 51 51 public String name() { 52 if (System.getProperty("os.name").startsWith("OS/2")) 53 return "jdtshmem"; 52 54 return "dt_shmem"; // compatability 53 55 } -
trunk/openjdk/jdk/src/windows/classes/com/sun/tools/jdi/SharedMemoryTransportService.java
r2 r263 67 67 68 68 SharedMemoryTransportService() { 69 System.loadLibrary("dt_shmem"); 69 final String shmemLib = 70 System.getProperty("os.name").startsWith("OS/2") ? "jdtshmem" 71 : "dt_shmem"; 72 System.loadLibrary(shmemLib); 70 73 initialize(); 71 74 } -
trunk/openjdk/jdk/src/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java
r2 r263 34 34 import java.util.*; 35 35 import sun.security.action.LoadLibraryAction; 36 import sun.security.action.GetPropertyAction; 36 37 37 38 import static sun.awt.shell.Win32ShellFolder2.*; … … 52 53 static { 53 54 // Load library here 54 AccessController.doPrivileged(new LoadLibraryAction("awt")); 55 boolean isOS2 = AccessController.doPrivileged(new GetPropertyAction("os.name")).startsWith("OS/2"); 56 AccessController.doPrivileged(new LoadLibraryAction(isOS2 ? "jawtos2" : "awt")); 55 57 } 56 58 -
trunk/openjdk/jdk/src/windows/classes/sun/awt/windows/WToolkit.java
r2 r263 87 87 public static void loadLibraries() { 88 88 if (!loaded) { 89 boolean isOS2 = java.security.AccessController.doPrivileged( 90 new sun.security.action.GetPropertyAction("os.name")). 91 startsWith("OS/2"); 89 92 java.security.AccessController.doPrivileged( 90 new sun.security.action.LoadLibraryAction("awt")); 93 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 94 : "awt")); 91 95 loaded = true; 92 96 } -
trunk/openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java
r2 r263 160 160 161 161 static { 162 boolean isOS2 = java.security.AccessController.doPrivileged( 163 new sun.security.action.GetPropertyAction("os.name")). 164 startsWith("OS/2"); 162 165 java.security.AccessController.doPrivileged( 163 new sun.security.action.LoadLibraryAction("net")); 166 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 167 : "net")); 164 168 init0(); 165 169 -
trunk/openjdk/jdk/src/windows/classes/sun/print/Win32PrintServiceLookup.java
r2 r263 56 56 57 57 static { 58 boolean isOS2 = java.security.AccessController.doPrivileged( 59 new sun.security.action.GetPropertyAction("os.name")). 60 startsWith("OS/2"); 58 61 java.security.AccessController.doPrivileged( 59 new sun.security.action.LoadLibraryAction("awt")); 62 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 63 : "awt")); 60 64 } 61 65 -
trunk/openjdk/jdk/src/windows/classes/sun/security/mscapi/SunMSCAPI.java
r203 r263 52 52 public Object run() { 53 53 if (System.getProperty("os.name").startsWith("OS/2")) { 54 System.loadLibrary(" smscapi");54 System.loadLibrary("jsmscapi"); 55 55 } else { 56 56 System.loadLibrary("sunmscapi");
Note:
See TracChangeset
for help on using the changeset viewer.