Changeset 406 for trunk/openjdk/jdk/src/windows/classes
- Timestamp:
- Dec 21, 2012, 10:37:13 AM (13 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 4 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
Note:
See TracChangeset
for help on using the changeset viewer.