Changeset 406 for trunk/openjdk/jdk/src/windows
- Timestamp:
- Dec 21, 2012, 10:37:13 AM (13 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk
- Property svn:mergeinfo changed
/branches/vendor/oracle/openjdk6/b27 (added) merged: 405 /branches/vendor/oracle/openjdk6/current merged: 404
- Property svn:mergeinfo changed
-
trunk/openjdk/jdk/src/windows/classes/java/io/Win32FileSystem.java
r278 r406 1 1 /* 2 * Copyright (c) 1998, 20 05, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 511 511 /* -- File operations -- */ 512 512 513 public native boolean createFileExclusively(String path )513 public native boolean createFileExclusively(String path, boolean restrictive) 514 514 throws IOException; 515 515 public boolean delete(File f) { -
trunk/openjdk/jdk/src/windows/classes/java/io/WinNTFileSystem.java
r278 r406 1 1 /* 2 * Copyright (c) 2001, 20 06, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 62 62 /* -- File operations -- */ 63 63 64 public native boolean createFileExclusively(String path )64 public native boolean createFileExclusively(String path, boolean restrictive) 65 65 throws IOException; 66 66 protected native boolean delete0(File f); -
trunk/openjdk/jdk/src/windows/classes/sun/awt/windows/WPopupMenuPeer.java
r278 r406 27 27 import java.awt.*; 28 28 import java.awt.peer.*; 29 import java.lang.reflect.Field;30 29 31 import sun.awt. SunToolkit;30 import sun.awt.AWTAccessor; 32 31 33 32 public class WPopupMenuPeer extends WMenuPeer implements PopupMenuPeer { … … 35 34 // because this method should return null for the TrayIcon 36 35 // popup regardless of that whether it has parent or not. 37 private static Field f_parent;38 private static Field f_isTrayIconPopup;39 40 static {41 f_parent = SunToolkit.getField(MenuComponent.class, "parent");42 f_isTrayIconPopup = SunToolkit.getField(PopupMenu.class, "isTrayIconPopup");43 }44 36 45 37 public WPopupMenuPeer(PopupMenu target) { … … 47 39 MenuContainer parent = null; 48 40 boolean isTrayIconPopup = false; 49 try { 50 isTrayIconPopup = ((Boolean)f_isTrayIconPopup.get(target)).booleanValue(); 51 if (isTrayIconPopup) { 52 parent = (MenuContainer)f_parent.get(target); 53 } else { 54 parent = target.getParent(); 55 } 56 } catch (IllegalAccessException iae) { 57 iae.printStackTrace(); 58 return; 41 isTrayIconPopup = AWTAccessor.getPopupMenuAccessor().isTrayIconPopup(target); 42 if (isTrayIconPopup) { 43 parent = AWTAccessor.getMenuComponentAccessor().getParent(target); 44 } else { 45 parent = target.getParent(); 59 46 } 60 47 -
trunk/openjdk/jdk/src/windows/native/java/io/Win32FileSystem_md.c
r330 r406 1 1 /* 2 * Copyright (c) 1998, 20 06, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 274 274 JNIEXPORT jboolean JNICALL 275 275 Java_java_io_Win32FileSystem_createFileExclusively(JNIEnv *env, jclass cls, 276 jstring pathname) 276 jstring pathname, 277 jboolean restrictive) 277 278 { 278 279 jboolean rv = JNI_FALSE; -
trunk/openjdk/jdk/src/windows/native/java/io/WinNTFileSystem_md.c
r330 r406 1 1 /* 2 * Copyright (c) 2001, 20 06, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 366 366 JNIEXPORT jboolean JNICALL 367 367 Java_java_io_WinNTFileSystem_createFileExclusively(JNIEnv *env, jclass cls, 368 jstring path) 368 jstring path, 369 jboolean restrictive) 369 370 { 370 371 HANDLE h = NULL; -
trunk/openjdk/jdk/src/windows/native/java/net/net_util_md.c
r333 r406 1 1 /* 2 * Copyright (c) 1997, 20 07, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 133 133 134 134 void initLocalAddrTable () {} 135 void parseExclusiveBindProperty (JNIEnv *env) {} 135 136 136 137 /* -
trunk/openjdk/jdk/src/windows/native/sun/windows/awt_Dialog.cpp
r309 r406 429 429 JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2); 430 430 431 jlongArray windows = (jlongArray)(env->CallStaticObjectMethod(AwtWindow::wwindowPeerCls, 432 AwtWindow::getActiveWindowsMID)); 431 jclass wwindowPeerCls = env->FindClass("sun/awt/windows/WWindowPeer"); 432 jmethodID getActiveWindowsMID = env->GetStaticMethodID(wwindowPeerCls, 433 "getActiveWindowHandles", "()[J"); 434 DASSERT(getActiveWindowsMID != NULL); 435 jlongArray windows = (jlongArray)(env->CallStaticObjectMethod(wwindowPeerCls, 436 getActiveWindowsMID)); 433 437 if (windows == NULL) { 434 438 return; -
trunk/openjdk/jdk/src/windows/native/sun/windows/awt_Window.cpp
r309 r406 1 1 /* 2 * Copyright (c) 1996, 20 07, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 125 125 jfieldID AwtWindow::locationByPlatformID; 126 126 jfieldID AwtWindow::autoRequestFocusID; 127 128 jclass AwtWindow::wwindowPeerCls;129 jmethodID AwtWindow::getActiveWindowsMID;130 127 131 128 jfieldID AwtWindow::sysXID; … … 2169 2166 AwtWindow::sysHID = env->GetFieldID(cls, "sysH", "I"); 2170 2167 2171 AwtWindow::wwindowPeerCls = cls;2172 AwtWindow::getActiveWindowsMID =2173 env->GetStaticMethodID(cls, "getActiveWindowHandles", "()[J");2174 DASSERT(AwtWindow::getActiveWindowsMID != NULL);2175 2176 2168 CATCH_BAD_ALLOC; 2177 2169 } -
trunk/openjdk/jdk/src/windows/native/sun/windows/awt_Window.h
r309 r406 57 57 static jfieldID screenID; /* screen number passed over from WindowPeer */ 58 58 static jfieldID autoRequestFocusID; 59 60 /* WWindowPeer class */61 static jclass wwindowPeerCls;62 /* long[] getActiveWindowHandles() method in WWindowPeer */63 static jmethodID getActiveWindowsMID;64 59 65 60 // The coordinates at the peer.
Note:
See TracChangeset
for help on using the changeset viewer.