From e3ce03230a650f6350ff13edf64c43a74b3bd27d Mon Sep 17 00:00:00 2001 From: Sean Mullan Date: Wed, 22 Feb 2012 15:38:24 -0500 Subject: [PATCH 01/46] 7145239: Finetune package definition restriction Reviewed-by: hawtin --- jdk/src/share/lib/security/java.security | 6 +++--- jdk/src/share/lib/security/java.security-solaris | 6 +++--- jdk/src/share/lib/security/java.security-windows | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/jdk/src/share/lib/security/java.security b/jdk/src/share/lib/security/java.security index a89d40e194b..1b5518054c3 100644 --- a/jdk/src/share/lib/security/java.security +++ b/jdk/src/share/lib/security/java.security @@ -132,10 +132,10 @@ package.access=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun. # corresponding RuntimePermission ("defineClassInPackage."+package) has # been granted. # -# by default, no packages are restricted for definition, and none of -# the class loaders supplied with the JDK call checkPackageDefinition. +# by default, none of the class loaders supplied with the JDK call +# checkPackageDefinition. # -#package.definition= +package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio. # # Determines whether this properties file can be appended to diff --git a/jdk/src/share/lib/security/java.security-solaris b/jdk/src/share/lib/security/java.security-solaris index 1a19f44d231..9ec6c64b4b5 100644 --- a/jdk/src/share/lib/security/java.security-solaris +++ b/jdk/src/share/lib/security/java.security-solaris @@ -133,10 +133,10 @@ package.access=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun. # corresponding RuntimePermission ("defineClassInPackage."+package) has # been granted. # -# by default, no packages are restricted for definition, and none of -# the class loaders supplied with the JDK call checkPackageDefinition. +# by default, none of the class loaders supplied with the JDK call +# checkPackageDefinition. # -#package.definition= +package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio. # # Determines whether this properties file can be appended to diff --git a/jdk/src/share/lib/security/java.security-windows b/jdk/src/share/lib/security/java.security-windows index 3db627a4f32..fbaace84919 100644 --- a/jdk/src/share/lib/security/java.security-windows +++ b/jdk/src/share/lib/security/java.security-windows @@ -133,10 +133,10 @@ package.access=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun. # corresponding RuntimePermission ("defineClassInPackage."+package) has # been granted. # -# by default, no packages are restricted for definition, and none of -# the class loaders supplied with the JDK call checkPackageDefinition. +# by default, none of the class loaders supplied with the JDK call +# checkPackageDefinition. # -#package.definition= +package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio. # # Determines whether this properties file can be appended to From 39cf6b2fdc8611ddd5a35790f1e833f9d453ff1d Mon Sep 17 00:00:00 2001 From: Andrew Brygin Date: Tue, 28 Feb 2012 10:44:56 +0400 Subject: [PATCH 02/46] 7143617: Improve fontmanager layout lookup operations Reviewed-by: igor, prr, mschoene --- .../native/sun/font/layout/LookupProcessor.cpp | 15 ++++++++++++++- .../native/sun/font/layout/LookupProcessor.h | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/native/sun/font/layout/LookupProcessor.cpp b/jdk/src/share/native/sun/font/layout/LookupProcessor.cpp index eb5002ef8a2..60727aa3f3a 100644 --- a/jdk/src/share/native/sun/font/layout/LookupProcessor.cpp +++ b/jdk/src/share/native/sun/font/layout/LookupProcessor.cpp @@ -95,6 +95,10 @@ le_int32 LookupProcessor::process(LEGlyphStorage &glyphStorage, GlyphPositionAdj if (selectMask != 0) { const LookupTable *lookupTable = lookupListTable->getLookupTable(lookup); + + if (!lookupTable) + continue; + le_uint16 lookupFlags = SWAPW(lookupTable->lookupFlags); glyphIterator.reset(lookupFlags, selectMask); @@ -136,6 +140,9 @@ le_int32 LookupProcessor::selectLookups(const FeatureTable *featureTable, Featur for (le_uint16 lookup = 0; lookup < lookupCount; lookup += 1) { le_uint16 lookupListIndex = SWAPW(featureTable->lookupListIndexArray[lookup]); + if (lookupListIndex >= lookupSelectCount) + continue; + lookupSelectArray[lookupListIndex] |= featureMask; lookupOrderArray[store++] = lookupListIndex; } @@ -147,7 +154,7 @@ LookupProcessor::LookupProcessor(const char *baseAddress, Offset scriptListOffset, Offset featureListOffset, Offset lookupListOffset, LETag scriptTag, LETag languageTag, const FeatureMap *featureMap, le_int32 featureMapCount, le_bool orderFeatures, LEErrorCode& success) - : lookupListTable(NULL), featureListTable(NULL), lookupSelectArray(NULL), + : lookupListTable(NULL), featureListTable(NULL), lookupSelectArray(NULL), lookupSelectCount(0), lookupOrderArray(NULL), lookupOrderCount(0) { const ScriptListTable *scriptListTable = NULL; @@ -195,6 +202,8 @@ LookupProcessor::LookupProcessor(const char *baseAddress, lookupSelectArray[i] = 0; } + lookupSelectCount = lookupListCount; + le_int32 count, order = 0; le_int32 featureReferences = 0; const FeatureTable *featureTable = NULL; @@ -211,6 +220,10 @@ LookupProcessor::LookupProcessor(const char *baseAddress, le_uint16 featureIndex = SWAPW(langSysTable->featureIndexArray[feature]); featureTable = featureListTable->getFeatureTable(featureIndex, &featureTag); + + if (!featureTable) + continue; + featureReferences += SWAPW(featureTable->lookupCount); } diff --git a/jdk/src/share/native/sun/font/layout/LookupProcessor.h b/jdk/src/share/native/sun/font/layout/LookupProcessor.h index 73a44f05cdb..dc474c4f2bc 100644 --- a/jdk/src/share/native/sun/font/layout/LookupProcessor.h +++ b/jdk/src/share/native/sun/font/layout/LookupProcessor.h @@ -90,6 +90,7 @@ protected: const FeatureListTable *featureListTable; FeatureMask *lookupSelectArray; + le_uint32 lookupSelectCount; le_uint16 *lookupOrderArray; le_uint32 lookupOrderCount; From 54c7a4294991fce66e2d921dfd32d075ea616de7 Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Tue, 28 Feb 2012 16:09:15 +0200 Subject: [PATCH 03/46] 7143614: SynthLookAndFeel stability improvement Reviewed-by: malenkov --- .../javax/swing/plaf/synth/SynthButtonUI.java | 4 +- .../javax/swing/plaf/synth/SynthLabelUI.java | 4 +- .../swing/plaf/synth/SynthLookAndFeel.java | 57 ++++++----- .../swing/plaf/synth/7143614/bug7143614.java | 97 +++++++++++++++++++ 4 files changed, 133 insertions(+), 29 deletions(-) create mode 100644 jdk/test/javax/swing/plaf/synth/7143614/bug7143614.java diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java b/jdk/src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java index 80d3eb15fe0..0f5df434c70 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java @@ -152,8 +152,8 @@ public class SynthButtonUI extends BasicButtonUI implements if (!c.isEnabled()) { state = DISABLED; } - if (SynthLookAndFeel.selectedUI == this) { - return SynthLookAndFeel.selectedUIState | SynthConstants.ENABLED; + if (SynthLookAndFeel.getSelectedUI() == this) { + return SynthLookAndFeel.getSelectedUIState() | SynthConstants.ENABLED; } AbstractButton button = (AbstractButton) c; ButtonModel model = button.getModel(); diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/SynthLabelUI.java b/jdk/src/share/classes/javax/swing/plaf/synth/SynthLabelUI.java index 1c1927291b8..e0c50e166cd 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthLabelUI.java +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthLabelUI.java @@ -97,9 +97,9 @@ public class SynthLabelUI extends BasicLabelUI implements SynthUI { private int getComponentState(JComponent c) { int state = SynthLookAndFeel.getComponentState(c); - if (SynthLookAndFeel.selectedUI == this && + if (SynthLookAndFeel.getSelectedUI() == this && state == SynthConstants.ENABLED) { - state = SynthLookAndFeel.selectedUIState | SynthConstants.ENABLED; + state = SynthLookAndFeel.getSelectedUIState() | SynthConstants.ENABLED; } return state; } diff --git a/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java b/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java index 12121cc5038..bece289030f 100644 --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java @@ -76,28 +76,26 @@ public class SynthLookAndFeel extends BasicLookAndFeel { private static final Object STYLE_FACTORY_KEY = new StringBuffer("com.sun.java.swing.plaf.gtk.StyleCache"); + /** + * AppContext key to get selectedUI. + */ + private static final Object SELECTED_UI_KEY = new StringBuilder("selectedUI"); + + /** + * AppContext key to get selectedUIState. + */ + private static final Object SELECTED_UI_STATE_KEY = new StringBuilder("selectedUIState"); + /** * The last SynthStyleFactory that was asked for from AppContext * lastContext. */ private static SynthStyleFactory lastFactory; - /** - * If this is true it indicates there is more than one AppContext active - * and that we need to make sure in getStyleCache the requesting - * AppContext matches that of lastContext before returning - * it. - */ - private static boolean multipleApps; /** * AppContext lastLAF came from. */ private static AppContext lastContext; - // Refer to setSelectedUI - static ComponentUI selectedUI; - // Refer to setSelectedUI - static int selectedUIState; - /** * SynthStyleFactory for the this SynthLookAndFeel. */ @@ -111,6 +109,10 @@ public class SynthLookAndFeel extends BasicLookAndFeel { private Handler _handler; + static ComponentUI getSelectedUI() { + return (ComponentUI) AppContext.getAppContext().get(SELECTED_UI_KEY); + } + /** * Used by the renderers. For the most part the renderers are implemented * as Labels, which is problematic in so far as they are never selected. @@ -122,8 +124,8 @@ public class SynthLookAndFeel extends BasicLookAndFeel { static void setSelectedUI(ComponentUI uix, boolean selected, boolean focused, boolean enabled, boolean rollover) { - selectedUI = uix; - selectedUIState = 0; + int selectedUIState = 0; + if (selected) { selectedUIState = SynthConstants.SELECTED; if (focused) { @@ -140,19 +142,32 @@ public class SynthLookAndFeel extends BasicLookAndFeel { else { if (enabled) { selectedUIState |= SynthConstants.ENABLED; - selectedUIState = SynthConstants.FOCUSED; + if (focused) { + selectedUIState |= SynthConstants.FOCUSED; + } } else { selectedUIState |= SynthConstants.DISABLED; } } + + AppContext context = AppContext.getAppContext(); + + context.put(SELECTED_UI_KEY, uix); + context.put(SELECTED_UI_STATE_KEY, Integer.valueOf(selectedUIState)); + } + + static int getSelectedUIState() { + Integer result = (Integer) AppContext.getAppContext().get(SELECTED_UI_STATE_KEY); + + return result == null ? 0 : result.intValue(); } /** * Clears out the selected UI that was last set in setSelectedUI. */ static void resetSelectedUI() { - selectedUI = null; + AppContext.getAppContext().remove(SELECTED_UI_KEY); } @@ -167,10 +182,6 @@ public class SynthLookAndFeel extends BasicLookAndFeel { // for a particular AppContext. synchronized(SynthLookAndFeel.class) { AppContext context = AppContext.getAppContext(); - if (!multipleApps && context != lastContext && - lastContext != null) { - multipleApps = true; - } lastFactory = cache; lastContext = context; context.put(STYLE_FACTORY_KEY, cache); @@ -184,17 +195,13 @@ public class SynthLookAndFeel extends BasicLookAndFeel { */ public static SynthStyleFactory getStyleFactory() { synchronized(SynthLookAndFeel.class) { - if (!multipleApps) { - return lastFactory; - } AppContext context = AppContext.getAppContext(); if (lastContext == context) { return lastFactory; } lastContext = context; - lastFactory = (SynthStyleFactory)AppContext.getAppContext().get - (STYLE_FACTORY_KEY); + lastFactory = (SynthStyleFactory) context.get(STYLE_FACTORY_KEY); return lastFactory; } } diff --git a/jdk/test/javax/swing/plaf/synth/7143614/bug7143614.java b/jdk/test/javax/swing/plaf/synth/7143614/bug7143614.java new file mode 100644 index 00000000000..a4f81fd031e --- /dev/null +++ b/jdk/test/javax/swing/plaf/synth/7143614/bug7143614.java @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* + * @test + * @bug 7143614 + * @summary Issues with Synth Look&Feel + * @author Pavel Porvatov + */ + +import sun.awt.SunToolkit; + +import javax.swing.plaf.ComponentUI; +import javax.swing.plaf.basic.BasicButtonUI; +import javax.swing.plaf.synth.SynthConstants; +import javax.swing.plaf.synth.SynthLookAndFeel; +import java.lang.reflect.Method; + +public class bug7143614 { + private static Method setSelectedUIMethod; + + private static ComponentUI componentUI = new BasicButtonUI(); + + public static void main(String[] args) throws Exception { + setSelectedUIMethod = SynthLookAndFeel.class.getDeclaredMethod("setSelectedUI", ComponentUI.class, + boolean.class, boolean.class, boolean.class, boolean.class); + setSelectedUIMethod.setAccessible(true); + + setSelectedUIMethod.invoke(null, componentUI, true, true, true, true); + + validate(); + + Thread thread = new ThreadInAnotherAppContext(); + + thread.start(); + thread.join(); + + validate(); + + System.out.println("Test bug7143614 passed."); + } + + private static void validate() throws Exception { + Method getSelectedUIMethod = SynthLookAndFeel.class.getDeclaredMethod("getSelectedUI"); + + getSelectedUIMethod.setAccessible(true); + + Method getSelectedUIStateMethod = SynthLookAndFeel.class.getDeclaredMethod("getSelectedUIState"); + + getSelectedUIStateMethod.setAccessible(true); + + if (getSelectedUIMethod.invoke(null) != componentUI) { + throw new RuntimeException("getSelectedUI returns invalid value"); + } + if (((Integer) getSelectedUIStateMethod.invoke(null)).intValue() != + (SynthConstants.SELECTED | SynthConstants.FOCUSED)) { + throw new RuntimeException("getSelectedUIState returns invalid value"); + } + + } + + private static class ThreadInAnotherAppContext extends Thread { + public ThreadInAnotherAppContext() { + super(new ThreadGroup("7143614"), "ThreadInAnotherAppContext"); + } + + public void run() { + SunToolkit.createNewAppContext(); + + try { + setSelectedUIMethod.invoke(null, null, false, false, false, false); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } +} From 7902f129f5a45a71f9af2ee7c03e7c2d96eb0ac2 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Wed, 29 Feb 2012 14:06:00 +0800 Subject: [PATCH 04/46] 7143872: Improve certificate extension processing Reviewed-by: mullan --- .../sun/security/x509/CRLExtensions.java | 9 +- .../security/x509/CertificateExtensions.java | 13 ++- .../sun/security/x509/X509CRLEntryImpl.java | 52 +++++++--- .../sun/security/x509/X509CRLImpl.java | 56 ++++++----- .../sun/security/x509/X509CertImpl.java | 22 +++-- .../x509/X509CRLImpl/OrderAndDup.java | 99 +++++++++++++++++++ 6 files changed, 201 insertions(+), 50 deletions(-) create mode 100644 jdk/test/sun/security/x509/X509CRLImpl/OrderAndDup.java diff --git a/jdk/src/share/classes/sun/security/x509/CRLExtensions.java b/jdk/src/share/classes/sun/security/x509/CRLExtensions.java index 7b6c34b54a0..dc1fc71968c 100644 --- a/jdk/src/share/classes/sun/security/x509/CRLExtensions.java +++ b/jdk/src/share/classes/sun/security/x509/CRLExtensions.java @@ -32,8 +32,10 @@ import java.lang.reflect.InvocationTargetException; import java.security.cert.CRLException; import java.security.cert.CertificateException; import java.util.Collection; +import java.util.Collections; import java.util.Enumeration; -import java.util.Hashtable; +import java.util.Map; +import java.util.TreeMap; import sun.security.util.*; import sun.misc.HexDumpEncoder; @@ -62,7 +64,8 @@ import sun.misc.HexDumpEncoder; */ public class CRLExtensions { - private Hashtable map = new Hashtable(); + private Map map = Collections.synchronizedMap( + new TreeMap()); private boolean unsupportedCritExt = false; /** @@ -215,7 +218,7 @@ public class CRLExtensions { * @return an enumeration of the extensions in this CRL. */ public Enumeration getElements() { - return map.elements(); + return Collections.enumeration(map.values()); } /** diff --git a/jdk/src/share/classes/sun/security/x509/CertificateExtensions.java b/jdk/src/share/classes/sun/security/x509/CertificateExtensions.java index b1dc9367512..65dcff1a3e1 100644 --- a/jdk/src/share/classes/sun/security/x509/CertificateExtensions.java +++ b/jdk/src/share/classes/sun/security/x509/CertificateExtensions.java @@ -57,7 +57,8 @@ public class CertificateExtensions implements CertAttrSet { private static final Debug debug = Debug.getInstance("x509"); - private Hashtable map = new Hashtable(); + private Map map = Collections.synchronizedMap( + new TreeMap()); private boolean unsupportedCritExt = false; private Map unparseableExtensions; @@ -117,7 +118,7 @@ public class CertificateExtensions implements CertAttrSet { if (ext.isCritical() == false) { // ignore errors parsing non-critical extensions if (unparseableExtensions == null) { - unparseableExtensions = new HashMap(); + unparseableExtensions = new TreeMap(); } unparseableExtensions.put(ext.getExtensionId().toString(), new UnparseableExtension(ext, e)); @@ -218,6 +219,12 @@ public class CertificateExtensions implements CertAttrSet { return (obj); } + // Similar to get(String), but throw no exception, might return null. + // Used in X509CertImpl::getExtension(OID). + Extension getExtension(String name) { + return map.get(name); + } + /** * Delete the attribute value. * @param name the extension name used in the lookup. @@ -245,7 +252,7 @@ public class CertificateExtensions implements CertAttrSet { * attribute. */ public Enumeration getElements() { - return map.elements(); + return Collections.enumeration(map.values()); } /** diff --git a/jdk/src/share/classes/sun/security/x509/X509CRLEntryImpl.java b/jdk/src/share/classes/sun/security/x509/X509CRLEntryImpl.java index 495cc06e5be..a074c38720b 100644 --- a/jdk/src/share/classes/sun/security/x509/X509CRLEntryImpl.java +++ b/jdk/src/share/classes/sun/security/x509/X509CRLEntryImpl.java @@ -32,13 +32,7 @@ import java.security.cert.CRLReason; import java.security.cert.CertificateException; import java.security.cert.X509CRLEntry; import java.math.BigInteger; -import java.util.Collection; -import java.util.Date; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.Map; -import java.util.Set; -import java.util.HashSet; +import java.util.*; import javax.security.auth.x500.X500Principal; @@ -75,7 +69,8 @@ import sun.misc.HexDumpEncoder; * @author Hemma Prafullchandra */ -public class X509CRLEntryImpl extends X509CRLEntry { +public class X509CRLEntryImpl extends X509CRLEntry + implements Comparable { private SerialNumber serialNumber = null; private Date revocationDate = null; @@ -196,9 +191,14 @@ public class X509CRLEntryImpl extends X509CRLEntry { * @exception CRLException if an encoding error occurs. */ public byte[] getEncoded() throws CRLException { + return getEncoded0().clone(); + } + + // Called internally to avoid clone + private byte[] getEncoded0() throws CRLException { if (revokedCert == null) this.encode(new DerOutputStream()); - return revokedCert.clone(); + return revokedCert; } @Override @@ -352,7 +352,7 @@ public class X509CRLEntryImpl extends X509CRLEntry { if (extensions == null) { return null; } - Set extSet = new HashSet(); + Set extSet = new TreeSet<>(); for (Extension ex : extensions.getAllExtensions()) { if (ex.isCritical()) { extSet.add(ex.getExtensionId().toString()); @@ -373,7 +373,7 @@ public class X509CRLEntryImpl extends X509CRLEntry { if (extensions == null) { return null; } - Set extSet = new HashSet(); + Set extSet = new TreeSet<>(); for (Extension ex : extensions.getAllExtensions()) { if (!ex.isCritical()) { extSet.add(ex.getExtensionId().toString()); @@ -501,13 +501,39 @@ public class X509CRLEntryImpl extends X509CRLEntry { getExtension(PKIXExtensions.CertificateIssuer_Id); } + /** + * Returns all extensions for this entry in a map + * @return the extension map, can be empty, but not null + */ public Map getExtensions() { + if (extensions == null) { + return Collections.emptyMap(); + } Collection exts = extensions.getAllExtensions(); - HashMap map = - new HashMap(exts.size()); + Map map = new TreeMap<>(); for (Extension ext : exts) { map.put(ext.getId(), ext); } return map; } + + @Override + public int compareTo(X509CRLEntryImpl that) { + int compSerial = getSerialNumber().compareTo(that.getSerialNumber()); + if (compSerial != 0) { + return compSerial; + } + try { + byte[] thisEncoded = this.getEncoded0(); + byte[] thatEncoded = that.getEncoded0(); + for (int i=0; i - * An implmentation for X509 CRL (Certificate Revocation List). + * An implementation for X509 CRL (Certificate Revocation List). *

* The X.509 v2 CRL format is described below in ASN.1: *

@@ -104,7 +104,8 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
     private X500Principal    issuerPrincipal = null;
     private Date             thisUpdate = null;
     private Date             nextUpdate = null;
-    private Map revokedCerts = new LinkedHashMap();
+    private Map revokedMap = new TreeMap<>();
+    private List revokedList = new LinkedList<>();
     private CRLExtensions    extensions = null;
     private final static boolean isExplicit = true;
     private static final long YR_2050 = 2524636800000L;
@@ -223,7 +224,8 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
                 badCert.setCertificateIssuer(crlIssuer, badCertIssuer);
                 X509IssuerSerial issuerSerial = new X509IssuerSerial
                     (badCertIssuer, badCert.getSerialNumber());
-                this.revokedCerts.put(issuerSerial, badCert);
+                this.revokedMap.put(issuerSerial, badCert);
+                this.revokedList.add(badCert);
                 if (badCert.hasExtensions()) {
                     this.version = 1;
                 }
@@ -305,8 +307,8 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
                     tmp.putGeneralizedTime(nextUpdate);
             }
 
-            if (!revokedCerts.isEmpty()) {
-                for (X509CRLEntry entry : revokedCerts.values()) {
+            if (!revokedList.isEmpty()) {
+                for (X509CRLEntry entry : revokedList) {
                     ((X509CRLEntryImpl)entry).encode(rCerts);
                 }
                 tmp.write(DerValue.tag_Sequence, rCerts);
@@ -490,14 +492,14 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
             sb.append("\nThis Update: " + thisUpdate.toString() + "\n");
         if (nextUpdate != null)
             sb.append("Next Update: " + nextUpdate.toString() + "\n");
-        if (revokedCerts.isEmpty())
+        if (revokedList.isEmpty())
             sb.append("\nNO certificates have been revoked\n");
         else {
-            sb.append("\nRevoked Certificates: " + revokedCerts.size());
+            sb.append("\nRevoked Certificates: " + revokedList.size());
             int i = 1;
-            for (Iterator iter = revokedCerts.values().iterator();
-                                             iter.hasNext(); i++)
-                sb.append("\n[" + i + "] " + iter.next().toString());
+            for (X509CRLEntry entry: revokedList) {
+                sb.append("\n[" + i++ + "] " + entry.toString());
+            }
         }
         if (extensions != null) {
             Collection allExts = extensions.getAllExtensions();
@@ -543,12 +545,12 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
      * false otherwise.
      */
     public boolean isRevoked(Certificate cert) {
-        if (revokedCerts.isEmpty() || (!(cert instanceof X509Certificate))) {
+        if (revokedMap.isEmpty() || (!(cert instanceof X509Certificate))) {
             return false;
         }
         X509Certificate xcert = (X509Certificate) cert;
         X509IssuerSerial issuerSerial = new X509IssuerSerial(xcert);
-        return revokedCerts.containsKey(issuerSerial);
+        return revokedMap.containsKey(issuerSerial);
     }
 
     /**
@@ -638,24 +640,24 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
      * @see X509CRLEntry
      */
     public X509CRLEntry getRevokedCertificate(BigInteger serialNumber) {
-        if (revokedCerts.isEmpty()) {
+        if (revokedMap.isEmpty()) {
             return null;
         }
         // assume this is a direct CRL entry (cert and CRL issuer are the same)
         X509IssuerSerial issuerSerial = new X509IssuerSerial
             (getIssuerX500Principal(), serialNumber);
-        return revokedCerts.get(issuerSerial);
+        return revokedMap.get(issuerSerial);
     }
 
     /**
      * Gets the CRL entry for the given certificate.
      */
     public X509CRLEntry getRevokedCertificate(X509Certificate cert) {
-        if (revokedCerts.isEmpty()) {
+        if (revokedMap.isEmpty()) {
             return null;
         }
         X509IssuerSerial issuerSerial = new X509IssuerSerial(cert);
-        return revokedCerts.get(issuerSerial);
+        return revokedMap.get(issuerSerial);
     }
 
     /**
@@ -667,10 +669,10 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
      * @see X509CRLEntry
      */
     public Set getRevokedCertificates() {
-        if (revokedCerts.isEmpty()) {
+        if (revokedList.isEmpty()) {
             return null;
         } else {
-            return new HashSet(revokedCerts.values());
+            return new TreeSet(revokedList);
         }
     }
 
@@ -905,7 +907,7 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
         if (extensions == null) {
             return null;
         }
-        Set extSet = new HashSet();
+        Set extSet = new TreeSet<>();
         for (Extension ex : extensions.getAllExtensions()) {
             if (ex.isCritical()) {
                 extSet.add(ex.getExtensionId().toString());
@@ -926,7 +928,7 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
         if (extensions == null) {
             return null;
         }
-        Set extSet = new HashSet();
+        Set extSet = new TreeSet<>();
         for (Extension ex : extensions.getAllExtensions()) {
             if (!ex.isCritical()) {
                 extSet.add(ex.getExtensionId().toString());
@@ -1103,7 +1105,8 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
                 entry.setCertificateIssuer(crlIssuer, badCertIssuer);
                 X509IssuerSerial issuerSerial = new X509IssuerSerial
                     (badCertIssuer, entry.getSerialNumber());
-                revokedCerts.put(issuerSerial, entry);
+                revokedMap.put(issuerSerial, entry);
+                revokedList.add(entry);
             }
         }
 
@@ -1208,7 +1211,8 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
     /**
      * Immutable X.509 Certificate Issuer DN and serial number pair
      */
-    private final static class X509IssuerSerial {
+    private final static class X509IssuerSerial
+            implements Comparable {
         final X500Principal issuer;
         final BigInteger serial;
         volatile int hashcode = 0;
@@ -1287,5 +1291,13 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
             }
             return hashcode;
         }
+
+        @Override
+        public int compareTo(X509IssuerSerial another) {
+            int cissuer = issuer.toString()
+                    .compareTo(another.issuer.toString());
+            if (cissuer != 0) return cissuer;
+            return this.serial.compareTo(another.serial);
+        }
     }
 }
diff --git a/jdk/src/share/classes/sun/security/x509/X509CertImpl.java b/jdk/src/share/classes/sun/security/x509/X509CertImpl.java
index eb7dc39c0bf..64ac1c36176 100644
--- a/jdk/src/share/classes/sun/security/x509/X509CertImpl.java
+++ b/jdk/src/share/classes/sun/security/x509/X509CertImpl.java
@@ -1214,7 +1214,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
             if (exts == null) {
                 return null;
             }
-            Set extSet = new HashSet();
+            Set extSet = new TreeSet<>();
             for (Extension ex : exts.getAllExtensions()) {
                 if (ex.isCritical()) {
                     extSet.add(ex.getExtensionId().toString());
@@ -1244,7 +1244,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
             if (exts == null) {
                 return null;
             }
-            Set extSet = new HashSet();
+            Set extSet = new TreeSet<>();
             for (Extension ex : exts.getAllExtensions()) {
                 if (!ex.isCritical()) {
                     extSet.add(ex.getExtensionId().toString());
@@ -1278,10 +1278,14 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
             if (extensions == null) {
                 return null;
             } else {
-                for (Extension ex : extensions.getAllExtensions()) {
-                    if (ex.getExtensionId().equals(oid)) {
+                Extension ex = extensions.getExtension(oid.toString());
+                if (ex != null) {
+                    return ex;
+                }
+                for (Extension ex2: extensions.getAllExtensions()) {
+                    if (ex2.getExtensionId().equals((Object)oid)) {
                         //XXXX May want to consider cloning this
-                        return ex;
+                        return ex2;
                     }
                 }
                 /* no such extension in this certificate */
@@ -1480,10 +1484,10 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
         if (names.isEmpty()) {
             return Collections.>emptySet();
         }
-        Set> newNames = new HashSet>();
+        List> newNames = new ArrayList<>();
         for (GeneralName gname : names.names()) {
             GeneralNameInterface name = gname.getName();
-            List nameEntry = new ArrayList(2);
+            List nameEntry = new ArrayList<>(2);
             nameEntry.add(Integer.valueOf(name.getType()));
             switch (name.getType()) {
             case GeneralNameInterface.NAME_RFC822:
@@ -1541,12 +1545,12 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
             }
         }
         if (mustClone) {
-            Set> namesCopy = new HashSet>();
+            List> namesCopy = new ArrayList<>();
             for (List nameEntry : altNames) {
                 Object nameObject = nameEntry.get(1);
                 if (nameObject instanceof byte[]) {
                     List nameEntryCopy =
-                                        new ArrayList(nameEntry);
+                                        new ArrayList<>(nameEntry);
                     nameEntryCopy.set(1, ((byte[])nameObject).clone());
                     namesCopy.add(Collections.unmodifiableList(nameEntryCopy));
                 } else {
diff --git a/jdk/test/sun/security/x509/X509CRLImpl/OrderAndDup.java b/jdk/test/sun/security/x509/X509CRLImpl/OrderAndDup.java
new file mode 100644
index 00000000000..51610e61c7f
--- /dev/null
+++ b/jdk/test/sun/security/x509/X509CRLImpl/OrderAndDup.java
@@ -0,0 +1,99 @@
+/*
+ * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/*
+ * @test
+ * @bug 7143872
+ * @summary Improve certificate extension processing
+ */
+import java.io.ByteArrayInputStream;
+import java.math.BigInteger;
+import java.security.KeyPairGenerator;
+import java.security.cert.CertificateFactory;
+import java.security.cert.X509CRLEntry;
+import java.util.Date;
+import sun.security.util.DerInputStream;
+import sun.security.util.DerValue;
+import sun.security.x509.*;
+
+public class OrderAndDup {
+    public static void main(String[] args) throws Exception {
+
+        // Generate 20 serial numbers with dup and a special order
+        int count = 20;
+        BigInteger[] serials = new BigInteger[count];
+        for (int i=0; i
Date: Mon, 26 Mar 2012 14:01:40 +0100
Subject: [PATCH 05/46] 7143851: Improve IIOP stub and tie generation in RMIC
 7149048: Changes to corba rmic stubGenerator class are not used during jdk
 build process

Reviewed-by: mschoene, robm
---
 .../share/classes/sun/rmi/rmic/iiop/StubGenerator.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/corba/src/share/classes/sun/rmi/rmic/iiop/StubGenerator.java b/corba/src/share/classes/sun/rmi/rmic/iiop/StubGenerator.java
index 87eee7bef61..143beefc8e1 100644
--- a/corba/src/share/classes/sun/rmi/rmic/iiop/StubGenerator.java
+++ b/corba/src/share/classes/sun/rmi/rmic/iiop/StubGenerator.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -425,7 +425,7 @@ public class StubGenerator extends sun.rmi.rmic.iiop.Generator {
         // Write the _ids() method...
 
         p.plnI("public String[] _ids() { ");
-        p.pln("return _type_ids;");
+        p.pln("return (String[]) _type_ids.clone();");
         p.pOln("}");
 
         // Get all the methods and write each stub method...
@@ -1860,11 +1860,11 @@ public class StubGenerator extends sun.rmi.rmic.iiop.Generator {
     {
         if(POATie){
         p.plnI("public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId){");
-        p.pln("return _type_ids;");
+        p.pln("return (String[]) _type_ids.clone();");
         p.pOln("}");
         } else {
         p.plnI("public String[] _ids() { ");
-        p.pln("return _type_ids;");
+        p.pln("return (String[]) _type_ids.clone();");
         p.pOln("}");
         }
     }

From 502876ad9aa02790e3a36e3e827a9904c97cd2eb Mon Sep 17 00:00:00 2001
From: Sean Coffey 
Date: Mon, 26 Mar 2012 14:03:09 +0100
Subject: [PATCH 06/46] 7143851: Improve IIOP stub and tie generation in RMIC
 7149048: Changes to corba rmic stubGenerator class are not used during jdk
 build process

Reviewed-by: mschoene, robm
---
 jdk/make/com/sun/jmx/Makefile | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/jdk/make/com/sun/jmx/Makefile b/jdk/make/com/sun/jmx/Makefile
index 2f036de3576..62435751673 100644
--- a/jdk/make/com/sun/jmx/Makefile
+++ b/jdk/make/com/sun/jmx/Makefile
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -100,6 +100,23 @@ FILES_ties   = $(subst javax/management/remote/rmi/,javax/management/remote/rmi/
 # so that *_tie classes are generated in package without the prefix
 # org.omg.stub (6375696)
 # 
+# To ensure the latest stub generator files are picked up from corba repo
+# when available, we need to run with latest rmic version available. rmic 
+# launch tool not built at this stage but we can invoke via rmi class.
+
+RMIC_JAVA = $(OUTPUTDIR)/bin/java
+# need to treat 64bit solaris differently
+ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64)
+RMIC_JAVA = $(OUTPUTDIR)/bin/amd64/java
+endif
+ifeq ($(PLATFORM)-$(LIBARCH), solaris-sparcv9)
+RMIC_JAVA = $(OUTPUTDIR)/bin/sparcv9/java
+endif
+
+ifeq ($(CROSS_COMPILE_ARCH),)
+RMIC = $(RMIC_JAVA) $(JAVA_TOOLS_FLAGS) -cp $(OUTPUTDIR)/classes sun.rmi.rmic.Main
+endif  
+
 $(CLASSDESTDIR)/%_Stub.class: $(CLASSDESTDIR)/%.class
 	$(prep-target)
 	$(RMIC) -classpath "$(CLASSDESTDIR)"    \

From 7709928453eced124160215a4b4774e001d29f68 Mon Sep 17 00:00:00 2001
From: Mala Bankal 
Date: Wed, 28 Mar 2012 02:50:50 -0700
Subject: [PATCH 07/46] 7079902: Refine CORBA data models

Reviewed-by: coffeys
---
 .../interceptors/ClientRequestInfoImpl.java   |  4 +--
 .../interceptors/ServerRequestInfoImpl.java   |  4 +--
 .../corba/se/impl/javax/rmi/CORBA/Util.java   | 19 +++++++++--
 .../impl/oa/poa/POAPolicyMediatorBase_R.java  |  6 ++--
 .../sun/corba/se/impl/oa/toa/TOAFactory.java  |  6 ++--
 .../sun/corba/se/impl/orb/ParserTable.java    |  6 ++--
 .../se/impl/orbutil/RepositoryId_1_3.java     | 18 +++++-----
 .../se/impl/orbutil/RepositoryId_1_3_1.java   | 18 +++++-----
 .../LocalClientRequestDispatcherBase.java     |  4 +--
 .../sun/corba/se/impl/util/RepositoryId.java  | 20 +++++------
 .../corba/se/spi/logging/CORBALogDomains.java |  4 +--
 .../classes/sun/rmi/rmic/iiop/IDLNames.java   | 34 +++++++++++++++++--
 12 files changed, 93 insertions(+), 50 deletions(-)

diff --git a/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ClientRequestInfoImpl.java b/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ClientRequestInfoImpl.java
index d24fa030725..94e3f957c31 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ClientRequestInfoImpl.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ClientRequestInfoImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -217,7 +217,7 @@ public final class ClientRequestInfoImpl
 
     // ClientRequestInfo validity table (see ptc/00-08-06 table 21-1).
     // Note: These must be in the same order as specified in contants.
-    protected static final boolean validCall[][] = {
+    private static final boolean validCall[][] = {
         // LEGEND:
         // s_req = send_request     r_rep = receive_reply
         // s_pol = send_poll        r_exc = receive_exception
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ServerRequestInfoImpl.java b/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ServerRequestInfoImpl.java
index 4df8825d0bb..ecea44c521b 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ServerRequestInfoImpl.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ServerRequestInfoImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -195,7 +195,7 @@ public final class ServerRequestInfoImpl
 
     // ServerRequestInfo validity table (see ptc/00-08-06 table 21-2).
     // Note: These must be in the same order as specified in contants.
-    protected static final boolean validCall[][] = {
+    private static final boolean validCall[][] = {
         // LEGEND:
         // r_rsc = receive_request_service_contexts
         // r_req = receive_request
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/javax/rmi/CORBA/Util.java b/corba/src/share/classes/com/sun/corba/se/impl/javax/rmi/CORBA/Util.java
index 6653b391c46..7721999591c 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/javax/rmi/CORBA/Util.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/javax/rmi/CORBA/Util.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -130,10 +130,23 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
     private UtilSystemException utilWrapper = UtilSystemException.get(
                                                   CORBALogDomains.RPC_ENCODING);
 
-    public static Util instance = null;
+    private static Util instance = null;
 
     public Util() {
-        instance = this;
+        setInstance(this);
+    }
+
+    private static void setInstance( Util util ) {
+        assert instance == null : "Instance already defined";
+        instance = util;
+    }
+
+    public static Util getInstance() {
+        return instance;
+    }
+
+    public static boolean isInstanceDefined() {
+        return instance != null;
     }
 
     // Used by TOAFactory.shutdown to unexport all targets for this
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAPolicyMediatorBase_R.java b/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAPolicyMediatorBase_R.java
index 1bc9130e109..3b14616947a 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAPolicyMediatorBase_R.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAPolicyMediatorBase_R.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -93,7 +93,7 @@ public abstract class POAPolicyMediatorBase_R extends POAPolicyMediatorBase {
 
         activeObjectMap.putServant( servant, entry ) ;
 
-        if (Util.instance != null) {
+        if (Util.isInstanceDefined()) {
             POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ;
             POAFactory factory = pm.getFactory() ;
             factory.registerPOAForServant(poa, servant);
@@ -129,7 +129,7 @@ public abstract class POAPolicyMediatorBase_R extends POAPolicyMediatorBase {
 
         activeObjectMap.remove(key);
 
-        if (Util.instance != null) {
+        if (Util.isInstanceDefined()) {
             POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ;
             POAFactory factory = pm.getFactory() ;
             factory.unregisterPOAForServant(poa, s);
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/oa/toa/TOAFactory.java b/corba/src/share/classes/com/sun/corba/se/impl/oa/toa/TOAFactory.java
index 2a2114d709e..58823229069 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/oa/toa/TOAFactory.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/oa/toa/TOAFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -78,8 +78,8 @@ public class TOAFactory implements ObjectAdapterFactory
 
     public void shutdown( boolean waitForCompletion )
     {
-        if (Util.instance != null) {
-            Util.instance.unregisterTargetsForORB(orb);
+        if (Util.isInstanceDefined()) {
+            Util.getInstance().unregisterTargetsForORB(orb);
         }
     }
 
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java b/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java
index 2741e0b29b7..550c4a7f304 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -106,7 +106,9 @@ public class ParserTable {
 
     public ParserData[] getParserData()
     {
-        return parserData ;
+        ParserData[] parserArray = new ParserData[parserData.length];
+        System.arraycopy(parserData, 0, parserArray, 0, parserData.length);
+        return parserArray;
     }
 
     private ParserTable() {
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3.java b/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3.java
index c2e0995092d..8cf9edd4834 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -62,7 +62,7 @@ public class RepositoryId_1_3 {
     // legal use of '.' in a Java name.
 
     public static final RepositoryIdCache_1_3 cache = new RepositoryIdCache_1_3();
-    public static final byte[] IDL_IDENTIFIER_CHARS = {
+    private static final byte[] IDL_IDENTIFIER_CHARS = {
 
         // 0 1 2 3  4 5 6 7  8 9 a b  c d e f
         0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 00-0f
@@ -180,7 +180,7 @@ public class RepositoryId_1_3 {
     public static final String kRemoteTypeStr = "";
     public static final String kRemoteValueRepID = "";
 
-    public static final Hashtable kSpecialArrayTypeStrings = new Hashtable();
+    private static final Hashtable kSpecialArrayTypeStrings = new Hashtable();
 
     static {
         kSpecialArrayTypeStrings.put("CORBA.WStringValue", new StringBuffer(java.lang.String.class.getName()));
@@ -189,7 +189,7 @@ public class RepositoryId_1_3 {
 
     }
 
-    public static final Hashtable kSpecialCasesRepIDs = new Hashtable();
+    private static final Hashtable kSpecialCasesRepIDs = new Hashtable();
 
     static {
         kSpecialCasesRepIDs.put(java.lang.String.class, kWStringValueRepID);
@@ -197,7 +197,7 @@ public class RepositoryId_1_3 {
         kSpecialCasesRepIDs.put(java.rmi.Remote.class, kRemoteValueRepID);
     }
 
-    public static final Hashtable kSpecialCasesStubValues = new Hashtable();
+    private static final Hashtable kSpecialCasesStubValues = new Hashtable();
 
     static {
         kSpecialCasesStubValues.put(java.lang.String.class, kWStringStubValue);
@@ -209,7 +209,7 @@ public class RepositoryId_1_3 {
     }
 
 
-    public static final Hashtable kSpecialCasesVersions = new Hashtable();
+    private static final Hashtable kSpecialCasesVersions = new Hashtable();
 
     static {
         kSpecialCasesVersions.put(java.lang.String.class, kWStringValueHash);
@@ -220,7 +220,7 @@ public class RepositoryId_1_3 {
         kSpecialCasesVersions.put(java.rmi.Remote.class, kRemoteValueHash);
     }
 
-    public static final Hashtable kSpecialCasesClasses = new Hashtable();
+    private static final Hashtable kSpecialCasesClasses = new Hashtable();
 
     static {
         kSpecialCasesClasses.put(kWStringTypeStr, java.lang.String.class);
@@ -232,7 +232,7 @@ public class RepositoryId_1_3 {
         //kSpecialCasesClasses.put(kRemoteTypeStr, java.rmi.Remote.class);
     }
 
-    public static final Hashtable kSpecialCasesArrayPrefix = new Hashtable();
+    private static final Hashtable kSpecialCasesArrayPrefix = new Hashtable();
 
     static {
         kSpecialCasesArrayPrefix.put(java.lang.String.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
@@ -243,7 +243,7 @@ public class RepositoryId_1_3 {
         kSpecialCasesArrayPrefix.put(java.rmi.Remote.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
     }
 
-    public static final Hashtable kSpecialPrimitives = new Hashtable();
+    private static final Hashtable kSpecialPrimitives = new Hashtable();
 
     static {
         kSpecialPrimitives.put("int","long");
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3_1.java b/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3_1.java
index 9ff74e3168a..8c1ab6e7390 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3_1.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3_1.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2002, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -63,7 +63,7 @@ public class RepositoryId_1_3_1 {
     // uniformly, and is safe because that is the only
     // legal use of '.' in a Java name.
 
-    public static final byte[] IDL_IDENTIFIER_CHARS = {
+    private static final byte[] IDL_IDENTIFIER_CHARS = {
 
         // 0 1 2 3  4 5 6 7  8 9 a b  c d e f
         0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 00-0f
@@ -198,7 +198,7 @@ public class RepositoryId_1_3_1 {
     public static final String kRemoteTypeStr = "";
     public static final String kRemoteValueRepID = "";
 
-    public static final Hashtable kSpecialArrayTypeStrings = new Hashtable();
+    private static final Hashtable kSpecialArrayTypeStrings = new Hashtable();
 
     static {
         kSpecialArrayTypeStrings.put("CORBA.WStringValue", new StringBuffer(java.lang.String.class.getName()));
@@ -207,7 +207,7 @@ public class RepositoryId_1_3_1 {
 
     }
 
-    public static final Hashtable kSpecialCasesRepIDs = new Hashtable();
+    private static final Hashtable kSpecialCasesRepIDs = new Hashtable();
 
     static {
         kSpecialCasesRepIDs.put(java.lang.String.class, kWStringValueRepID);
@@ -215,7 +215,7 @@ public class RepositoryId_1_3_1 {
         kSpecialCasesRepIDs.put(java.rmi.Remote.class, kRemoteValueRepID);
     }
 
-    public static final Hashtable kSpecialCasesStubValues = new Hashtable();
+    private static final Hashtable kSpecialCasesStubValues = new Hashtable();
 
     static {
         kSpecialCasesStubValues.put(java.lang.String.class, kWStringStubValue);
@@ -227,7 +227,7 @@ public class RepositoryId_1_3_1 {
     }
 
 
-    public static final Hashtable kSpecialCasesVersions = new Hashtable();
+    private static final Hashtable kSpecialCasesVersions = new Hashtable();
 
     static {
         kSpecialCasesVersions.put(java.lang.String.class, kWStringValueHash);
@@ -238,7 +238,7 @@ public class RepositoryId_1_3_1 {
         kSpecialCasesVersions.put(java.rmi.Remote.class, kRemoteValueHash);
     }
 
-    public static final Hashtable kSpecialCasesClasses = new Hashtable();
+    private static final Hashtable kSpecialCasesClasses = new Hashtable();
 
     static {
         kSpecialCasesClasses.put(kWStringTypeStr, java.lang.String.class);
@@ -250,7 +250,7 @@ public class RepositoryId_1_3_1 {
         //kSpecialCasesClasses.put(kRemoteTypeStr, java.rmi.Remote.class);
     }
 
-    public static final Hashtable kSpecialCasesArrayPrefix = new Hashtable();
+    private static final Hashtable kSpecialCasesArrayPrefix = new Hashtable();
 
     static {
         kSpecialCasesArrayPrefix.put(java.lang.String.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
@@ -261,7 +261,7 @@ public class RepositoryId_1_3_1 {
         kSpecialCasesArrayPrefix.put(java.rmi.Remote.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
     }
 
-    public static final Hashtable kSpecialPrimitives = new Hashtable();
+    private static final Hashtable kSpecialPrimitives = new Hashtable();
 
     static {
         kSpecialPrimitives.put("int","long");
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/protocol/LocalClientRequestDispatcherBase.java b/corba/src/share/classes/com/sun/corba/se/impl/protocol/LocalClientRequestDispatcherBase.java
index 03e06439060..627ca7abd89 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/protocol/LocalClientRequestDispatcherBase.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/protocol/LocalClientRequestDispatcherBase.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -52,7 +52,7 @@ public abstract class LocalClientRequestDispatcherBase implements LocalClientReq
 
     // If isNextIsLocalValid.get() == Boolean.TRUE,
     // the next call to isLocal should be valid
-    protected static ThreadLocal isNextCallValid = new ThreadLocal() {
+    private static final ThreadLocal isNextCallValid = new ThreadLocal() {
             protected synchronized Object initialValue() {
                 return Boolean.TRUE;
             }
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/util/RepositoryId.java b/corba/src/share/classes/com/sun/corba/se/impl/util/RepositoryId.java
index 7c17e4f63e0..6bedab382ea 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/util/RepositoryId.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/util/RepositoryId.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -57,7 +57,7 @@ public class RepositoryId {
     // uniformly, and is safe because that is the only
     // legal use of '.' in a Java name.
 
-    public static final byte[] IDL_IDENTIFIER_CHARS = {
+    private static final byte[] IDL_IDENTIFIER_CHARS = {
 
         // 0 1 2 3  4 5 6 7  8 9 a b  c d e f
         0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 00-0f
@@ -95,7 +95,7 @@ public class RepositoryId {
     private static IdentityHashtable classIDLToRepStr = new IdentityHashtable();
     private static IdentityHashtable classSeqToRepStr = new IdentityHashtable();
 
-    private static IdentityHashtable repStrToByteArray = new IdentityHashtable();
+    private static final IdentityHashtable repStrToByteArray = new IdentityHashtable();
     private static Hashtable repStrToClass = new Hashtable();
 
     private String repId = null;
@@ -192,7 +192,7 @@ public class RepositoryId {
     public static final String kRemoteTypeStr = "";
     public static final String kRemoteValueRepID = "";
 
-    public static final Hashtable kSpecialArrayTypeStrings = new Hashtable();
+    private static final Hashtable kSpecialArrayTypeStrings = new Hashtable();
 
     static {
         kSpecialArrayTypeStrings.put("CORBA.WStringValue", new StringBuffer(java.lang.String.class.getName()));
@@ -201,7 +201,7 @@ public class RepositoryId {
 
     }
 
-    public static final Hashtable kSpecialCasesRepIDs = new Hashtable();
+    private static final Hashtable kSpecialCasesRepIDs = new Hashtable();
 
     static {
         kSpecialCasesRepIDs.put(java.lang.String.class, kWStringValueRepID);
@@ -209,7 +209,7 @@ public class RepositoryId {
         kSpecialCasesRepIDs.put(java.rmi.Remote.class, kRemoteValueRepID);
     }
 
-    public static final Hashtable kSpecialCasesStubValues = new Hashtable();
+    private static final Hashtable kSpecialCasesStubValues = new Hashtable();
 
     static {
         kSpecialCasesStubValues.put(java.lang.String.class, kWStringStubValue);
@@ -221,7 +221,7 @@ public class RepositoryId {
     }
 
 
-    public static final Hashtable kSpecialCasesVersions = new Hashtable();
+    private static final Hashtable kSpecialCasesVersions = new Hashtable();
 
     static {
         kSpecialCasesVersions.put(java.lang.String.class, kWStringValueHash);
@@ -232,7 +232,7 @@ public class RepositoryId {
         kSpecialCasesVersions.put(java.rmi.Remote.class, kRemoteValueHash);
     }
 
-    public static final Hashtable kSpecialCasesClasses = new Hashtable();
+    private static final Hashtable kSpecialCasesClasses = new Hashtable();
 
     static {
         kSpecialCasesClasses.put(kWStringTypeStr, java.lang.String.class);
@@ -244,7 +244,7 @@ public class RepositoryId {
         //kSpecialCasesClasses.put(kRemoteTypeStr, java.rmi.Remote.class);
     }
 
-    public static final Hashtable kSpecialCasesArrayPrefix = new Hashtable();
+    private static final Hashtable kSpecialCasesArrayPrefix = new Hashtable();
 
     static {
         kSpecialCasesArrayPrefix.put(java.lang.String.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
@@ -255,7 +255,7 @@ public class RepositoryId {
         kSpecialCasesArrayPrefix.put(java.rmi.Remote.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
     }
 
-    public static final Hashtable kSpecialPrimitives = new Hashtable();
+    private static final Hashtable kSpecialPrimitives = new Hashtable();
 
     static {
         kSpecialPrimitives.put("int","long");
diff --git a/corba/src/share/classes/com/sun/corba/se/spi/logging/CORBALogDomains.java b/corba/src/share/classes/com/sun/corba/se/spi/logging/CORBALogDomains.java
index a2fc7b8f491..978b967c674 100644
--- a/corba/src/share/classes/com/sun/corba/se/spi/logging/CORBALogDomains.java
+++ b/corba/src/share/classes/com/sun/corba/se/spi/logging/CORBALogDomains.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -58,7 +58,7 @@ public abstract class CORBALogDomains {
     private CORBALogDomains() {}
 
     // Top level log domain for CORBA
-    public static String TOP_LEVEL_DOMAIN  = "javax.enterprise.resource.corba";
+    public static final String TOP_LEVEL_DOMAIN  = "javax.enterprise.resource.corba";
 
     public static final String RPC              = "rpc" ;
 
diff --git a/corba/src/share/classes/sun/rmi/rmic/iiop/IDLNames.java b/corba/src/share/classes/sun/rmi/rmic/iiop/IDLNames.java
index 34b3c1f56b5..b69e6d07fa9 100644
--- a/corba/src/share/classes/sun/rmi/rmic/iiop/IDLNames.java
+++ b/corba/src/share/classes/sun/rmi/rmic/iiop/IDLNames.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -71,6 +71,34 @@ public class IDLNames implements sun.rmi.rmic.iiop.Constants {
         (byte)'F',
     };
 
+    // Legal IDL Identifier characters (1 = legal). Note
+    // that '.' (2E) is marked as legal even though it is
+    // not legal in IDL. This allows us to treat a fully
+    // qualified Java name with '.' package separators
+    // uniformly, and is safe because that is the only
+    // legal use of '.' in a Java name.
+
+    private static final byte[] IDL_IDENTIFIER_CHARS = {
+
+        // 0 1 2 3  4 5 6 7  8 9 a b  c d e f
+        0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 00-0f
+        0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 10-1f
+        0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,1,0, // 20-2f
+        1,1,1,1, 1,1,1,1, 1,1,0,0, 0,0,0,0, // 30-3f
+        0,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // 40-4f
+        1,1,1,1, 1,1,1,1, 1,1,1,0, 0,0,0,1, // 50-5f
+        0,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // 60-6f
+        1,1,1,1, 1,1,1,1, 1,1,1,0, 0,0,0,0, // 70-7f
+        0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 80-8f
+        0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 90-9f
+        0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // a0-af
+        0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // b0-bf
+        1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // c0-cf
+        0,1,1,1, 1,1,1,0, 1,1,1,1, 1,0,0,1, // d0-df
+        1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // e0-ef
+        0,1,1,1, 1,1,1,0, 1,1,1,1, 1,0,0,1, // f0-ff
+    };
+
     //_____________________________________________________________________
     // Public Interfaces
     //_____________________________________________________________________
@@ -139,7 +167,7 @@ public class IDLNames implements sun.rmi.rmic.iiop.Constants {
         result = replace(result,"x\\U","U");
 
         // Now see if we have any remaining illegal characters (see
-        // RepositoryId.IDL_IDENTIFIER_CHARS array)...
+        // IDL_IDENTIFIER_CHARS array)...
 
         int length = result.length();
         StringBuffer buffer = null;
@@ -148,7 +176,7 @@ public class IDLNames implements sun.rmi.rmic.iiop.Constants {
 
             char c = result.charAt(i);
 
-            if (c > 255 || RepositoryId.IDL_IDENTIFIER_CHARS[c] == 0) {
+            if (c > 255 || IDL_IDENTIFIER_CHARS[c] == 0) {
 
                 // We gotta convert. Have we already started?
 

From fbcf78297ff3832f0c1ffa4d117985851096ae05 Mon Sep 17 00:00:00 2001
From: Keith McGuigan 
Date: Thu, 29 Mar 2012 18:55:32 -0400
Subject: [PATCH 08/46] 7110720: Issue with vm config file loadingIssue with vm
 config file loading

Disabling default config files if -XX:-ReadDefaultConfigFiles

Reviewed-by: phh, jrose, dcubed, dholmes
---
 .../src/share/vm/compiler/compilerOracle.cpp  |  16 ++-
 .../src/share/vm/compiler/compilerOracle.hpp  |   6 +-
 hotspot/src/share/vm/opto/runtime.cpp         |   5 +-
 hotspot/src/share/vm/runtime/arguments.cpp    |   2 +
 hotspot/test/runtime/7110720/Test7110720.sh   | 122 ++++++++++++++++++
 5 files changed, 146 insertions(+), 5 deletions(-)
 create mode 100644 hotspot/test/runtime/7110720/Test7110720.sh

diff --git a/hotspot/src/share/vm/compiler/compilerOracle.cpp b/hotspot/src/share/vm/compiler/compilerOracle.cpp
index 6ac45b41345..07bc969b872 100644
--- a/hotspot/src/share/vm/compiler/compilerOracle.cpp
+++ b/hotspot/src/share/vm/compiler/compilerOracle.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -551,13 +551,21 @@ void CompilerOracle::parse_from_line(char* line) {
 }
 
 static const char* cc_file() {
+#ifdef ASSERT
   if (CompileCommandFile == NULL)
     return ".hotspot_compiler";
+#endif
   return CompileCommandFile;
 }
+
+bool CompilerOracle::has_command_file() {
+  return cc_file() != NULL;
+}
+
 bool CompilerOracle::_quiet = false;
 
 void CompilerOracle::parse_from_file() {
+  assert(has_command_file(), "command file must be specified");
   FILE* stream = fopen(cc_file(), "rt");
   if (stream == NULL) return;
 
@@ -600,6 +608,7 @@ void CompilerOracle::parse_from_string(const char* str, void (*parse_line)(char*
 }
 
 void CompilerOracle::append_comment_to_file(const char* message) {
+  assert(has_command_file(), "command file must be specified");
   fileStream stream(fopen(cc_file(), "at"));
   stream.print("# ");
   for (int index = 0; message[index] != '\0'; index++) {
@@ -610,6 +619,7 @@ void CompilerOracle::append_comment_to_file(const char* message) {
 }
 
 void CompilerOracle::append_exclude_to_file(methodHandle method) {
+  assert(has_command_file(), "command file must be specified");
   fileStream stream(fopen(cc_file(), "at"));
   stream.print("exclude ");
   Klass::cast(method->method_holder())->name()->print_symbol_on(&stream);
@@ -624,7 +634,9 @@ void CompilerOracle::append_exclude_to_file(methodHandle method) {
 void compilerOracle_init() {
   CompilerOracle::parse_from_string(CompileCommand, CompilerOracle::parse_from_line);
   CompilerOracle::parse_from_string(CompileOnly, CompilerOracle::parse_compile_only);
-  CompilerOracle::parse_from_file();
+  if (CompilerOracle::has_command_file()) {
+    CompilerOracle::parse_from_file();
+  }
   if (lists[PrintCommand] != NULL) {
     if (PrintAssembly) {
       warning("CompileCommand and/or .hotspot_compiler file contains 'print' commands, but PrintAssembly is also enabled");
diff --git a/hotspot/src/share/vm/compiler/compilerOracle.hpp b/hotspot/src/share/vm/compiler/compilerOracle.hpp
index 7a32967b920..f736a4eebfc 100644
--- a/hotspot/src/share/vm/compiler/compilerOracle.hpp
+++ b/hotspot/src/share/vm/compiler/compilerOracle.hpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -36,6 +36,10 @@ class CompilerOracle : AllStatic {
   static bool _quiet;
 
  public:
+
+  // True if the command file has been specified or is implicit
+  static bool has_command_file();
+
   // Reads from file and adds to lists
   static void parse_from_file();
 
diff --git a/hotspot/src/share/vm/opto/runtime.cpp b/hotspot/src/share/vm/opto/runtime.cpp
index b97f06a024f..d315f101041 100644
--- a/hotspot/src/share/vm/opto/runtime.cpp
+++ b/hotspot/src/share/vm/opto/runtime.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -896,7 +896,8 @@ static void report_null_exception_in_code_cache(address exception_pc) {
       methodOop method = ((nmethod*)n)->method();
       tty->print_cr("# Method where it happened %s.%s ", Klass::cast(method->method_holder())->name()->as_C_string(), method->name()->as_C_string());
       tty->print_cr("#");
-      if (ShowMessageBoxOnError && UpdateHotSpotCompilerFileOnError) {
+      if (ShowMessageBoxOnError && UpdateHotSpotCompilerFileOnError &&
+          CompilerOracle::has_command_file()) {
         const char* title    = "HotSpot Runtime Error";
         const char* question = "Do you want to exclude compilation of this method in future runs?";
         if (os::message_box(title, question)) {
diff --git a/hotspot/src/share/vm/runtime/arguments.cpp b/hotspot/src/share/vm/runtime/arguments.cpp
index 1072daf6b04..a7195f2fc90 100644
--- a/hotspot/src/share/vm/runtime/arguments.cpp
+++ b/hotspot/src/share/vm/runtime/arguments.cpp
@@ -3002,12 +3002,14 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
     }
   }
 
+#ifdef ASSERT
   // Parse default .hotspotrc settings file
   if (!settings_file_specified) {
     if (!process_settings_file(".hotspotrc", false, args->ignoreUnrecognized)) {
       return JNI_EINVAL;
     }
   }
+#endif
 
   if (PrintVMOptions) {
     for (index = 0; index < args->nOptions; index++) {
diff --git a/hotspot/test/runtime/7110720/Test7110720.sh b/hotspot/test/runtime/7110720/Test7110720.sh
new file mode 100644
index 00000000000..c90c054fe4b
--- /dev/null
+++ b/hotspot/test/runtime/7110720/Test7110720.sh
@@ -0,0 +1,122 @@
+#
+#  Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+#  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+
+
+#
+# @test Test7110720.sh
+# @bug 7110720
+# @summary improve VM configuration file loading
+# @run shell Test7110720.sh
+#
+
+if [ "${TESTSRC}" = "" ]
+  then TESTSRC=.
+fi
+
+if [ "${TESTJAVA}" = "" ]
+then
+  PARENT=`dirname \`which java\``
+  TESTJAVA=`dirname ${PARENT}`
+  echo "TESTJAVA not set, selecting " ${TESTJAVA}
+  echo "If this is incorrect, try setting the variable manually."
+fi
+
+if [ "${TESTCLASSES}" = "" ]
+then
+  echo "TESTCLASSES not set.  Test cannot execute.  Failed."
+  exit 1
+fi
+
+# Jtreg sets TESTVMOPTS which may include -d64 which is
+# required to test a 64-bit JVM on some platforms.
+# If another test harness still creates HOME/JDK64BIT,
+# we can recognise that.
+
+# set platform-dependent variables
+OS=`uname -s`
+case "$OS" in
+  SunOS | Linux )
+    FS="/"
+    RM=/bin/rm
+    CP=/bin/cp
+    MV=/bin/mv
+    ## for solaris, linux it's HOME
+    FILE_LOCATION=$HOME
+    if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" ]
+    then
+        TESTVMOPTS=`cat ${FILE_LOCATION}${FS}JDK64BIT`
+    fi
+    ;;
+  Windows_* )
+    FS="\\"
+    RM=rm
+    CP=cp
+    MV=mv
+    ;;
+  * )
+    echo "Unrecognized system!"
+    exit 1;
+    ;;
+esac
+
+
+JAVA=${TESTJAVA}${FS}bin${FS}java
+
+# Don't test debug builds, they do read the config files:
+${JAVA} ${TESTVMOPTS} -version 2>&1 | grep "debug" >/dev/null
+if [ "$?" = "0" ]; then
+  echo Skipping test for debug build.
+  exit 0
+fi
+
+ok=yes
+
+$RM -f .hotspot_compiler .hotspotrc
+
+${JAVA} ${TESTVMOPTS} -version 2>&1 | grep "garbage in" >/dev/null
+if [ "$?" = "0" ]; then
+  echo "FAILED: base case failure"
+  exit 1
+fi
+
+
+echo "garbage in, garbage out" > .hotspot_compiler
+${JAVA} ${TESTVMOPTS} -version 2>&1 | grep "garbage in" >/dev/null
+if [ "$?" = "0" ]; then
+  echo "FAILED: .hotspot_compiler was read"
+  ok=no
+fi
+
+$MV .hotspot_compiler hs_comp.txt
+${JAVA} ${TESTVMOPTS} -XX:CompileCommandFile=hs_comp.txt -version 2>&1 | grep "garbage in" >/dev/null
+if [ "$?" = "1" ]; then
+  echo "FAILED: explicit compiler command file not read"
+  ok=no
+fi
+
+$RM -f .hotspot_compiler hs_comp.txt
+
+echo "garbage" > .hotspotrc
+${JAVA} ${TESTVMOPTS} -version 2>&1 | grep "garbage" >/dev/null
+if [ "$?" = "0" ]; then
+  echo "FAILED: .hotspotrc was read"
+  ok=no
+fi
+
+$MV .hotspotrc hs_flags.txt
+${JAVA} ${TESTVMOPTS} -XX:Flags=hs_flags.txt -version 2>&1 | grep "garbage" >/dev/null
+if [ "$?" = "1" ]; then
+  echo "FAILED: explicit flags file not read"
+  ok=no
+fi
+
+if [ "${ok}" = "no" ]; then 
+  echo "Some tests failed."
+  exit 1
+else 
+  echo "Passed"
+  exit 0
+fi
+

From 3e6d198cf73185722ec1c9538e8f2a52c341038f Mon Sep 17 00:00:00 2001
From: Tom Rodriguez 
Date: Wed, 4 Apr 2012 20:44:38 -0700
Subject: [PATCH 09/46] 7152811: Issues in client compiler

Reviewed-by: kvn, jrose
---
 hotspot/src/share/vm/ci/ciField.cpp | 36 +++++++++++++++++++++++------
 hotspot/src/share/vm/ci/ciField.hpp |  5 ++--
 2 files changed, 32 insertions(+), 9 deletions(-)

diff --git a/hotspot/src/share/vm/ci/ciField.cpp b/hotspot/src/share/vm/ci/ciField.cpp
index ab7bed4aa3e..e0090c2bcc0 100644
--- a/hotspot/src/share/vm/ci/ciField.cpp
+++ b/hotspot/src/share/vm/ci/ciField.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -67,7 +67,7 @@
 
 // ------------------------------------------------------------------
 // ciField::ciField
-ciField::ciField(ciInstanceKlass* klass, int index): _known_to_link_with(NULL) {
+ciField::ciField(ciInstanceKlass* klass, int index): _known_to_link_with_put(NULL), _known_to_link_with_get(NULL) {
   ASSERT_IN_VM;
   CompilerThread *thread = CompilerThread::current();
 
@@ -143,7 +143,7 @@ ciField::ciField(ciInstanceKlass* klass, int index): _known_to_link_with(NULL) {
   initialize_from(&field_desc);
 }
 
-ciField::ciField(fieldDescriptor *fd): _known_to_link_with(NULL) {
+ciField::ciField(fieldDescriptor *fd): _known_to_link_with_put(NULL), _known_to_link_with_get(NULL) {
   ASSERT_IN_VM;
 
   _cp_index = -1;
@@ -315,6 +315,10 @@ ciType* ciField::compute_type_impl() {
 bool ciField::will_link(ciInstanceKlass* accessing_klass,
                         Bytecodes::Code bc) {
   VM_ENTRY_MARK;
+  assert(bc == Bytecodes::_getstatic || bc == Bytecodes::_putstatic ||
+         bc == Bytecodes::_getfield  || bc == Bytecodes::_putfield,
+         "unexpected bytecode");
+
   if (_offset == -1) {
     // at creation we couldn't link to our holder so we need to
     // maintain that stance, otherwise there's no safe way to use this
@@ -322,8 +326,21 @@ bool ciField::will_link(ciInstanceKlass* accessing_klass,
     return false;
   }
 
-  if (_known_to_link_with == accessing_klass) {
-    return true;
+  // Check for static/nonstatic mismatch
+  bool is_static = (bc == Bytecodes::_getstatic || bc == Bytecodes::_putstatic);
+  if (is_static != this->is_static()) {
+    return false;
+  }
+
+  // Get and put can have different accessibility rules
+  bool is_put    = (bc == Bytecodes::_putfield  || bc == Bytecodes::_putstatic);
+  if (is_put) {
+    if (_known_to_link_with_put == accessing_klass) {
+      return true;
+    }
+    if (_known_to_link_with_get == accessing_klass) {
+      return true;
+    }
   }
 
   FieldAccessInfo result;
@@ -334,8 +351,13 @@ bool ciField::will_link(ciInstanceKlass* accessing_klass,
                               true, false, KILL_COMPILE_ON_FATAL_(false));
 
   // update the hit-cache, unless there is a problem with memory scoping:
-  if (accessing_klass->is_shared() || !is_shared())
-    _known_to_link_with = accessing_klass;
+  if (accessing_klass->is_shared() || !is_shared()) {
+    if (is_put) {
+      _known_to_link_with_put = accessing_klass;
+    } else {
+      _known_to_link_with_get = accessing_klass;
+    }
+  }
 
   return true;
 }
diff --git a/hotspot/src/share/vm/ci/ciField.hpp b/hotspot/src/share/vm/ci/ciField.hpp
index bd65abe9893..ff96c99313c 100644
--- a/hotspot/src/share/vm/ci/ciField.hpp
+++ b/hotspot/src/share/vm/ci/ciField.hpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -49,7 +49,8 @@ private:
   ciType*          _type;
   int              _offset;
   bool             _is_constant;
-  ciInstanceKlass* _known_to_link_with;
+  ciInstanceKlass* _known_to_link_with_put;
+  ciInstanceKlass* _known_to_link_with_get;
   ciConstant       _constant_value;
 
   // Used for will_link

From dcfcdd72ce123f9c2c902c2114b28d731270682b Mon Sep 17 00:00:00 2001
From: Joe Wang 
Date: Tue, 10 Apr 2012 13:59:21 -0700
Subject: [PATCH 10/46] 7157609: Issues with loop

Reviewed-by: hawtin, lancea, asaha
---
 .../org/apache/xerces/internal/impl/XMLScanner.java | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/jaxp/src/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java b/jaxp/src/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java
index 61fb43d1bc9..0c66aa236fa 100644
--- a/jaxp/src/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java
+++ b/jaxp/src/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java
@@ -402,6 +402,16 @@ public abstract class XMLScanner
 
         boolean dataFoundForTarget = false;
         boolean sawSpace = fEntityScanner.skipSpaces();
+        // since pseudoattributes are *not* attributes,
+        // their quotes don't need to be preserved in external parameter entities.
+        // the XMLEntityScanner#scanLiteral method will continue to
+        // emit -1 in such cases when it finds a quote; this is
+        // fine for other methods that parse scanned entities,
+        // but not for the scanning of pseudoattributes.  So,
+        // temporarily, we must mark the current entity as not being "literal"
+        Entity.ScannedEntity currEnt = fEntityManager.getCurrentEntity();
+        boolean currLiteral = currEnt.literal;
+        currEnt.literal = false;
         while (fEntityScanner.peekChar() != '?') {
             dataFoundForTarget = true;
             String name = scanPseudoAttribute(scanningTextDecl, fString);
@@ -499,6 +509,9 @@ public abstract class XMLScanner
             }
             sawSpace = fEntityScanner.skipSpaces();
         }
+        // restore original literal value
+        if(currLiteral)
+            currEnt.literal = true;
         // REVISIT: should we remove this error reporting?
         if (scanningTextDecl && state != STATE_DONE) {
             reportFatalError("MorePseudoAttributes", null);

From c3a386ef6dac0a4c96472be976be0758238ab134 Mon Sep 17 00:00:00 2001
From: Rob McKenna 
Date: Wed, 11 Apr 2012 17:47:56 -0700
Subject: [PATCH 11/46] 7143606: File.createTempFile should be improved for
 temporary files created by the platform

Reviewed-by: sherman
---
 .../classes/apple/applescript/AppleScriptEngine.java  |  5 +++--
 .../classes/com/sun/java/util/jar/pack/Driver.java    |  7 +++----
 jdk/src/share/classes/java/awt/Font.java              |  7 ++++---
 .../imageio/stream/FileCacheImageInputStream.java     | 10 +++++++---
 .../imageio/stream/FileCacheImageOutputStream.java    | 10 +++++++---
 .../share/classes/javax/management/loading/MLet.java  |  8 +++++---
 jdk/src/share/classes/sun/print/PSPrinterJob.java     |  5 +++--
 jdk/src/share/classes/sun/rmi/server/Activation.java  |  5 +++--
 jdk/src/share/classes/sun/tools/jar/Main.java         |  4 ++--
 .../share/classes/sun/tools/native2ascii/Main.java    | 11 ++++-------
 .../solaris/classes/sun/font/FcFontConfiguration.java |  5 +++--
 jdk/src/solaris/classes/sun/print/UnixPrintJob.java   |  5 +++--
 .../classes/sun/print/UnixPrintServiceLookup.java     |  5 +++--
 13 files changed, 50 insertions(+), 37 deletions(-)

diff --git a/jdk/src/macosx/classes/apple/applescript/AppleScriptEngine.java b/jdk/src/macosx/classes/apple/applescript/AppleScriptEngine.java
index 06a20d79e7c..917037b7998 100644
--- a/jdk/src/macosx/classes/apple/applescript/AppleScriptEngine.java
+++ b/jdk/src/macosx/classes/apple/applescript/AppleScriptEngine.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
 package apple.applescript;
 
 import java.io.*;
+import java.nio.file.Files;
 import java.util.*;
 import java.util.Map.Entry;
 
@@ -297,7 +298,7 @@ public class AppleScriptEngine implements ScriptEngine {
         File tmpfile;
         FileWriter tmpwrite;
         try {
-            tmpfile = File.createTempFile("AppleScriptEngine.", ".scpt");
+            tmpfile = Files.createTempFile("AppleScriptEngine.", ".scpt").toFile();
             tmpwrite = new FileWriter(tmpfile);
 
             // read in our input and write directly to tmpfile
diff --git a/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java b/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java
index f2ab7f0f1d4..960e2d40432 100644
--- a/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java
+++ b/jdk/src/share/classes/com/sun/java/util/jar/pack/Driver.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -35,6 +35,7 @@ import java.io.InputStream;
 import java.io.OutputStream;
 import java.io.PrintStream;
 import java.text.MessageFormat;
+import java.nio.file.Files;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
@@ -385,9 +386,7 @@ class Driver {
         if ( base.getParentFile() == null && suffix.equals(".bak"))
             where = new File(".").getAbsoluteFile();
 
-
-        File f = File.createTempFile(prefix, suffix, where);
-        return f;
+        return Files.createTempFile(where.toPath(), prefix, suffix).toFile();
     }
 
     static private
diff --git a/jdk/src/share/classes/java/awt/Font.java b/jdk/src/share/classes/java/awt/Font.java
index e3d48d6a236..4898c8aadc6 100644
--- a/jdk/src/share/classes/java/awt/Font.java
+++ b/jdk/src/share/classes/java/awt/Font.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -36,6 +36,7 @@ import java.awt.geom.Rectangle2D;
 import java.awt.peer.FontPeer;
 import java.io.*;
 import java.lang.ref.SoftReference;
+import java.nio.file.Files;
 import java.security.AccessController;
 import java.security.PrivilegedExceptionAction;
 import java.text.AttributedCharacterIterator.Attribute;
@@ -831,7 +832,7 @@ public class Font implements java.io.Serializable
         File f = null;
         boolean hasPerm = false;
         try {
-            f = File.createTempFile("+~JT", ".tmp", null);
+            f = Files.createTempFile("+~JT", ".tmp").toFile();
             f.delete();
             f = null;
             hasPerm = true;
@@ -881,7 +882,7 @@ public class Font implements java.io.Serializable
             final File tFile = AccessController.doPrivileged(
                 new PrivilegedExceptionAction() {
                     public File run() throws IOException {
-                        return File.createTempFile("+~JF", ".tmp", null);
+                        return Files.createTempFile("+~JF", ".tmp").toFile();
                     }
                 }
             );
diff --git a/jdk/src/share/classes/javax/imageio/stream/FileCacheImageInputStream.java b/jdk/src/share/classes/javax/imageio/stream/FileCacheImageInputStream.java
index dc106cff921..b581de9d0f8 100644
--- a/jdk/src/share/classes/javax/imageio/stream/FileCacheImageInputStream.java
+++ b/jdk/src/share/classes/javax/imageio/stream/FileCacheImageInputStream.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -29,6 +29,7 @@ import java.io.File;
 import java.io.InputStream;
 import java.io.IOException;
 import java.io.RandomAccessFile;
+import java.nio.file.Files;
 import com.sun.imageio.stream.StreamCloser;
 import com.sun.imageio.stream.StreamFinalizer;
 import sun.java2d.Disposer;
@@ -97,8 +98,11 @@ public class FileCacheImageInputStream extends ImageInputStreamImpl {
             throw new IllegalArgumentException("Not a directory!");
         }
         this.stream = stream;
-        this.cacheFile =
-            File.createTempFile("imageio", ".tmp", cacheDir);
+        if (cacheDir == null)
+            this.cacheFile = Files.createTempFile("imageio", ".tmp").toFile();
+        else
+            this.cacheFile = Files.createTempFile(cacheDir.toPath(), "imageio", ".tmp")
+                                  .toFile();
         this.cache = new RandomAccessFile(cacheFile, "rw");
 
         this.closeAction = StreamCloser.createCloseAction(this);
diff --git a/jdk/src/share/classes/javax/imageio/stream/FileCacheImageOutputStream.java b/jdk/src/share/classes/javax/imageio/stream/FileCacheImageOutputStream.java
index 79ce155f23b..c5379b1652a 100644
--- a/jdk/src/share/classes/javax/imageio/stream/FileCacheImageOutputStream.java
+++ b/jdk/src/share/classes/javax/imageio/stream/FileCacheImageOutputStream.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -29,6 +29,7 @@ import java.io.File;
 import java.io.IOException;
 import java.io.OutputStream;
 import java.io.RandomAccessFile;
+import java.nio.file.Files;
 import com.sun.imageio.stream.StreamCloser;
 
 /**
@@ -83,8 +84,11 @@ public class FileCacheImageOutputStream extends ImageOutputStreamImpl {
             throw new IllegalArgumentException("Not a directory!");
         }
         this.stream = stream;
-        this.cacheFile =
-            File.createTempFile("imageio", ".tmp", cacheDir);
+        if (cacheDir == null)
+            this.cacheFile = Files.createTempFile("imageio", ".tmp").toFile();
+        else
+            this.cacheFile = Files.createTempFile(cacheDir.toPath(), "imageio", ".tmp")
+                                  .toFile();
         this.cache = new RandomAccessFile(cacheFile, "rw");
 
         this.closeAction = StreamCloser.createCloseAction(this);
diff --git a/jdk/src/share/classes/javax/management/loading/MLet.java b/jdk/src/share/classes/javax/management/loading/MLet.java
index 38e7dfad0cf..3d6a5b71aa2 100644
--- a/jdk/src/share/classes/javax/management/loading/MLet.java
+++ b/jdk/src/share/classes/javax/management/loading/MLet.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -44,6 +44,7 @@ import java.lang.reflect.Constructor;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.net.URLStreamHandlerFactory;
+import java.nio.file.Files;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 import java.util.ArrayList;
@@ -1160,8 +1161,9 @@ public class MLet extends java.net.URLClassLoader
                  try {
                      File directory = new File(libraryDirectory);
                      directory.mkdirs();
-                     File file = File.createTempFile(libname + ".", null,
-                             directory);
+                     File file = Files.createTempFile(directory.toPath(),
+                                                      libname + ".", null)
+                                      .toFile();
                      file.deleteOnExit();
                      FileOutputStream fileOutput = new FileOutputStream(file);
                      try {
diff --git a/jdk/src/share/classes/sun/print/PSPrinterJob.java b/jdk/src/share/classes/sun/print/PSPrinterJob.java
index 49584f2f8a2..bae8a3e0acf 100644
--- a/jdk/src/share/classes/sun/print/PSPrinterJob.java
+++ b/jdk/src/share/classes/sun/print/PSPrinterJob.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -97,6 +97,7 @@ import sun.font.FontUtilities;
 import java.nio.charset.*;
 import java.nio.CharBuffer;
 import java.nio.ByteBuffer;
+import java.nio.file.Files;
 
 //REMIND: Remove use of this class when IPPPrintService is moved to share directory.
 import java.lang.reflect.Method;
@@ -659,7 +660,7 @@ public class PSPrinterJob extends RasterPrinterJob {
                      * is not removed for some reason, request that it is
                      * removed when the VM exits.
                      */
-                    spoolFile = File.createTempFile("javaprint", ".ps", null);
+                    spoolFile = Files.createTempFile("javaprint", ".ps").toFile();
                     spoolFile.deleteOnExit();
 
                 result = new FileOutputStream(spoolFile);
diff --git a/jdk/src/share/classes/sun/rmi/server/Activation.java b/jdk/src/share/classes/sun/rmi/server/Activation.java
index c1ec95e6784..d1946fafc2f 100644
--- a/jdk/src/share/classes/sun/rmi/server/Activation.java
+++ b/jdk/src/share/classes/sun/rmi/server/Activation.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -43,6 +43,7 @@ import java.net.ServerSocket;
 import java.net.Socket;
 import java.net.SocketAddress;
 import java.net.SocketException;
+import java.nio.file.Files;
 import java.nio.channels.Channel;
 import java.nio.channels.ServerSocketChannel;
 import java.rmi.AccessException;
@@ -1940,7 +1941,7 @@ public class Activation implements Serializable {
                     new PrivilegedExceptionAction() {
                         public Void run() throws IOException {
                             File file =
-                                File.createTempFile("rmid-err", null, null);
+                                Files.createTempFile("rmid-err", null).toFile();
                             PrintStream errStream =
                                 new PrintStream(new FileOutputStream(file));
                             System.setErr(errStream);
diff --git a/jdk/src/share/classes/sun/tools/jar/Main.java b/jdk/src/share/classes/sun/tools/jar/Main.java
index 486b19319ab..22ef9f7aee6 100644
--- a/jdk/src/share/classes/sun/tools/jar/Main.java
+++ b/jdk/src/share/classes/sun/tools/jar/Main.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -137,7 +137,7 @@ class Main {
         File dir = file.getParentFile();
         if (dir == null)
             dir = new File(".");
-        return File.createTempFile("jartmp", null, dir);
+        return Files.createTempFile(dir.toPath(), "jartmp", null).toFile();
     }
 
     private boolean ok;
diff --git a/jdk/src/share/classes/sun/tools/native2ascii/Main.java b/jdk/src/share/classes/sun/tools/native2ascii/Main.java
index 0423699bba4..6a941fe2e88 100644
--- a/jdk/src/share/classes/sun/tools/native2ascii/Main.java
+++ b/jdk/src/share/classes/sun/tools/native2ascii/Main.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -71,6 +71,7 @@ import java.text.MessageFormat;
 import java.nio.charset.CharsetEncoder;
 import java.nio.charset.Charset;
 import java.nio.charset.IllegalCharsetNameException;
+import java.nio.file.Files;
 import java.io.UnsupportedEncodingException;
 import java.nio.charset.UnsupportedCharsetException;
 import sun.tools.native2ascii.A2NFilter;
@@ -240,9 +241,7 @@ public class Main {
             if (tempDir == null)
                 tempDir = new File(System.getProperty("user.dir"));
 
-            tempFile = File.createTempFile("_N2A",
-                                           ".TMP",
-                                            tempDir);
+            tempFile = Files.createTempFile(tempDir.toPath(), "_N2A", ".TMP").toFile();
             tempFile.deleteOnExit();
 
             try {
@@ -292,9 +291,7 @@ public class Main {
             File tempDir = f.getParentFile();
             if (tempDir == null)
                 tempDir = new File(System.getProperty("user.dir"));
-            tempFile =  File.createTempFile("_N2A",
-                                            ".TMP",
-                                            tempDir);
+            tempFile =  Files.createTempFile(tempDir.toPath(), "_N2A", ".TMP").toFile();
             tempFile.deleteOnExit();
 
             try {
diff --git a/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java b/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java
index 14d8e7ed221..e33e08a867b 100644
--- a/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java
+++ b/jdk/src/solaris/classes/sun/font/FcFontConfiguration.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,7 @@ import java.io.IOException;
 import java.net.InetAddress;
 import java.net.UnknownHostException;
 import java.nio.charset.Charset;
+import java.nio.file.Files;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Properties;
@@ -387,7 +388,7 @@ public class FcFontConfiguration extends FontConfiguration {
             File fcInfoFile = getFcInfoFile();
             File dir = fcInfoFile.getParentFile();
             dir.mkdirs();
-            File tempFile = File.createTempFile("fcinfo", null, dir);
+            File tempFile = Files.createTempFile(dir.toPath(), "fcinfo", null).toFile();
             FileOutputStream fos = new FileOutputStream(tempFile);
             props.store(fos,
                       "JDK Font Configuration Generated File: *Do Not Edit*");
diff --git a/jdk/src/solaris/classes/sun/print/UnixPrintJob.java b/jdk/src/solaris/classes/sun/print/UnixPrintJob.java
index 206650de40e..620cf1cdd44 100644
--- a/jdk/src/solaris/classes/sun/print/UnixPrintJob.java
+++ b/jdk/src/solaris/classes/sun/print/UnixPrintJob.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -42,6 +42,7 @@ import java.io.PrintWriter;
 import java.io.Reader;
 import java.io.StringWriter;
 import java.io.UnsupportedEncodingException;
+import java.nio.file.Files;
 import java.util.Vector;
 
 import javax.print.CancelablePrintJob;
@@ -938,7 +939,7 @@ public class UnixPrintJob implements CancelablePrintJob {
                      * is not removed for some reason, request that it is
                      * removed when the VM exits.
                      */
-                    spoolFile = File.createTempFile("javaprint", ".ps", null);
+                    spoolFile = Files.createTempFile("javaprint", ".ps").toFile();
                     spoolFile.deleteOnExit();
                 }
                 result = new FileOutputStream(spoolFile);
diff --git a/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java b/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java
index c1de9bc1849..ba21006e0db 100644
--- a/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java
+++ b/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -51,6 +51,7 @@ import javax.print.attribute.standard.PrinterName;
 import java.io.File;
 import java.io.FileReader;
 import java.net.URL;
+import java.nio.file.Files;
 
 /*
  * Remind: This class uses solaris commands. We also need a linux
@@ -714,7 +715,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup
 
                         Process proc;
                         BufferedReader bufferedReader = null;
-                        File f = File.createTempFile("prn","xc");
+                        File f = Files.createTempFile("prn","xc").toFile();
                         cmd[2] = cmd[2]+">"+f.getAbsolutePath();
 
                         proc = Runtime.getRuntime().exec(cmd);

From 24500364ed888c69f3569bfefd96661493bde64e Mon Sep 17 00:00:00 2001
From: Tom Rodriguez 
Date: Thu, 12 Apr 2012 12:07:09 -0700
Subject: [PATCH 12/46] 7160677: missing else in fix for 7152811

Reviewed-by: kvn, kevinw
---
 hotspot/src/share/vm/ci/ciField.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hotspot/src/share/vm/ci/ciField.cpp b/hotspot/src/share/vm/ci/ciField.cpp
index e0090c2bcc0..b9bc23be361 100644
--- a/hotspot/src/share/vm/ci/ciField.cpp
+++ b/hotspot/src/share/vm/ci/ciField.cpp
@@ -338,6 +338,7 @@ bool ciField::will_link(ciInstanceKlass* accessing_klass,
     if (_known_to_link_with_put == accessing_klass) {
       return true;
     }
+  } else {
     if (_known_to_link_with_get == accessing_klass) {
       return true;
     }

From ff66fcc442a06303e2b96b1223e9472d7286b2de Mon Sep 17 00:00:00 2001
From: Keith McGuigan 
Date: Thu, 3 May 2012 15:37:46 -0400
Subject: [PATCH 13/46] 7160757: Problem with hotspot/runtime_classfile

Allow only current and super invokespecials of 

Reviewed-by: never, coleenp, dcubed
---
 hotspot/src/share/vm/classfile/verifier.cpp   |  6 +-
 hotspot/test/runtime/7160757/Test7160757.java | 82 +++++++++++++++++++
 2 files changed, 85 insertions(+), 3 deletions(-)
 create mode 100644 hotspot/test/runtime/7160757/Test7160757.java

diff --git a/hotspot/src/share/vm/classfile/verifier.cpp b/hotspot/src/share/vm/classfile/verifier.cpp
index 9ab47f7b664..376e878010c 100644
--- a/hotspot/src/share/vm/classfile/verifier.cpp
+++ b/hotspot/src/share/vm/classfile/verifier.cpp
@@ -1880,10 +1880,10 @@ void ClassVerifier::verify_invoke_init(
   VerificationType type = current_frame->pop_stack(
     VerificationType::reference_check(), CHECK_VERIFY(this));
   if (type == VerificationType::uninitialized_this_type()) {
-    // The method must be an  method of either this class, or one of its
-    // superclasses
+    // The method must be an  method of this class or its superclass
+    klassOop superk = current_class()->super();
     if (ref_class_type.name() != current_class()->name() &&
-        !name_in_supers(ref_class_type.name(), current_class())) {
+        ref_class_type.name() != superk->klass_part()->name()) {
       verify_error(bci, "Bad  method call");
       return;
     }
diff --git a/hotspot/test/runtime/7160757/Test7160757.java b/hotspot/test/runtime/7160757/Test7160757.java
new file mode 100644
index 00000000000..833e8b8963f
--- /dev/null
+++ b/hotspot/test/runtime/7160757/Test7160757.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/*
+ * @test Test7160757.java
+ * @bug 7160757
+ * @summary Tests that superclass initialization is not skipped
+ */
+
+public class Test7160757 {
+
+    public static void main(String args[]) throws Exception {
+
+        ClassLoader loader = new SLoader();
+        try {
+            Class.forName("S", true, loader);
+            System.out.println("FAILED");
+            throw new Exception("Should have thrown a VerifyError.");
+        } catch (VerifyError e) {
+            System.out.println(e);
+            System.out.println("PASSED");
+        }
+    }
+
+    static class SLoader extends ClassLoader {
+
+        /**
+         * public class S extends Throwable {
+         *     public S() {
+         *         aload_0
+         *         invokespecial Object.()
+         *         return
+         *     }
+         * }
+         */
+        static byte b(int i) { return (byte)i; }
+        static byte S_class[] = {
+            b(0xca), b(0xfe), b(0xba), b(0xbe), 0x00, 0x00, 0x00, 0x32,
+            0x00, 0x0c, 0x0a, 0x00, 0x0b, 0x00, 0x07, 0x07,
+            0x00, 0x08, 0x07, 0x00, 0x09, 0x01, 0x00, 0x06,
+            0x3c, 0x69, 0x6e, 0x69, 0x74, 0x3e, 0x01, 0x00,
+            0x03, 0x28, 0x29, 0x56, 0x01, 0x00, 0x04, 0x43,
+            0x6f, 0x64, 0x65, 0x0c, 0x00, 0x04, 0x00, 0x05,
+            0x01, 0x00, 0x01, 0x53, 0x01, 0x00, 0x13, 0x6a,
+            0x61, 0x76, 0x61, 0x2f, 0x6c, 0x61, 0x6e, 0x67,
+            0x2f, 0x54, 0x68, 0x72, 0x6f, 0x77, 0x61, 0x62,
+            0x6c, 0x65, 0x01, 0x00, 0x10, 0x6a, 0x61, 0x76,
+            0x61, 0x2f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x4f,
+            0x62, 0x6a, 0x65, 0x63, 0x74, 0x07, 0x00, 0x0a,
+            0x00, 0x21, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00,
+            0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x04,
+            0x00, 0x05, 0x00, 0x01, 0x00, 0x06, 0x00, 0x00,
+            0x00, 0x11, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00,
+            0x00, 0x05, 0x2a, b(0xb7), 0x00, 0x01, b(0xb1), 0x00,
+            0x00, 0x00, 0x00, 0x00, 0x00
+        };
+
+        public Class findClass(String name) throws ClassNotFoundException {
+            return defineClass(name, S_class, 0, S_class.length);
+        }
+    }
+}

From 6e3d96dc67f6d71b30f38b54b8130c8d818e100e Mon Sep 17 00:00:00 2001
From: Sean Coffey 
Date: Thu, 17 May 2012 12:21:16 +0100
Subject: [PATCH 14/46] 7123896: Unexpected behavior due to Solaris using
 separate IPv4 and IPv6 port spaces

Reviewed-by: alanb
---
 jdk/src/share/native/java/net/net_util.c      |  4 +-
 jdk/src/share/native/java/net/net_util.h      |  3 +-
 jdk/src/solaris/native/java/net/net_util_md.c | 42 ++++++++++++++-----
 jdk/src/windows/native/java/net/net_util_md.c |  1 +
 .../net/Socket/setReuseAddress/Basic.java     |  9 +++-
 .../net/Socket/setReuseAddress/Restart.java   |  8 ++++
 6 files changed, 54 insertions(+), 13 deletions(-)

diff --git a/jdk/src/share/native/java/net/net_util.c b/jdk/src/share/native/java/net/net_util.c
index 68776c1ce0c..d7a6de2073d 100644
--- a/jdk/src/share/native/java/net/net_util.c
+++ b/jdk/src/share/native/java/net/net_util.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -68,6 +68,8 @@ JNI_OnLoad(JavaVM *vm, void *reserved)
     */
     IPv6_available = IPv6_supported() & (!preferIPv4Stack);
     initLocalAddrTable ();
+    parseExclusiveBindProperty(env);
+
     return JNI_VERSION_1_2;
 }
 
diff --git a/jdk/src/share/native/java/net/net_util.h b/jdk/src/share/native/java/net/net_util.h
index d87ffdad280..809cbba6eb2 100644
--- a/jdk/src/share/native/java/net/net_util.h
+++ b/jdk/src/share/native/java/net/net_util.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -120,6 +120,7 @@ JNIEXPORT jobject JNICALL
 NET_SockaddrToInetAddress(JNIEnv *env, struct sockaddr *him, int *port);
 
 void initLocalAddrTable ();
+void parseExclusiveBindProperty(JNIEnv *env);
 
 void
 NET_SetTrafficClass(struct sockaddr *him, int trafficClass);
diff --git a/jdk/src/solaris/native/java/net/net_util_md.c b/jdk/src/solaris/native/java/net/net_util_md.c
index f7e6d6a02ab..469f4657adb 100644
--- a/jdk/src/solaris/native/java/net/net_util_md.c
+++ b/jdk/src/solaris/native/java/net/net_util_md.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -76,7 +76,7 @@ gai_strerror_f gai_strerror_ptr = NULL;
 getnameinfo_f getnameinfo_ptr = NULL;
 
 /*
- * EXCLBIND socket options only on Solaris 8 & 9.
+ * EXCLBIND socket options only on Solaris
  */
 #if defined(__solaris__) && !defined(TCP_EXCLBIND)
 #define TCP_EXCLBIND            0x21
@@ -113,6 +113,7 @@ void setDefaultScopeID(JNIEnv *env, struct sockaddr *him)
 static int init_tcp_max_buf, init_udp_max_buf;
 static int tcp_max_buf;
 static int udp_max_buf;
+static int useExclBind = 0;
 
 /*
  * Get the specified parameter from the specified driver. The value
@@ -747,6 +748,26 @@ void initLocalAddrTable () {}
 
 #endif
 
+void parseExclusiveBindProperty(JNIEnv *env) {
+#ifdef __solaris__
+    jstring s, flagSet;
+    jclass iCls;
+    jmethodID mid;
+
+    s = (*env)->NewStringUTF(env, "sun.net.useExclusiveBind");
+    CHECK_NULL(s);
+    iCls = (*env)->FindClass(env, "java/lang/System");
+    CHECK_NULL(iCls);
+    mid = (*env)->GetStaticMethodID(env, iCls, "getProperty",
+                "(Ljava/lang/String;)Ljava/lang/String;");
+    CHECK_NULL(mid);
+    flagSet = (*env)->CallStaticObjectMethod(env, iCls, mid, s);
+    if (flagSet != NULL) {
+        useExclBind = 1;
+    }
+#endif
+}
+
 /* In the case of an IPv4 Inetaddress this method will return an
  * IPv4 mapped address where IPv6 is available and v4MappedAddress is TRUE.
  * Otherwise it will return a sockaddr_in structure for an IPv4 InetAddress.
@@ -1450,8 +1471,8 @@ NET_SetSockOpt(int fd, int level, int  opt, const void *arg,
  * Linux allows a socket to bind to 127.0.0.255 which must be
  * caught.
  *
- * On Solaris 8/9 with IPv6 enabled we must use an exclusive
- * bind to guaranteed a unique port number across the IPv4 and
+ * On Solaris with IPv6 enabled we must use an exclusive
+ * bind to guarantee a unique port number across the IPv4 and
  * IPv6 port spaces.
  *
  */
@@ -1481,10 +1502,10 @@ NET_Bind(int fd, struct sockaddr *him, int len)
 
 #if defined(__solaris__) && defined(AF_INET6)
     /*
-     * Solaris 8/9 have seperate IPv4 and IPv6 port spaces so we
+     * Solaris has separate IPv4 and IPv6 port spaces so we
      * use an exclusive bind when SO_REUSEADDR is not used to
      * give the illusion of a unified port space.
-     * This also avoid problems with IPv6 sockets connecting
+     * This also avoids problems with IPv6 sockets connecting
      * to IPv4 mapped addresses whereby the socket conversion
      * results in a late bind that fails because the
      * corresponding IPv4 port is in use.
@@ -1493,11 +1514,12 @@ NET_Bind(int fd, struct sockaddr *him, int len)
         int arg, len;
 
         len = sizeof(arg);
-        if (getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *)&arg,
-                       &len) == 0) {
-            if (arg == 0) {
+        if (useExclBind || getsockopt(fd, SOL_SOCKET, SO_REUSEADDR,
+                       (char *)&arg, &len) == 0) {
+            if (useExclBind || arg == 0) {
                 /*
-                 * SO_REUSEADDR is disabled so enable TCP_EXCLBIND or
+                 * SO_REUSEADDR is disabled or sun.net.useExclusiveBind
+                 * property is true so enable TCP_EXCLBIND or
                  * UDP_EXCLBIND
                  */
                 len = sizeof(arg);
diff --git a/jdk/src/windows/native/java/net/net_util_md.c b/jdk/src/windows/native/java/net/net_util_md.c
index 4cf522e786a..cd3efe922bc 100644
--- a/jdk/src/windows/native/java/net/net_util_md.c
+++ b/jdk/src/windows/native/java/net/net_util_md.c
@@ -126,6 +126,7 @@ DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
 }
 
 void initLocalAddrTable () {}
+void parseExclusiveBindProperty (JNIEnv *env) {}
 
 /*
  * Since winsock doesn't have the equivalent of strerror(errno)
diff --git a/jdk/test/java/net/Socket/setReuseAddress/Basic.java b/jdk/test/java/net/Socket/setReuseAddress/Basic.java
index 37c3f3b70b8..1b5757589f9 100644
--- a/jdk/test/java/net/Socket/setReuseAddress/Basic.java
+++ b/jdk/test/java/net/Socket/setReuseAddress/Basic.java
@@ -26,6 +26,8 @@
  * @bug 4476378
  * @summary Check the specific behaviour of the setReuseAddress(boolean)
  * method.
+ * @run main Basic
+ * @run main/othervm -Dsun.net.useExclusiveBind Basic
  */
 import java.net.*;
 
@@ -170,7 +172,12 @@ public class Basic {
             s2.bind( new InetSocketAddress(s1.getLocalPort()) );
             passed();
         } catch (BindException e) {
-            failed();
+            if (System.getProperty("sun.net.useExclusiveBind") != null) {
+                // exclusive bind enabled - expected result
+                passed();
+            } else {
+                failed();
+            }
         }
         s2.close();
 
diff --git a/jdk/test/java/net/Socket/setReuseAddress/Restart.java b/jdk/test/java/net/Socket/setReuseAddress/Restart.java
index 051e322e43f..8287141af4c 100644
--- a/jdk/test/java/net/Socket/setReuseAddress/Restart.java
+++ b/jdk/test/java/net/Socket/setReuseAddress/Restart.java
@@ -26,6 +26,8 @@
  * @bug 4476378
  * @summary Check that SO_REUSEADDR allows a server to restart
  *          after a crash.
+ * @run main Restart
+ * @run main/othervm -Dsun.net.useExclusiveBind Restart
  */
 import java.net.*;
 
@@ -57,6 +59,12 @@ public class Restart {
 
             // close the client socket
             s1.close();
+        } catch (BindException be) {
+            if (System.getProperty("sun.net.useExclusiveBind") != null) {
+                // exclusive bind, expected exception
+            } else {
+                throw be;
+            }
         } finally {
             if (ss != null) ss.close();
             if (s1 != null) s1.close();

From 6b14cf6b82e48b06c8611d8856b2b7a7eec1457c Mon Sep 17 00:00:00 2001
From: John R Rose 
Date: Fri, 18 May 2012 20:31:28 -0700
Subject: [PATCH 15/46] 7165628: Issues with
 java.lang.invoke.MethodHandles.Lookup

Base SecurityManager checks on either of Lookup.lookupClass or caller class; also clarify Lookup access checks.

Reviewed-by: twisti
---
 .../java/lang/invoke/MethodHandles.java       |  33 +-
 .../classes/sun/invoke/util/VerifyAccess.java |  43 +-
 .../java/lang/invoke/AccessControlTest.java   | 495 ++++++++++++++++++
 .../Acquaintance_remote.java                  |  42 ++
 4 files changed, 591 insertions(+), 22 deletions(-)
 create mode 100644 jdk/test/java/lang/invoke/AccessControlTest.java
 create mode 100644 jdk/test/java/lang/invoke/AccessControlTest_subpkg/Acquaintance_remote.java

diff --git a/jdk/src/share/classes/java/lang/invoke/MethodHandles.java b/jdk/src/share/classes/java/lang/invoke/MethodHandles.java
index 58b7e6d507f..536ec64d8ac 100644
--- a/jdk/src/share/classes/java/lang/invoke/MethodHandles.java
+++ b/jdk/src/share/classes/java/lang/invoke/MethodHandles.java
@@ -407,7 +407,7 @@ public class MethodHandles {
          * an access$N method.
          */
         Lookup() {
-            this(getCallerClassAtEntryPoint(), ALL_MODES);
+            this(getCallerClassAtEntryPoint(false), ALL_MODES);
             // make sure we haven't accidentally picked up a privileged class:
             checkUnprivilegedlookupClass(lookupClass);
         }
@@ -461,8 +461,8 @@ public class MethodHandles {
                 && !VerifyAccess.isSamePackageMember(this.lookupClass, requestedLookupClass)) {
                 newModes &= ~PRIVATE;
             }
-            if (newModes == PUBLIC
-                && !VerifyAccess.isClassAccessible(requestedLookupClass, this.lookupClass)) {
+            if ((newModes & PUBLIC) != 0
+                && !VerifyAccess.isClassAccessible(requestedLookupClass, this.lookupClass, allowedModes)) {
                 // The requested class it not accessible from the lookup class.
                 // No permissions.
                 newModes = 0;
@@ -540,13 +540,17 @@ public class MethodHandles {
             }
         }
 
-        // call this from an entry point method in Lookup with extraFrames=0.
-        private static Class getCallerClassAtEntryPoint() {
+        /* Obtain the external caller class, when called from Lookup. or a first-level subroutine. */
+        private static Class getCallerClassAtEntryPoint(boolean inSubroutine) {
             final int CALLER_DEPTH = 4;
+            //  Stack for the constructor entry point (inSubroutine=false):
             // 0: Reflection.getCC, 1: getCallerClassAtEntryPoint,
             // 2: Lookup., 3: MethodHandles.*, 4: caller
+            //  The stack is slightly different for a subroutine of a Lookup.find* method:
+            // 2: Lookup.*, 3: Lookup.find*.*, 4: caller
             // Note:  This should be the only use of getCallerClass in this file.
-            assert(Reflection.getCallerClass(CALLER_DEPTH-1) == MethodHandles.class);
+            assert(Reflection.getCallerClass(CALLER_DEPTH-2) == Lookup.class);
+            assert(Reflection.getCallerClass(CALLER_DEPTH-1) == (inSubroutine ? Lookup.class : MethodHandles.class));
             return Reflection.getCallerClass(CALLER_DEPTH);
         }
 
@@ -1087,7 +1091,7 @@ return mh1;
 
         void checkSymbolicClass(Class refc) throws IllegalAccessException {
             Class caller = lookupClassOrNull();
-            if (caller != null && !VerifyAccess.isClassAccessible(refc, caller))
+            if (caller != null && !VerifyAccess.isClassAccessible(refc, caller, allowedModes))
                 throw new MemberName(refc).makeAccessException("symbolic reference class is not public", this);
         }
 
@@ -1102,7 +1106,13 @@ return mh1;
             // Step 1:
             smgr.checkMemberAccess(refc, Member.PUBLIC);
             // Step 2:
-            if (!VerifyAccess.classLoaderIsAncestor(lookupClass, refc))
+            Class callerClass = ((allowedModes & PRIVATE) != 0
+                                    ? lookupClass  // for strong access modes, no extra check
+                                    // next line does stack walk magic; do not refactor:
+                                    : getCallerClassAtEntryPoint(true));
+            if (!VerifyAccess.classLoaderIsAncestor(lookupClass, refc) ||
+                (callerClass != lookupClass &&
+                 !VerifyAccess.classLoaderIsAncestor(callerClass, refc)))
                 smgr.checkPackageAccess(VerifyAccess.getPackageName(refc));
             // Step 3:
             if (m.isPublic()) return;
@@ -1153,9 +1163,10 @@ return mh1;
             int requestedModes = fixmods(mods);  // adjust 0 => PACKAGE
             if ((requestedModes & allowedModes) != 0
                 && VerifyAccess.isMemberAccessible(refc, m.getDeclaringClass(),
-                                                   mods, lookupClass()))
+                                                   mods, lookupClass(), allowedModes))
                 return;
             if (((requestedModes & ~allowedModes) & PROTECTED) != 0
+                && (allowedModes & PACKAGE) != 0
                 && VerifyAccess.isSamePackage(m.getDeclaringClass(), lookupClass()))
                 // Protected members can also be checked as if they were package-private.
                 return;
@@ -1170,9 +1181,9 @@ return mh1;
                                (defc == refc ||
                                 Modifier.isPublic(refc.getModifiers())));
             if (!classOK && (allowedModes & PACKAGE) != 0) {
-                classOK = (VerifyAccess.isClassAccessible(defc, lookupClass()) &&
+                classOK = (VerifyAccess.isClassAccessible(defc, lookupClass(), ALL_MODES) &&
                            (defc == refc ||
-                            VerifyAccess.isClassAccessible(refc, lookupClass())));
+                            VerifyAccess.isClassAccessible(refc, lookupClass(), ALL_MODES)));
             }
             if (!classOK)
                 return "class is not public";
diff --git a/jdk/src/share/classes/sun/invoke/util/VerifyAccess.java b/jdk/src/share/classes/sun/invoke/util/VerifyAccess.java
index 608a991c086..bf946a884d0 100644
--- a/jdk/src/share/classes/sun/invoke/util/VerifyAccess.java
+++ b/jdk/src/share/classes/sun/invoke/util/VerifyAccess.java
@@ -37,6 +37,8 @@ public class VerifyAccess {
     private VerifyAccess() { }  // cannot instantiate
 
     private static final int PACKAGE_ONLY = 0;
+    private static final int PACKAGE_ALLOWED = java.lang.invoke.MethodHandles.Lookup.PACKAGE;
+    private static final int PROTECTED_OR_PACKAGE_ALLOWED = (PACKAGE_ALLOWED|PROTECTED);
     private static final int ALL_ACCESS_MODES = (PUBLIC|PRIVATE|PROTECTED|PACKAGE_ONLY);
     private static final boolean ALLOW_NESTMATE_ACCESS = false;
 
@@ -82,14 +84,19 @@ public class VerifyAccess {
     public static boolean isMemberAccessible(Class refc,  // symbolic ref class
                                              Class defc,  // actual def class
                                              int      mods,  // actual member mods
-                                             Class lookupClass) {
+                                             Class lookupClass,
+                                             int      allowedModes) {
+        if (allowedModes == 0)  return false;
+        assert((allowedModes & PUBLIC) != 0 &&
+               (allowedModes & ~(ALL_ACCESS_MODES|PACKAGE_ALLOWED)) == 0);
         // Usually refc and defc are the same, but if they differ, verify them both.
         if (refc != defc) {
-            if (!isClassAccessible(refc, lookupClass)) {
+            if (!isClassAccessible(refc, lookupClass, allowedModes)) {
                 // Note that defc is verified in the switch below.
                 return false;
             }
-            if ((mods & (ALL_ACCESS_MODES|STATIC)) == (PROTECTED|STATIC)) {
+            if ((mods & (ALL_ACCESS_MODES|STATIC)) == (PROTECTED|STATIC) &&
+                (allowedModes & PROTECTED_OR_PACKAGE_ALLOWED) != 0) {
                 // Apply the special rules for refc here.
                 if (!isRelatedClass(refc, lookupClass))
                     return isSamePackage(defc, lookupClass);
@@ -98,19 +105,28 @@ public class VerifyAccess {
                 // a superclass of the lookup class.
             }
         }
-        if (defc == lookupClass)
+        if (defc == lookupClass &&
+            (allowedModes & PRIVATE) != 0)
             return true;        // easy check; all self-access is OK
         switch (mods & ALL_ACCESS_MODES) {
         case PUBLIC:
             if (refc != defc)  return true;  // already checked above
-            return isClassAccessible(refc, lookupClass);
+            return isClassAccessible(refc, lookupClass, allowedModes);
         case PROTECTED:
-            return isSamePackage(defc, lookupClass) || isPublicSuperClass(defc, lookupClass);
-        case PACKAGE_ONLY:
-            return isSamePackage(defc, lookupClass);
+            if ((allowedModes & PROTECTED_OR_PACKAGE_ALLOWED) != 0 &&
+                isSamePackage(defc, lookupClass))
+                return true;
+            if ((allowedModes & PROTECTED) != 0 &&
+                isPublicSuperClass(defc, lookupClass))
+                return true;
+            return false;
+        case PACKAGE_ONLY:  // That is, zero.  Unmarked member is package-only access.
+            return ((allowedModes & PACKAGE_ALLOWED) != 0 &&
+                    isSamePackage(defc, lookupClass));
         case PRIVATE:
             // Loosened rules for privates follows access rules for inner classes.
             return (ALLOW_NESTMATE_ACCESS &&
+                    (allowedModes & PRIVATE) != 0 &&
                     isSamePackageMember(defc, lookupClass));
         default:
             throw new IllegalArgumentException("bad modifiers: "+Modifier.toString(mods));
@@ -138,11 +154,16 @@ public class VerifyAccess {
      * @param refc the symbolic reference class to which access is being checked (C)
      * @param lookupClass the class performing the lookup (D)
      */
-    public static boolean isClassAccessible(Class refc, Class lookupClass) {
+    public static boolean isClassAccessible(Class refc, Class lookupClass,
+                                            int allowedModes) {
+        if (allowedModes == 0)  return false;
+        assert((allowedModes & PUBLIC) != 0 &&
+               (allowedModes & ~(ALL_ACCESS_MODES|PACKAGE_ALLOWED)) == 0);
         int mods = refc.getModifiers();
         if (isPublic(mods))
             return true;
-        if (isSamePackage(lookupClass, refc))
+        if ((allowedModes & PACKAGE_ALLOWED) != 0 &&
+            isSamePackage(lookupClass, refc))
             return true;
         return false;
     }
@@ -157,7 +178,7 @@ public class VerifyAccess {
         assert(!class1.isArray() && !class2.isArray());
         if (class1 == class2)
             return true;
-        if (!loadersAreRelated(class1.getClassLoader(), class2.getClassLoader(), false))
+        if (class1.getClassLoader() != class2.getClassLoader())
             return false;
         String name1 = class1.getName(), name2 = class2.getName();
         int dot = name1.lastIndexOf('.');
diff --git a/jdk/test/java/lang/invoke/AccessControlTest.java b/jdk/test/java/lang/invoke/AccessControlTest.java
new file mode 100644
index 00000000000..d36b2251b4a
--- /dev/null
+++ b/jdk/test/java/lang/invoke/AccessControlTest.java
@@ -0,0 +1,495 @@
+/*
+ * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/* @test
+ * @summary test access checking by java.lang.invoke.MethodHandles.Lookup
+ * @library ../../../..
+ * @build test.java.lang.invoke.AccessControlTest
+ * @build test.java.lang.invoke.AccessControlTest_subpkg.Acquaintance_remote
+ * @run junit/othervm test.java.lang.invoke.AccessControlTest
+ */
+
+package test.java.lang.invoke;
+
+import java.lang.invoke.*;
+import java.lang.reflect.*;
+import java.util.*;
+import org.junit.*;
+
+import static java.lang.invoke.MethodHandles.*;
+import static java.lang.invoke.MethodHandles.Lookup.*;
+import static java.lang.invoke.MethodType.*;
+import static org.junit.Assert.*;
+import test.java.lang.invoke.AccessControlTest_subpkg.Acquaintance_remote;
+
+
+/**
+ * Test many combinations of Lookup access and cross-class lookupStatic.
+ * @author jrose
+ */
+public class AccessControlTest {
+    static final Class THIS_CLASS = AccessControlTest.class;
+    // How much output?
+    static int verbosity = 0;
+    static {
+        String vstr = System.getProperty(THIS_CLASS.getSimpleName()+".verbosity");
+        if (vstr == null)
+            vstr = System.getProperty(THIS_CLASS.getName()+".verbosity");
+        if (vstr != null)  verbosity = Integer.parseInt(vstr);
+    }
+
+    private class LookupCase implements Comparable {
+        final Lookup   lookup;
+        final Class lookupClass;
+        final int      lookupModes;
+        public LookupCase(Lookup lookup) {
+            this.lookup = lookup;
+            this.lookupClass = lookup.lookupClass();
+            this.lookupModes = lookup.lookupModes();
+            assert(lookupString().equals(lookup.toString()));
+            numberOf(lookupClass().getClassLoader()); // assign CL#
+        }
+        public LookupCase(Class lookupClass, int lookupModes) {
+            this.lookup = null;
+            this.lookupClass = lookupClass;
+            this.lookupModes = lookupModes;
+            numberOf(lookupClass().getClassLoader()); // assign CL#
+        }
+
+        public final Class lookupClass() { return lookupClass; }
+        public final int      lookupModes() { return lookupModes; }
+
+        public Lookup lookup() { lookup.getClass(); return lookup; }
+
+        @Override
+        public int compareTo(LookupCase that) {
+            Class c1 = this.lookupClass();
+            Class c2 = that.lookupClass();
+            if (c1 != c2) {
+                int cmp = c1.getName().compareTo(c2.getName());
+                if (cmp != 0)  return cmp;
+                cmp = numberOf(c1.getClassLoader()) - numberOf(c2.getClassLoader());
+                assert(cmp != 0);
+                return cmp;
+            }
+            return -(this.lookupModes() - that.lookupModes());
+        }
+
+        @Override
+        public boolean equals(Object that) {
+            return (that instanceof LookupCase && equals((LookupCase)that));
+        }
+        public boolean equals(LookupCase that) {
+            return (this.lookupClass() == that.lookupClass() &&
+                    this.lookupModes() == that.lookupModes());
+        }
+
+        @Override
+        public int hashCode() {
+            return lookupClass().hashCode() + (lookupModes() * 31);
+        }
+
+        /** Simulate all assertions in the spec. for Lookup.toString. */
+        private String lookupString() {
+            String name = lookupClass.getName();
+            String suffix = "";
+            if (lookupModes == 0)
+                suffix = "/noaccess";
+            else if (lookupModes == PUBLIC)
+                suffix = "/public";
+            else if (lookupModes == (PUBLIC|PACKAGE))
+                suffix = "/package";
+            else if (lookupModes == (PUBLIC|PACKAGE|PRIVATE))
+                suffix = "/private";
+            else if (lookupModes == (PUBLIC|PACKAGE|PRIVATE|PROTECTED))
+                suffix = "";
+            else
+                suffix = "/#"+Integer.toHexString(lookupModes);
+            return name+suffix;
+        }
+
+        /** Simulate all assertions from the spec. for Lookup.in:
+         * 
+ * Creates a lookup on the specified new lookup class. + * [A1] The resulting object will report the specified + * class as its own {@link #lookupClass lookupClass}. + *

+ * [A2] However, the resulting {@code Lookup} object is guaranteed + * to have no more access capabilities than the original. + * In particular, access capabilities can be lost as follows:

    + *
  • [A3] If the new lookup class differs from the old one, + * protected members will not be accessible by virtue of inheritance. + * (Protected members may continue to be accessible because of package sharing.) + *
  • [A4] If the new lookup class is in a different package + * than the old one, protected and default (package) members will not be accessible. + *
  • [A5] If the new lookup class is not within the same package member + * as the old one, private members will not be accessible. + *
  • [A6] If the new lookup class is not accessible to the old lookup class, + * using the original access modes, + * then no members, not even public members, will be accessible. + * [A7] (In all other cases, public members will continue to be accessible.) + *
+ * Other than the above cases, the new lookup will have the same + * access capabilities as the original. [A8] + *
+ */ + public LookupCase in(Class c2) { + Class c1 = lookupClass(); + int m1 = lookupModes(); + int changed = 0; + boolean samePackage = (c1.getClassLoader() == c2.getClassLoader() && + packagePrefix(c1).equals(packagePrefix(c2))); + boolean sameTopLevel = (topLevelClass(c1) == topLevelClass(c2)); + boolean sameClass = (c1 == c2); + assert(samePackage || !sameTopLevel); + assert(sameTopLevel || !sameClass); + boolean accessible = sameClass; // [A6] + if ((m1 & PACKAGE) != 0) accessible |= samePackage; + if ((m1 & PUBLIC ) != 0) accessible |= (c2.getModifiers() & PUBLIC) != 0; + if (!accessible) { + // Different package and no access to c2; lose all access. + changed |= (PUBLIC|PACKAGE|PRIVATE|PROTECTED); // [A6] + } + if (!samePackage) { + // Different package; lose PACKAGE and lower access. + changed |= (PACKAGE|PRIVATE|PROTECTED); // [A4] + } + if (!sameTopLevel) { + // Different top-level class. Lose PRIVATE and lower access. + changed |= (PRIVATE|PROTECTED); // [A5] + } + if (!sameClass) { + changed |= (PROTECTED); // [A3] + } else { + assert(changed == 0); // [A8] (no deprivation if same class) + } + if (accessible) assert((changed & PUBLIC) == 0); // [A7] + int m2 = m1 & ~changed; + LookupCase l2 = new LookupCase(c2, m2); + assert(l2.lookupClass() == c2); // [A1] + assert((m1 | m2) == m1); // [A2] (no elevation of access) + return l2; + } + + @Override + public String toString() { + String s = lookupClass().getSimpleName(); + String lstr = lookupString(); + int sl = lstr.indexOf('/'); + if (sl >= 0) s += lstr.substring(sl); + ClassLoader cld = lookupClass().getClassLoader(); + if (cld != THIS_LOADER) s += "/loader#"+numberOf(cld); + return s; + } + + /** Predict the success or failure of accessing this method. */ + public boolean willAccess(Method m) { + Class c1 = lookupClass(); + Class c2 = m.getDeclaringClass(); + LookupCase lc = this.in(c2); + int m1 = lc.lookupModes(); + int m2 = fixMods(m.getModifiers()); + // privacy is strictly enforced on lookups + if (c1 != c2) m1 &= ~PRIVATE; + // protected access is sometimes allowed + if ((m2 & PROTECTED) != 0) { + int prev = m2; + m2 |= PACKAGE; // it acts like a package method also + if ((lookupModes() & PROTECTED) != 0 && + c2.isAssignableFrom(c1)) + m2 |= PUBLIC; // from a subclass, it acts like a public method also + } + if (verbosity >= 2) + System.out.println(this+" willAccess "+lc+" m1="+m1+" m2="+m2+" => "+((m2 & m1) != 0)); + return (m2 & m1) != 0; + } + } + + private static Class topLevelClass(Class cls) { + Class c = cls; + for (Class ec; (ec = c.getEnclosingClass()) != null; ) + c = ec; + assert(c.getEnclosingClass() == null); + assert(c == cls || cls.getEnclosingClass() != null); + return c; + } + + private static String packagePrefix(Class c) { + while (c.isArray()) c = c.getComponentType(); + String s = c.getName(); + assert(s.indexOf('/') < 0); + return s.substring(0, s.lastIndexOf('.')+1); + } + + + private final TreeSet CASES = new TreeSet<>(); + private final TreeMap> CASE_EDGES = new TreeMap<>(); + private final ArrayList LOADERS = new ArrayList<>(); + private final ClassLoader THIS_LOADER = this.getClass().getClassLoader(); + { if (THIS_LOADER != null) LOADERS.add(THIS_LOADER); } // #1 + + private LookupCase lookupCase(String name) { + for (LookupCase lc : CASES) { + if (lc.toString().equals(name)) + return lc; + } + throw new AssertionError(name); + } + + private int numberOf(ClassLoader cl) { + if (cl == null) return 0; + int i = LOADERS.indexOf(cl); + if (i < 0) { + i = LOADERS.size(); + LOADERS.add(cl); + } + return i+1; + } + + private void addLookupEdge(LookupCase l1, Class c2, LookupCase l2) { + TreeSet edges = CASE_EDGES.get(l2); + if (edges == null) CASE_EDGES.put(l2, edges = new TreeSet<>()); + if (edges.add(l1)) { + Class c1 = l1.lookupClass(); + assert(l2.lookupClass() == c2); // [A1] + int m1 = l1.lookupModes(); + int m2 = l2.lookupModes(); + assert((m1 | m2) == m1); // [A2] (no elevation of access) + LookupCase expect = l1.in(c2); + if (!expect.equals(l2)) + System.out.println("*** expect "+l1+" => "+expect+" but got "+l2); + assertEquals(expect, l2); + } + } + + private void makeCases(Lookup[] originalLookups) { + // make initial set of lookup test cases + CASES.clear(); LOADERS.clear(); CASE_EDGES.clear(); + ArrayList> classes = new ArrayList<>(); + for (Lookup l : originalLookups) { + CASES.add(new LookupCase(l)); + classes.remove(l.lookupClass()); // no dups please + classes.add(l.lookupClass()); + } + System.out.println("loaders = "+LOADERS); + int rounds = 0; + for (int lastCount = -1; lastCount != CASES.size(); ) { + lastCount = CASES.size(); // if CASES grow in the loop we go round again + for (LookupCase lc1 : CASES.toArray(new LookupCase[0])) { + for (Class c2 : classes) { + LookupCase lc2 = new LookupCase(lc1.lookup().in(c2)); + addLookupEdge(lc1, c2, lc2); + CASES.add(lc2); + } + } + rounds++; + } + System.out.println("filled in "+CASES.size()+" cases from "+originalLookups.length+" original cases in "+rounds+" rounds"); + if (false) { + System.out.println("CASES: {"); + for (LookupCase lc : CASES) { + System.out.println(lc); + Set edges = CASE_EDGES.get(lc); + if (edges != null) + for (LookupCase prev : edges) { + System.out.println("\t"+prev); + } + } + System.out.println("}"); + } + } + + @Test public void test() { + makeCases(lookups()); + if (verbosity > 0) { + verbosity += 9; + Method pro_in_self = targetMethod(THIS_CLASS, PROTECTED, methodType(void.class)); + testOneAccess(lookupCase("AccessControlTest/public"), pro_in_self, "find"); + testOneAccess(lookupCase("Remote_subclass/public"), pro_in_self, "find"); + testOneAccess(lookupCase("Remote_subclass"), pro_in_self, "find"); + verbosity -= 9; + } + Set> targetClassesDone = new HashSet<>(); + for (LookupCase targetCase : CASES) { + Class targetClass = targetCase.lookupClass(); + if (!targetClassesDone.add(targetClass)) continue; // already saw this one + String targetPlace = placeName(targetClass); + if (targetPlace == null) continue; // Object, String, not a target + for (int targetAccess : ACCESS_CASES) { + MethodType methodType = methodType(void.class); + Method method = targetMethod(targetClass, targetAccess, methodType); + // Try to access target method from various contexts. + for (LookupCase sourceCase : CASES) { + testOneAccess(sourceCase, method, "find"); + testOneAccess(sourceCase, method, "unreflect"); + } + } + } + System.out.println("tested "+testCount+" access scenarios; "+testCountFails+" accesses were denied"); + } + + private int testCount, testCountFails; + + private void testOneAccess(LookupCase sourceCase, Method method, String kind) { + Class targetClass = method.getDeclaringClass(); + String methodName = method.getName(); + MethodType methodType = methodType(method.getReturnType(), method.getParameterTypes()); + boolean willAccess = sourceCase.willAccess(method); + boolean didAccess = false; + ReflectiveOperationException accessError = null; + try { + switch (kind) { + case "find": + if ((method.getModifiers() & Modifier.STATIC) != 0) + sourceCase.lookup().findStatic(targetClass, methodName, methodType); + else + sourceCase.lookup().findVirtual(targetClass, methodName, methodType); + break; + case "unreflect": + sourceCase.lookup().unreflect(method); + break; + default: + throw new AssertionError(kind); + } + didAccess = true; + } catch (ReflectiveOperationException ex) { + accessError = ex; + } + if (willAccess != didAccess) { + System.out.println(sourceCase+" => "+targetClass.getSimpleName()+"."+methodName+methodType); + System.out.println("fail on "+method+" ex="+accessError); + assertEquals(willAccess, didAccess); + } + testCount++; + if (!didAccess) testCountFails++; + } + + static Method targetMethod(Class targetClass, int targetAccess, MethodType methodType) { + String methodName = accessName(targetAccess)+placeName(targetClass); + if (verbosity >= 2) + System.out.println(targetClass.getSimpleName()+"."+methodName+methodType); + try { + Method method = targetClass.getDeclaredMethod(methodName, methodType.parameterArray()); + assertEquals(method.getReturnType(), methodType.returnType()); + int haveMods = method.getModifiers(); + assert(Modifier.isStatic(haveMods)); + assert(targetAccess == fixMods(haveMods)); + return method; + } catch (NoSuchMethodException ex) { + throw new AssertionError(methodName, ex); + } + } + + static String placeName(Class cls) { + // return "self", "sibling", "nestmate", etc. + if (cls == AccessControlTest.class) return "self"; + String cln = cls.getSimpleName(); + int under = cln.lastIndexOf('_'); + if (under < 0) return null; + return cln.substring(under+1); + } + static String accessName(int acc) { + switch (acc) { + case PUBLIC: return "pub_in_"; + case PROTECTED: return "pro_in_"; + case PACKAGE: return "pkg_in_"; + case PRIVATE: return "pri_in_"; + } + assert(false); + return "?"; + } + private static final int[] ACCESS_CASES = { + PUBLIC, PACKAGE, PRIVATE, PROTECTED + }; + /** Return one of the ACCESS_CASES. */ + static int fixMods(int mods) { + mods &= (PUBLIC|PRIVATE|PROTECTED); + switch (mods) { + case PUBLIC: case PRIVATE: case PROTECTED: return mods; + case 0: return PACKAGE; + } + throw new AssertionError(mods); + } + + static Lookup[] lookups() { + ArrayList tem = new ArrayList<>(); + Collections.addAll(tem, + AccessControlTest.lookup_in_self(), + Inner_nestmate.lookup_in_nestmate(), + AccessControlTest_sibling.lookup_in_sibling()); + if (true) { + Collections.addAll(tem,Acquaintance_remote.lookups()); + } else { + try { + Class remc = Class.forName("test.java.lang.invoke.AccessControlTest_subpkg.Acquaintance_remote"); + Lookup[] remls = (Lookup[]) remc.getMethod("lookups").invoke(null); + Collections.addAll(tem, remls); + } catch (ReflectiveOperationException ex) { + throw new LinkageError("reflection failed", ex); + } + } + tem.add(publicLookup()); + tem.add(publicLookup().in(String.class)); + tem.add(publicLookup().in(List.class)); + return tem.toArray(new Lookup[0]); + } + + static Lookup lookup_in_self() { + return MethodHandles.lookup(); + } + static public void pub_in_self() { } + static protected void pro_in_self() { } + static /*package*/ void pkg_in_self() { } + static private void pri_in_self() { } + + static class Inner_nestmate { + static Lookup lookup_in_nestmate() { + return MethodHandles.lookup(); + } + static public void pub_in_nestmate() { } + static protected void pro_in_nestmate() { } + static /*package*/ void pkg_in_nestmate() { } + static private void pri_in_nestmate() { } + } +} +class AccessControlTest_sibling { + static Lookup lookup_in_sibling() { + return MethodHandles.lookup(); + } + static public void pub_in_sibling() { } + static protected void pro_in_sibling() { } + static /*package*/ void pkg_in_sibling() { } + static private void pri_in_sibling() { } +} + +// This guy tests access from outside the package: +/* +package test.java.lang.invoke.AccessControlTest_subpkg; +public class Acquaintance_remote { + public static Lookup[] lookups() { ... + } + ... +} +*/ diff --git a/jdk/test/java/lang/invoke/AccessControlTest_subpkg/Acquaintance_remote.java b/jdk/test/java/lang/invoke/AccessControlTest_subpkg/Acquaintance_remote.java new file mode 100644 index 00000000000..5bbfcb50c0d --- /dev/null +++ b/jdk/test/java/lang/invoke/AccessControlTest_subpkg/Acquaintance_remote.java @@ -0,0 +1,42 @@ +package test.java.lang.invoke.AccessControlTest_subpkg; +import test.java.lang.invoke.AccessControlTest; +import java.lang.invoke.*; +import static java.lang.invoke.MethodHandles.*; + +// This guy tests access from outside the package test.java.lang.invoke: +public class Acquaintance_remote { + public static Lookup[] lookups() { + return new Lookup[] { + Acquaintance_remote.lookup_in_remote(), + Remote_subclass.lookup_in_subclass(), + Remote_hidden.lookup_in_hidden() + }; + } + + public static Lookup lookup_in_remote() { + return MethodHandles.lookup(); + } + static public void pub_in_remote() { } + static protected void pro_in_remote() { } + static /*package*/ void pkg_in_remote() { } + static private void pri_in_remote() { } + + static public class Remote_subclass extends AccessControlTest { + static Lookup lookup_in_subclass() { + return MethodHandles.lookup(); + } + static public void pub_in_subclass() { } + static protected void pro_in_subclass() { } + static /*package*/ void pkg_in_subclass() { } + static private void pri_in_subclass() { } + } + static /*package*/ class Remote_hidden { + static Lookup lookup_in_hidden() { + return MethodHandles.lookup(); + } + static public void pub_in_hidden() { } + static protected void pro_in_hidden() { } + static /*package*/ void pkg_in_hidden() { } + static private void pri_in_hidden() { } + } +} From 7fdf0dfa52e47a35005e153bbd1a651faefec6a6 Mon Sep 17 00:00:00 2001 From: Abhijit Saha Date: Thu, 24 May 2012 10:23:21 -0700 Subject: [PATCH 16/46] 7171228: closed/java/lang/SecurityManager/CheckPackageDefinition.java failure Reviewed-by: mullan --- jdk/src/share/lib/security/java.security | 2 +- jdk/src/share/lib/security/java.security-macosx | 6 +++--- jdk/src/share/lib/security/java.security-solaris | 2 +- jdk/src/share/lib/security/java.security-windows | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jdk/src/share/lib/security/java.security b/jdk/src/share/lib/security/java.security index d94930fb166..52f3067408d 100644 --- a/jdk/src/share/lib/security/java.security +++ b/jdk/src/share/lib/security/java.security @@ -135,7 +135,7 @@ package.access=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun. # by default, none of the class loaders supplied with the JDK call # checkPackageDefinition. # -package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio. +package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils. # # Determines whether this properties file can be appended to diff --git a/jdk/src/share/lib/security/java.security-macosx b/jdk/src/share/lib/security/java.security-macosx index 65be54c6db4..6c16c2ca0d6 100644 --- a/jdk/src/share/lib/security/java.security-macosx +++ b/jdk/src/share/lib/security/java.security-macosx @@ -133,10 +133,10 @@ package.access=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun. # corresponding RuntimePermission ("defineClassInPackage."+package) has # been granted. # -# by default, no packages are restricted for definition, and none of -# the class loaders supplied with the JDK call checkPackageDefinition. +# by default, none of the class loaders supplied with the JDK call +# checkPackageDefinition. # -#package.definition= +package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,apple.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils. # # Determines whether this properties file can be appended to diff --git a/jdk/src/share/lib/security/java.security-solaris b/jdk/src/share/lib/security/java.security-solaris index ef5c709c098..1191aff8403 100644 --- a/jdk/src/share/lib/security/java.security-solaris +++ b/jdk/src/share/lib/security/java.security-solaris @@ -137,7 +137,7 @@ package.access=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun. # by default, none of the class loaders supplied with the JDK call # checkPackageDefinition. # -package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio. +package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils. # # Determines whether this properties file can be appended to diff --git a/jdk/src/share/lib/security/java.security-windows b/jdk/src/share/lib/security/java.security-windows index e093c93c748..3793e79be29 100644 --- a/jdk/src/share/lib/security/java.security-windows +++ b/jdk/src/share/lib/security/java.security-windows @@ -136,7 +136,7 @@ package.access=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun. # by default, none of the class loaders supplied with the JDK call # checkPackageDefinition. # -package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio. +package.definition=sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils. # # Determines whether this properties file can be appended to From 0494bcb19c1a6880337fb70493fc6f62f53238a3 Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Sat, 9 Jun 2012 17:42:46 +0400 Subject: [PATCH 17/46] 7165725: JAVA6 HTML PARSER CANNOT PARSE MULTIPLE SCRIPT TAGS IN A LINE CORRECTLY Reviewed-by: alexsch --- .../javax/swing/text/html/parser/Parser.java | 4 +- .../parser/Parser/7165725/bug7165725.java | 305 ++++++++++++++++++ .../7165725/false-text-after-script.html | 20 ++ .../Parser/7165725/successive-script-tag.html | 8 + 4 files changed, 335 insertions(+), 2 deletions(-) create mode 100644 jdk/test/javax/swing/text/html/parser/Parser/7165725/bug7165725.java create mode 100644 jdk/test/javax/swing/text/html/parser/Parser/7165725/false-text-after-script.html create mode 100644 jdk/test/javax/swing/text/html/parser/Parser/7165725/successive-script-tag.html diff --git a/jdk/src/share/classes/javax/swing/text/html/parser/Parser.java b/jdk/src/share/classes/javax/swing/text/html/parser/Parser.java index 2638f05bf17..eeb832982e2 100644 --- a/jdk/src/share/classes/javax/swing/text/html/parser/Parser.java +++ b/jdk/src/share/classes/javax/swing/text/html/parser/Parser.java @@ -1986,8 +1986,6 @@ class Parser implements DTDConstants { if (i == SCRIPT_END_TAG.length) { /* '' tag detected */ - /* Here, ch == '>' */ - ch = readCh(); /* Here, ch == the first character after */ return; } else { @@ -2060,6 +2058,8 @@ class Parser implements DTDConstants { handleComment(str.toCharArray()); endTag(false); lastBlockStartPos = currentPosition; + + continue; } else { switch (c) { case '<': diff --git a/jdk/test/javax/swing/text/html/parser/Parser/7165725/bug7165725.java b/jdk/test/javax/swing/text/html/parser/Parser/7165725/bug7165725.java new file mode 100644 index 00000000000..2c89050ef4a --- /dev/null +++ b/jdk/test/javax/swing/text/html/parser/Parser/7165725/bug7165725.java @@ -0,0 +1,305 @@ +/* + * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* @test + @bug 7165725 + @summary Tests if HTML parser can handle successive script tags in a line + and it does not call false text callback after script tags. + @run main bug7165725 +*/ + +import sun.awt.SunToolkit; + +import java.awt.BorderLayout; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.net.URL; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.swing.*; +import javax.swing.text.AbstractDocument.AbstractElement; +import javax.swing.text.AbstractDocument; +import javax.swing.text.Document; +import javax.swing.text.MutableAttributeSet; +import javax.swing.text.html.HTML; +import javax.swing.text.html.HTMLDocument; +import javax.swing.text.html.HTMLEditorKit; +import javax.swing.text.html.parser.ParserDelegator; + +public class bug7165725 extends JFrame { + private static class GoldenElement { + + private String goldenName; + private List goldenChildren; + + GoldenElement(String goldenName, GoldenElement... goldenChildren){ + this.goldenName = goldenName; + if (goldenChildren != null) { + this.goldenChildren = Arrays.asList(goldenChildren); + } else { + this.goldenChildren = new ArrayList<>(); + } + } + + // throws RuntimeException if not ok + public void checkStructureEquivalence(AbstractDocument.AbstractElement elem) { + String name = elem.getName(); + if (!goldenName.equals(name)) { + throw new RuntimeException("Bad structure: expected element name is '" + goldenName + "' but the actual name was '" + name + "'."); + } + int goldenChildCount = goldenChildren.size(); + int childCount = elem.getChildCount(); + if (childCount != goldenChildCount) { + System.out.print("D: children: "); + for (int i = 0; i < childCount; i++) { + System.out.print(" " + elem.getElement(i).getName()); + } + System.out.println(""); + System.out.print("D: goldenChildren: "); + for (GoldenElement ge : goldenChildren) { + System.out.print(" " + ge.goldenName); + } + System.out.println(""); + + throw new RuntimeException("Bad structure: expected child count of element '" + goldenName + "' is '" + goldenChildCount + "' but the actual count was '" + childCount + "'."); + } + for (int i = 0; i < childCount; i++) { + AbstractDocument.AbstractElement nextElem = (AbstractDocument.AbstractElement) elem.getElement(i); + GoldenElement goldenElement = goldenChildren.get(i); + goldenElement.checkStructureEquivalence(nextElem); + } + } + } + + private JEditorPane editorPane; + public void execute(final String urlStr, final GoldenElement goldenElement) throws Exception { + System.out.println(); + System.out.println("***** TEST: " + urlStr + " *****"); + System.out.println(); + + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { + try { + editorPane = new JEditorPane(); + editorPane.setEditorKit(new HTMLEditorKit() { + public Document createDefaultDocument() { + AbstractDocument doc = + (AbstractDocument) super.createDefaultDocument(); + doc.setAsynchronousLoadPriority(-1); + return doc; + } + }); + editorPane.setPage(new URL(urlStr)); + } catch (IOException ex) { + throw new RuntimeException("Test failed", ex); + } + editorPane.setEditable(false); + JScrollPane scroller = new JScrollPane(); + JViewport vp = scroller.getViewport(); + vp.add(editorPane); + add(scroller, BorderLayout.CENTER); + setDefaultCloseOperation(EXIT_ON_CLOSE); + setSize(400, 400); + setLocationRelativeTo(null); + setVisible(true); + } + }); + + ((SunToolkit) SunToolkit.getDefaultToolkit()).realSync(); + + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { + HTMLDocument doc = (HTMLDocument) editorPane.getDocument(); + doc.dump(System.out); + goldenElement.checkStructureEquivalence((AbstractElement) doc.getDefaultRootElement()); + dispose(); + } + }); + + System.out.println(); + System.out.println("*********************************"); + System.out.println(); + } + + public static void main(String[] args) throws Exception { + + String dirURL = getDirURL(); + + System.out.println("dirURL = " + dirURL); + + new bug7165725().execute(dirURL + "successive-script-tag.html", createSuccessiveScriptTags()); + new bug7165725().execute(dirURL + "false-text-after-script.html", createFalseTextAfterScript()); + + checkByCallbackForSuccessiveScript(); + checkByCallbackForFalseTextAfterScript(); + + System.out.println(); + System.out.println(); + System.out.println("Test passed."); + } + + static String getDirURL() { + return "file:///" + + new File(System.getProperty("test.src", ".")).getAbsolutePath() + + File.separator; + } + + static String getParsedContentOneLine(String path) throws Exception { + File f = new File(path); + FileReader fr = new FileReader(f); + ParserDelegator pd = new ParserDelegator(); + SBParserCallback sbcallback = new SBParserCallback(); + pd.parse(fr, sbcallback, true); + fr.close(); + return sbcallback.getStringOneLine(); + } + + static String getParsedContentOneLine(URL url) throws Exception { + return getParsedContentOneLine(url.getPath()); + } + + static void checkByCallbackForSuccessiveScript() throws Exception { + String content = getParsedContentOneLine(new URL(getDirURL() + "successive-script-tag.html")); + if (!content.matches(".* + + + diff --git a/jdk/test/javax/swing/text/html/parser/Parser/7165725/successive-script-tag.html b/jdk/test/javax/swing/text/html/parser/Parser/7165725/successive-script-tag.html new file mode 100644 index 00000000000..a751fa286a5 --- /dev/null +++ b/jdk/test/javax/swing/text/html/parser/Parser/7165725/successive-script-tag.html @@ -0,0 +1,8 @@ + + +my title + + + + + From 663f9df53e0ddc1de8cca18aac1bc4fa3f09bd3e Mon Sep 17 00:00:00 2001 From: Alexander Zuev Date: Sat, 9 Jun 2012 19:18:24 +0400 Subject: [PATCH 18/46] 7173487: closed/java/awt/Frame/RemoveNotifyTest/RemoveNotifyTest.html Reviewed-by: anthony, dcherepanov, serb --- jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java b/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java index fa13d0ef675..0e5888ee3de 100644 --- a/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java +++ b/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java @@ -361,9 +361,11 @@ public class LWCToolkit extends LWToolkit { CWrapper.NSObject.release(screen); } // Convert between Cocoa's coordinate system and Java. - return new Insets(fullScreen.height - workArea.height - workArea.y, - workArea.x, workArea.y, - fullScreen.width - workArea.width - workArea.x); + int bottom = workArea.y - fullScreen.y; + int top = fullScreen.height - workArea.height - bottom; + int left = workArea.x - fullScreen.x; + int right = fullScreen.width - workArea.width - left; + return new Insets(top, left, bottom, right); } @Override From f6020a8e347b445ce156926e9669343ffe7f49a4 Mon Sep 17 00:00:00 2001 From: Jonathan Lu Date: Mon, 11 Jun 2012 10:52:31 +0800 Subject: [PATCH 19/46] 7155887: ComboBox does not display focus outline in GTK L&F Reviewed-by: rupashka --- .../sun/java/swing/plaf/gtk/GTKPainter.java | 40 +++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java index 57a816932b0..4a1f429bad0 100644 --- a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java +++ b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKPainter.java @@ -926,9 +926,20 @@ class GTKPainter extends SynthPainter { int x, int y, int w, int h) { // Text is odd in that it uses the TEXT_BACKGROUND vs BACKGROUND. JComponent c = context.getComponent(); + Container container = c.getParent(); + Container containerParent = null; GTKStyle style = (GTKStyle)context.getStyle(); Region id = context.getRegion(); int state = context.getComponentState(); + + if (c instanceof ListCellRenderer && container != null) { + containerParent = container.getParent(); + if (containerParent instanceof JComboBox + && containerParent.hasFocus()) { + state |= SynthConstants.FOCUSED; + } + } + synchronized (UNIXToolkit.GTK_LOCK) { if (ENGINE.paintCachedImage(g, x, y, w, h, id, state)) { return; @@ -938,9 +949,10 @@ class GTKPainter extends SynthPainter { int focusSize = 0; boolean interiorFocus = style.getClassSpecificBoolValue( context, "interior-focus", true); + + focusSize = style.getClassSpecificIntValue(context, + "focus-line-width",1); if (!interiorFocus && (state & SynthConstants.FOCUSED) != 0) { - focusSize = style.getClassSpecificIntValue(context, - "focus-line-width",1); x += focusSize; y += focusSize; w -= 2 * focusSize; @@ -961,11 +973,25 @@ class GTKPainter extends SynthPainter { h - (2 * yThickness), ColorType.TEXT_BACKGROUND); - if (focusSize > 0) { - x -= focusSize; - y -= focusSize; - w += 2 * focusSize; - h += 2 * focusSize; + if (focusSize > 0 && (state & SynthConstants.FOCUSED) != 0) { + if (!interiorFocus) { + x -= focusSize; + y -= focusSize; + w += 2 * focusSize; + h += 2 * focusSize; + } else { + if (containerParent instanceof JComboBox) { + x += (focusSize + 2); + y += (focusSize + 1); + w -= (2 * focusSize + 1); + h -= (2 * focusSize + 2); + } else { + x += focusSize; + y += focusSize; + w -= 2 * focusSize; + h -= 2 * focusSize; + } + } ENGINE.paintFocus(g, context, id, gtkState, "entry", x, y, w, h); } From 9b279135421fa849d3f8fdc299cb46af613e864e Mon Sep 17 00:00:00 2001 From: Staffan Larsen Date: Mon, 11 Jun 2012 20:52:00 +0200 Subject: [PATCH 20/46] 7175802: Missing jdk_jfr in top-level make file Reviewed-by: alanb --- test/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index f5352e34fad..f1dfe1dbd3c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -74,7 +74,8 @@ JDK_NONDEFAULT_TEST_LIST = \ jdk_rmi \ jdk_sound \ jdk_swing \ - jdk_tools1 jdk_tools2 + jdk_tools1 jdk_tools2 \ + jdk_jfr # All jdk tests JDK_ALL_TEST_LIST = $(JDK_DEFAULT_TEST_LIST) $(JDK_NONDEFAULT_TEST_LIST) From 4525667c7383117b6c6a89c67b623553021f0221 Mon Sep 17 00:00:00 2001 From: Kumar Srinivasan Date: Mon, 11 Jun 2012 15:33:28 -0700 Subject: [PATCH 21/46] 7160072: (javac) JavacParserTests needs cleanup Reviewed-by: jjg --- .../tools/javac/parser/JavacParserTest.java | 1248 +++++++++-------- 1 file changed, 647 insertions(+), 601 deletions(-) diff --git a/langtools/test/tools/javac/parser/JavacParserTest.java b/langtools/test/tools/javac/parser/JavacParserTest.java index e5a3e350350..1dd437a61a3 100644 --- a/langtools/test/tools/javac/parser/JavacParserTest.java +++ b/langtools/test/tools/javac/parser/JavacParserTest.java @@ -23,7 +23,7 @@ /* * @test - * @bug 7073631 7159445 + * @bug 7073631 7159445 7156633 * @summary tests error and diagnostics positions * @author Jan Lahoda */ @@ -49,11 +49,17 @@ import com.sun.source.util.Trees; import com.sun.tools.javac.api.JavacTaskImpl; import com.sun.tools.javac.tree.JCTree; import java.io.IOException; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.lang.reflect.Method; import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; +import java.util.regex.Pattern; import javax.tools.Diagnostic; import javax.tools.DiagnosticCollector; import javax.tools.DiagnosticListener; @@ -63,13 +69,15 @@ import javax.tools.SimpleJavaFileObject; import javax.tools.ToolProvider; public class JavacParserTest extends TestCase { - final JavaCompiler tool; - public JavacParserTest(String testName) { - tool = ToolProvider.getSystemJavaCompiler(); - System.out.println("java.home=" + System.getProperty("java.home")); + static final JavaCompiler tool = ToolProvider.getSystemJavaCompiler(); + + private JavacParserTest(){} + + public static void main(String... args) throws Exception { + new JavacParserTest().run(args); } - static class MyFileObject extends SimpleJavaFileObject { + class MyFileObject extends SimpleJavaFileObject { private String text; @@ -86,11 +94,11 @@ public class JavacParserTest extends TestCase { /* * converts Windows to Unix style LFs for comparing strings */ - private String normalize(String in) { + String normalize(String in) { return in.replace(System.getProperty("line.separator"), "\n"); } - public CompilationUnitTree getCompilationUnitTree(String code) throws IOException { + CompilationUnitTree getCompilationUnitTree(String code) throws IOException { JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, null, Arrays.asList(new MyFileObject(code))); @@ -98,7 +106,7 @@ public class JavacParserTest extends TestCase { return cut; } - public List getErroneousTreeValues(ErroneousTree node) { + List getErroneousTreeValues(ErroneousTree node) { List values = new ArrayList<>(); if (node.getErrorTrees() != null) { @@ -112,7 +120,8 @@ public class JavacParserTest extends TestCase { return values; } - public void testPositionForSuperConstructorCalls() throws IOException { + @Test + void testPositionForSuperConstructorCalls() throws IOException { assert tool != null; String code = "package test; public class Test {public Test() {super();}}"; @@ -149,12 +158,12 @@ public class JavacParserTest extends TestCase { methodStartPos, pos.getStartPosition(cut, mit.getMethodSelect())); assertEquals("testPositionForSuperConstructorCalls", methodEndPos, pos.getEndPosition(cut, mit.getMethodSelect())); - } - public void testPositionForEnumModifiers() throws IOException { - - String code = "package test; public enum Test {A;}"; + @Test + void testPositionForEnumModifiers() throws IOException { + final String theString = "public"; + String code = "package test; " + theString + " enum Test {A;}"; JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, null, Arrays.asList(new MyFileObject(code))); @@ -163,19 +172,21 @@ public class JavacParserTest extends TestCase { ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); ModifiersTree mt = clazz.getModifiers(); - + int spos = code.indexOf(theString); + int epos = spos + theString.length(); assertEquals("testPositionForEnumModifiers", - 38 - 24, pos.getStartPosition(cut, mt)); + spos, pos.getStartPosition(cut, mt)); assertEquals("testPositionForEnumModifiers", - 44 - 24, pos.getEndPosition(cut, mt)); + epos, pos.getEndPosition(cut, mt)); } - public void testNewClassWithEnclosing() throws IOException { - + @Test + void testNewClassWithEnclosing() throws IOException { + final String theString = "Test.this.new d()"; String code = "package test; class Test { " + "class d {} private void method() { " + - "Object o = Test.this.new d(); } }"; + "Object o = " + theString + "; } }"; JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, null, Arrays.asList(new MyFileObject(code))); @@ -186,13 +197,16 @@ public class JavacParserTest extends TestCase { ExpressionTree est = ((VariableTree) ((MethodTree) clazz.getMembers().get(1)).getBody().getStatements().get(0)).getInitializer(); + final int spos = code.indexOf(theString); + final int epos = spos + theString.length(); assertEquals("testNewClassWithEnclosing", - 97 - 24, pos.getStartPosition(cut, est)); + spos, pos.getStartPosition(cut, est)); assertEquals("testNewClassWithEnclosing", - 114 - 24, pos.getEndPosition(cut, est)); + epos, pos.getEndPosition(cut, est)); } - public void testPreferredPositionForBinaryOp() throws IOException { + @Test + void testPreferredPositionForBinaryOp() throws IOException { String code = "package test; public class Test {" + "private void test() {" @@ -211,7 +225,581 @@ public class JavacParserTest extends TestCase { condStartPos, condJC.pos); } - public void testPositionBrokenSource126732a() throws IOException { + @Test + void testErrorRecoveryForEnhancedForLoop142381() throws IOException { + + String code = "package test; class Test { " + + "private void method() { " + + "java.util.Set s = null; for (a : s) {} } }"; + + final List> errors = + new LinkedList>(); + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, + new DiagnosticListener() { + public void report(Diagnostic diagnostic) { + errors.add(diagnostic); + } + }, null, null, Arrays.asList(new MyFileObject(code))); + + CompilationUnitTree cut = ct.parse().iterator().next(); + + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + StatementTree forStatement = + ((MethodTree) clazz.getMembers().get(0)).getBody().getStatements().get(1); + + assertEquals("testErrorRecoveryForEnhancedForLoop142381", + Kind.ENHANCED_FOR_LOOP, forStatement.getKind()); + assertFalse("testErrorRecoveryForEnhancedForLoop142381", errors.isEmpty()); + } + + @Test + void testPositionAnnotationNoPackage187551() throws IOException { + + String code = "\n@interface Test {}"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + + CompilationUnitTree cut = ct.parse().iterator().next(); + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + Trees t = Trees.instance(ct); + + assertEquals("testPositionAnnotationNoPackage187551", + 1, t.getSourcePositions().getStartPosition(cut, clazz)); + } + + @Test + void testPositionsSane1() throws IOException { + performPositionsSanityTest("package test; class Test { " + + "private void method() { " + + "java.util.List> l; " + + "} }"); + } + + @Test + void testPositionsSane2() throws IOException { + performPositionsSanityTest("package test; class Test { " + + "private void method() { " + + "java.util.List> l; " + + "} }"); + } + + @Test + void testPositionsSane3() throws IOException { + performPositionsSanityTest("package test; class Test { " + + "private void method() { " + + "java.util.List> l; } }"); + } + + private void performPositionsSanityTest(String code) throws IOException { + + final List> errors = + new LinkedList>(); + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, + new DiagnosticListener() { + + public void report(Diagnostic diagnostic) { + errors.add(diagnostic); + } + }, null, null, Arrays.asList(new MyFileObject(code))); + + final CompilationUnitTree cut = ct.parse().iterator().next(); + final Trees trees = Trees.instance(ct); + + new TreeScanner() { + + private long parentStart = 0; + private long parentEnd = Integer.MAX_VALUE; + + @Override + public Void scan(Tree node, Void p) { + if (node == null) { + return null; + } + + long start = trees.getSourcePositions().getStartPosition(cut, node); + + if (start == (-1)) { + return null; // synthetic tree + } + assertTrue(node.toString() + ":" + start + "/" + parentStart, + parentStart <= start); + + long prevParentStart = parentStart; + + parentStart = start; + + long end = trees.getSourcePositions().getEndPosition(cut, node); + + assertTrue(node.toString() + ":" + end + "/" + parentEnd, + end <= parentEnd); + + long prevParentEnd = parentEnd; + + parentEnd = end; + + super.scan(node, p); + + parentStart = prevParentStart; + parentEnd = prevParentEnd; + + return null; + } + + private void assertTrue(String message, boolean b) { + if (!b) fail(message); + } + }.scan(cut, null); + } + + @Test + void testCorrectWilcardPositions1() throws IOException { + performWildcardPositionsTest("package test; import java.util.List; " + + "class Test { private void method() { List> l; } }", + + Arrays.asList("List> l;", + "List>", + "List", + "? extends List", + "List", + "List", + "? extends String", + "String")); + } + + @Test + void testCorrectWilcardPositions2() throws IOException { + performWildcardPositionsTest("package test; import java.util.List; " + + "class Test { private void method() { List> l; } }", + Arrays.asList("List> l;", + "List>", + "List", + "? super List", + "List", + "List", + "? super String", + "String")); + } + + @Test + void testCorrectWilcardPositions3() throws IOException { + performWildcardPositionsTest("package test; import java.util.List; " + + "class Test { private void method() { List> l; } }", + + Arrays.asList("List> l;", + "List>", + "List", + "? super List", + "List", + "List", + "?")); + } + + @Test + void testCorrectWilcardPositions4() throws IOException { + performWildcardPositionsTest("package test; import java.util.List; " + + "class Test { private void method() { " + + "List>> l; } }", + + Arrays.asList("List>> l;", + "List>>", + "List", + "? extends List>", + "List>", + "List", + "? extends List", + "List", + "List", + "? extends String", + "String")); + } + + @Test + void testCorrectWilcardPositions5() throws IOException { + performWildcardPositionsTest("package test; import java.util.List; " + + "class Test { private void method() { " + + "List>> l; } }", + Arrays.asList("List>> l;", + "List>>", + "List", + "? extends List>", + "List>", + "List", + "? extends List", + "List", + "List", + "? extends String", + "String")); + } + + void performWildcardPositionsTest(final String code, + List golden) throws IOException { + + final List> errors = + new LinkedList>(); + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, + new DiagnosticListener() { + public void report(Diagnostic diagnostic) { + errors.add(diagnostic); + } + }, null, null, Arrays.asList(new MyFileObject(code))); + + final CompilationUnitTree cut = ct.parse().iterator().next(); + final List content = new LinkedList(); + final Trees trees = Trees.instance(ct); + + new TreeScanner() { + @Override + public Void scan(Tree node, Void p) { + if (node == null) { + return null; + } + long start = trees.getSourcePositions().getStartPosition(cut, node); + + if (start == (-1)) { + return null; // synthetic tree + } + long end = trees.getSourcePositions().getEndPosition(cut, node); + String s = code.substring((int) start, (int) end); + content.add(s); + + return super.scan(node, p); + } + }.scan(((MethodTree) ((ClassTree) cut.getTypeDecls().get(0)).getMembers().get(0)).getBody().getStatements().get(0), null); + + assertEquals("performWildcardPositionsTest",golden.toString(), + content.toString()); + } + + @Test + void testStartPositionForMethodWithoutModifiers() throws IOException { + + String code = "package t; class Test { void t() {} }"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + CompilationUnitTree cut = ct.parse().iterator().next(); + ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); + MethodTree mt = (MethodTree) clazz.getMembers().get(0); + Trees t = Trees.instance(ct); + int start = (int) t.getSourcePositions().getStartPosition(cut, mt); + int end = (int) t.getSourcePositions().getEndPosition(cut, mt); + + assertEquals("testStartPositionForMethodWithoutModifiers", + " void t() {}", code.substring(start, end)); + } + + @Test + void testVariableInIfThen1() throws IOException { + + String code = "package t; class Test { " + + "private static void t(String name) { " + + "if (name != null) String nn = name.trim(); } }"; + + DiagnosticCollector coll = + new DiagnosticCollector(); + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, + null, Arrays.asList(new MyFileObject(code))); + + ct.parse(); + + List codes = new LinkedList(); + + for (Diagnostic d : coll.getDiagnostics()) { + codes.add(d.getCode()); + } + + assertEquals("testVariableInIfThen1", + Arrays.asList("compiler.err.variable.not.allowed"), + codes); + } + + @Test + void testVariableInIfThen2() throws IOException { + + String code = "package t; class Test { " + + "private static void t(String name) { " + + "if (name != null) class X {} } }"; + DiagnosticCollector coll = + new DiagnosticCollector(); + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, + null, Arrays.asList(new MyFileObject(code))); + + ct.parse(); + + List codes = new LinkedList(); + + for (Diagnostic d : coll.getDiagnostics()) { + codes.add(d.getCode()); + } + + assertEquals("testVariableInIfThen2", + Arrays.asList("compiler.err.class.not.allowed"), codes); + } + + @Test + void testVariableInIfThen3() throws IOException { + + String code = "package t; class Test { "+ + "private static void t() { " + + "if (true) abstract class F {} }}"; + DiagnosticCollector coll = + new DiagnosticCollector(); + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, + null, Arrays.asList(new MyFileObject(code))); + + ct.parse(); + + List codes = new LinkedList(); + + for (Diagnostic d : coll.getDiagnostics()) { + codes.add(d.getCode()); + } + + assertEquals("testVariableInIfThen3", + Arrays.asList("compiler.err.class.not.allowed"), codes); + } + + @Test + void testVariableInIfThen4() throws IOException { + + String code = "package t; class Test { "+ + "private static void t(String name) { " + + "if (name != null) interface X {} } }"; + DiagnosticCollector coll = + new DiagnosticCollector(); + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, + null, Arrays.asList(new MyFileObject(code))); + + ct.parse(); + + List codes = new LinkedList(); + + for (Diagnostic d : coll.getDiagnostics()) { + codes.add(d.getCode()); + } + + assertEquals("testVariableInIfThen4", + Arrays.asList("compiler.err.class.not.allowed"), codes); + } + + @Test + void testVariableInIfThen5() throws IOException { + + String code = "package t; class Test { "+ + "private static void t() { " + + "if (true) } }"; + DiagnosticCollector coll = + new DiagnosticCollector(); + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, + null, Arrays.asList(new MyFileObject(code))); + + ct.parse(); + + List codes = new LinkedList(); + + for (Diagnostic d : coll.getDiagnostics()) { + codes.add(d.getCode()); + } + + assertEquals("testVariableInIfThen5", + Arrays.asList("compiler.err.illegal.start.of.stmt"), + codes); + } + + // see javac bug #6882235, NB bug #98234: + @Test + void testMissingExponent() throws IOException { + + String code = "\nclass Test { { System.err.println(0e); } }"; + + JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, + null, Arrays.asList(new MyFileObject(code))); + + assertNotNull(ct.parse().iterator().next()); + } + + @Test + void testTryResourcePos() throws IOException { + + final String code = "package t; class Test { " + + "{ try (java.io.InputStream in = null) { } } }"; + + CompilationUnitTree cut = getCompilationUnitTree(code); + + new TreeScanner() { + @Override + public Void visitVariable(VariableTree node, Void p) { + if ("in".contentEquals(node.getName())) { + JCTree.JCVariableDecl var = (JCTree.JCVariableDecl) node; + assertEquals("testTryResourcePos", "in = null) { } } }", + code.substring(var.pos)); + } + return super.visitVariable(node, p); + } + }.scan(cut, null); + } + + @Test + void testVarPos() throws IOException { + + final String code = "package t; class Test { " + + "{ java.io.InputStream in = null; } }"; + + CompilationUnitTree cut = getCompilationUnitTree(code); + + new TreeScanner() { + + @Override + public Void visitVariable(VariableTree node, Void p) { + if ("in".contentEquals(node.getName())) { + JCTree.JCVariableDecl var = (JCTree.JCVariableDecl) node; + assertEquals("testVarPos","in = null; } }", + code.substring(var.pos)); + } + return super.visitVariable(node, p); + } + }.scan(cut, null); + } + + // expected erroneous tree: int x = y;(ERROR); + @Test + void testOperatorMissingError() throws IOException { + + String code = "package test; public class ErrorTest { " + + "void method() { int x = y z } }"; + CompilationUnitTree cut = getCompilationUnitTree(code); + final List values = new ArrayList<>(); + final List expectedValues = + new ArrayList<>(Arrays.asList("[z]")); + + new TreeScanner() { + @Override + public Void visitErroneous(ErroneousTree node, Void p) { + values.add(getErroneousTreeValues(node).toString()); + return null; + + } + }.scan(cut, null); + + assertEquals("testSwitchError: The Erroneous tree " + + "error values: " + values + + " do not match expected error values: " + + expectedValues, values, expectedValues); + } + + // expected erroneous tree: String s = (ERROR); + @Test + void testMissingParenthesisError() throws IOException { + + String code = "package test; public class ErrorTest { " + + "void f() {String s = new String; } }"; + CompilationUnitTree cut = getCompilationUnitTree(code); + final List values = new ArrayList<>(); + final List expectedValues = + new ArrayList<>(Arrays.asList("[new String()]")); + + new TreeScanner() { + @Override + public Void visitErroneous(ErroneousTree node, Void p) { + values.add(getErroneousTreeValues(node).toString()); + return null; + } + }.scan(cut, null); + + assertEquals("testSwitchError: The Erroneous tree " + + "error values: " + values + + " do not match expected error values: " + + expectedValues, values, expectedValues); + } + + // expected erroneous tree: package test; (ERROR)(ERROR) + @Test + void testMissingClassError() throws IOException { + + String code = "package Test; clas ErrorTest { " + + "void f() {String s = new String(); } }"; + CompilationUnitTree cut = getCompilationUnitTree(code); + final List values = new ArrayList<>(); + final List expectedValues = + new ArrayList<>(Arrays.asList("[, clas]", "[]")); + + new TreeScanner() { + @Override + public Void visitErroneous(ErroneousTree node, Void p) { + values.add(getErroneousTreeValues(node).toString()); + return null; + } + }.scan(cut, null); + + assertEquals("testSwitchError: The Erroneous tree " + + "error values: " + values + + " do not match expected error values: " + + expectedValues, values, expectedValues); + } + + // expected erroneous tree: void m1(int i) {(ERROR);{(ERROR);} + @Test + void testSwitchError() throws IOException { + + String code = "package test; public class ErrorTest { " + + "int numDays; void m1(int i) { switchh {i} { case 1: " + + "numDays = 31; break; } } }"; + CompilationUnitTree cut = getCompilationUnitTree(code); + final List values = new ArrayList<>(); + final List expectedValues = + new ArrayList<>(Arrays.asList("[switchh]", "[i]")); + + new TreeScanner() { + @Override + public Void visitErroneous(ErroneousTree node, Void p) { + values.add(getErroneousTreeValues(node).toString()); + return null; + } + }.scan(cut, null); + + assertEquals("testSwitchError: The Erroneous tree " + + "error values: " + values + + " do not match expected error values: " + + expectedValues, values, expectedValues); + } + + // expected erroneous tree: class ErrorTest {(ERROR) + @Test + void testMethodError() throws IOException { + + String code = "package Test; class ErrorTest { " + + "static final void f) {String s = new String(); } }"; + CompilationUnitTree cut = cut = getCompilationUnitTree(code); + + final List values = new ArrayList<>(); + final List expectedValues = + new ArrayList<>(Arrays.asList("[\nstatic final void f();]")); + + new TreeScanner() { + @Override + public Void visitErroneous(ErroneousTree node, Void p) { + values.add(normalize(getErroneousTreeValues(node).toString())); + return null; + } + }.scan(cut, null); + + assertEquals("testMethodError: The Erroneous tree " + + "error value: " + values + + " does not match expected error values: " + + expectedValues, values, expectedValues); + } + + /* + * The following tests do not work just yet with nb-javac nor javac, + * they need further investigation, see CR: 7167356 + */ + + void testPositionBrokenSource126732a() throws IOException { String[] commands = new String[]{ "return Runnable()", "do { } while (true)", @@ -250,7 +838,7 @@ public class JavacParserTest extends TestCase { } } - public void testPositionBrokenSource126732b() throws IOException { + void testPositionBrokenSource126732b() throws IOException { String[] commands = new String[]{ "break", "break A", @@ -291,246 +879,7 @@ public class JavacParserTest extends TestCase { } } - public void testErrorRecoveryForEnhancedForLoop142381() throws IOException { - - String code = "package test; class Test { " + - "private void method() { " + - "java.util.Set s = null; for (a : s) {} } }"; - - final List> errors = - new LinkedList>(); - - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, - new DiagnosticListener() { - public void report(Diagnostic diagnostic) { - errors.add(diagnostic); - } - }, null, null, Arrays.asList(new MyFileObject(code))); - - CompilationUnitTree cut = ct.parse().iterator().next(); - - ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); - StatementTree forStatement = - ((MethodTree) clazz.getMembers().get(0)).getBody().getStatements().get(1); - - assertEquals("testErrorRecoveryForEnhancedForLoop142381", - Kind.ENHANCED_FOR_LOOP, forStatement.getKind()); - assertFalse("testErrorRecoveryForEnhancedForLoop142381", errors.isEmpty()); - } - - public void testPositionAnnotationNoPackage187551() throws IOException { - - String code = "\n@interface Test {}"; - - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, - null, Arrays.asList(new MyFileObject(code))); - - CompilationUnitTree cut = ct.parse().iterator().next(); - ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); - Trees t = Trees.instance(ct); - - assertEquals("testPositionAnnotationNoPackage187551", - 1, t.getSourcePositions().getStartPosition(cut, clazz)); - } - - public void testPositionsSane() throws IOException { - performPositionsSanityTest("package test; class Test { " + - "private void method() { " + - "java.util.List> l; " + - "} }"); - performPositionsSanityTest("package test; class Test { " + - "private void method() { " + - "java.util.List> l; " + - "} }"); - performPositionsSanityTest("package test; class Test { " + - "private void method() { " + - "java.util.List> l; } }"); - } - - private void performPositionsSanityTest(String code) throws IOException { - - final List> errors = - new LinkedList>(); - - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, - new DiagnosticListener() { - - public void report(Diagnostic diagnostic) { - errors.add(diagnostic); - } - }, null, null, Arrays.asList(new MyFileObject(code))); - - final CompilationUnitTree cut = ct.parse().iterator().next(); - final Trees trees = Trees.instance(ct); - - new TreeScanner() { - - private long parentStart = 0; - private long parentEnd = Integer.MAX_VALUE; - - @Override - public Void scan(Tree node, Void p) { - if (node == null) { - return null; - } - - long start = trees.getSourcePositions().getStartPosition(cut, node); - - if (start == (-1)) { - return null; //synthetic tree - } - assertTrue(node.toString() + ":" + start + "/" + parentStart, - parentStart <= start); - - long prevParentStart = parentStart; - - parentStart = start; - - long end = trees.getSourcePositions().getEndPosition(cut, node); - - assertTrue(node.toString() + ":" + end + "/" + parentEnd, - end <= parentEnd); - - long prevParentEnd = parentEnd; - - parentEnd = end; - - super.scan(node, p); - - parentStart = prevParentStart; - parentEnd = prevParentEnd; - - return null; - } - - private void assertTrue(String message, boolean b) { - if (!b) fail(message); - } - }.scan(cut, null); - } - - public void testCorrectWilcardPositions() throws IOException { - performWildcardPositionsTest("package test; import java.util.List; " + - "class Test { private void method() { List> l; } }", - - Arrays.asList("List> l;", - "List>", - "List", - "? extends List", - "List", - "List", - "? extends String", - "String")); - performWildcardPositionsTest("package test; import java.util.List; " + - "class Test { private void method() { List> l; } }", - - Arrays.asList("List> l;", - "List>", - "List", - "? super List", - "List", - "List", - "? super String", - "String")); - performWildcardPositionsTest("package test; import java.util.List; " + - "class Test { private void method() { List> l; } }", - - Arrays.asList("List> l;", - "List>", - "List", - "? super List", - "List", - "List", - "?")); - performWildcardPositionsTest("package test; import java.util.List; " + - "class Test { private void method() { " + - "List>> l; } }", - - Arrays.asList("List>> l;", - "List>>", - "List", - "? extends List>", - "List>", - "List", - "? extends List", - "List", - "List", - "? extends String", - "String")); - performWildcardPositionsTest("package test; import java.util.List; " + - "class Test { private void method() { " + - "List>> l; } }", - Arrays.asList("List>> l;", - "List>>", - "List", - "? extends List>", - "List>", - "List", - "? extends List", - "List", - "List", - "? extends String", - "String")); - } - - public void performWildcardPositionsTest(final String code, - List golden) throws IOException { - - final List> errors = - new LinkedList>(); - - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, - new DiagnosticListener() { - public void report(Diagnostic diagnostic) { - errors.add(diagnostic); - } - }, null, null, Arrays.asList(new MyFileObject(code))); - - final CompilationUnitTree cut = ct.parse().iterator().next(); - final List content = new LinkedList(); - final Trees trees = Trees.instance(ct); - - new TreeScanner() { - @Override - public Void scan(Tree node, Void p) { - if (node == null) { - return null; - } - long start = trees.getSourcePositions().getStartPosition(cut, node); - - if (start == (-1)) { - return null; //synthetic tree - } - long end = trees.getSourcePositions().getEndPosition(cut, node); - String s = code.substring((int) start, (int) end); - content.add(s); - - return super.scan(node, p); - } - }.scan(((MethodTree) ((ClassTree) cut.getTypeDecls().get(0)).getMembers().get(0)).getBody().getStatements().get(0), null); - - assertEquals("performWildcardPositionsTest",golden.toString(), - content.toString()); - } - - public void testStartPositionForMethodWithoutModifiers() throws IOException { - - String code = "package t; class Test { void t() {} }"; - - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, - null, Arrays.asList(new MyFileObject(code))); - CompilationUnitTree cut = ct.parse().iterator().next(); - ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0); - MethodTree mt = (MethodTree) clazz.getMembers().get(0); - Trees t = Trees.instance(ct); - int start = (int) t.getSourcePositions().getStartPosition(cut, mt); - int end = (int) t.getSourcePositions().getEndPosition(cut, mt); - - assertEquals("testStartPositionForMethodWithoutModifiers", - " void t() {}", code.substring(start, end)); - } - - public void testStartPositionEnumConstantInit() throws IOException { + void testStartPositionEnumConstantInit() throws IOException { String code = "package t; enum Test { AAA; }"; @@ -546,342 +895,34 @@ public class JavacParserTest extends TestCase { assertEquals("testStartPositionEnumConstantInit", -1, start); } - public void testVariableInIfThen1() throws IOException { - - String code = "package t; class Test { " + - "private static void t(String name) { " + - "if (name != null) String nn = name.trim(); } }"; - - DiagnosticCollector coll = - new DiagnosticCollector(); - - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, - null, Arrays.asList(new MyFileObject(code))); - - ct.parse(); - - List codes = new LinkedList(); - - for (Diagnostic d : coll.getDiagnostics()) { - codes.add(d.getCode()); - } - - assertEquals("testVariableInIfThen1", - Arrays.asList("compiler.err.variable.not.allowed"), - codes); - } - - public void testVariableInIfThen2() throws IOException { - - String code = "package t; class Test { " + - "private static void t(String name) { " + - "if (name != null) class X {} } }"; - DiagnosticCollector coll = - new DiagnosticCollector(); - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, - null, Arrays.asList(new MyFileObject(code))); - - ct.parse(); - - List codes = new LinkedList(); - - for (Diagnostic d : coll.getDiagnostics()) { - codes.add(d.getCode()); - } - - assertEquals("testVariableInIfThen2", - Arrays.asList("compiler.err.class.not.allowed"), codes); - } - - public void testVariableInIfThen3() throws IOException { - - String code = "package t; class Test { "+ - "private static void t() { " + - "if (true) abstract class F {} }}"; - DiagnosticCollector coll = - new DiagnosticCollector(); - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, - null, Arrays.asList(new MyFileObject(code))); - - ct.parse(); - - List codes = new LinkedList(); - - for (Diagnostic d : coll.getDiagnostics()) { - codes.add(d.getCode()); - } - - assertEquals("testVariableInIfThen3", - Arrays.asList("compiler.err.class.not.allowed"), codes); - } - - public void testVariableInIfThen4() throws IOException { - - String code = "package t; class Test { "+ - "private static void t(String name) { " + - "if (name != null) interface X {} } }"; - DiagnosticCollector coll = - new DiagnosticCollector(); - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, - null, Arrays.asList(new MyFileObject(code))); - - ct.parse(); - - List codes = new LinkedList(); - - for (Diagnostic d : coll.getDiagnostics()) { - codes.add(d.getCode()); - } - - assertEquals("testVariableInIfThen4", - Arrays.asList("compiler.err.class.not.allowed"), codes); - } - - public void testVariableInIfThen5() throws IOException { - - String code = "package t; class Test { "+ - "private static void t() { " + - "if (true) } }"; - DiagnosticCollector coll = - new DiagnosticCollector(); - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, coll, null, - null, Arrays.asList(new MyFileObject(code))); - - ct.parse(); - - List codes = new LinkedList(); - - for (Diagnostic d : coll.getDiagnostics()) { - codes.add(d.getCode()); - } - - assertEquals("testVariableInIfThen5", - Arrays.asList("compiler.err.illegal.start.of.stmt"), - codes); - } - - //see javac bug #6882235, NB bug #98234: - public void testMissingExponent() throws IOException { - - String code = "\nclass Test { { System.err.println(0e); } }"; - - JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(null, null, null, null, - null, Arrays.asList(new MyFileObject(code))); - - assertNotNull(ct.parse().iterator().next()); - } - - public void testTryResourcePos() throws IOException { - - final String code = "package t; class Test { " + - "{ try (java.io.InputStream in = null) { } } }"; - - CompilationUnitTree cut = getCompilationUnitTree(code); - - new TreeScanner() { - @Override - public Void visitVariable(VariableTree node, Void p) { - if ("in".contentEquals(node.getName())) { - JCTree.JCVariableDecl var = (JCTree.JCVariableDecl) node; - System.out.println(node.getName() + "," + var.pos); - assertEquals("testTryResourcePos", "in = null) { } } }", - code.substring(var.pos)); + void run(String[] args) throws Exception { + int passed = 0, failed = 0; + final Pattern p = (args != null && args.length > 0) + ? Pattern.compile(args[0]) + : null; + for (Method m : this.getClass().getDeclaredMethods()) { + boolean selected = (p == null) + ? m.isAnnotationPresent(Test.class) + : p.matcher(m.getName()).matches(); + if (selected) { + try { + m.invoke(this, (Object[]) null); + System.out.println(m.getName() + ": OK"); + passed++; + } catch (Throwable ex) { + System.out.printf("Test %s failed: %s %n", m, ex.getCause()); + failed++; } - return super.visitVariable(node, p); } - }.scan(cut, null); - } - - public void testVarPos() throws IOException { - - final String code = "package t; class Test { " + - "{ java.io.InputStream in = null; } }"; - - CompilationUnitTree cut = getCompilationUnitTree(code); - - new TreeScanner() { - - @Override - public Void visitVariable(VariableTree node, Void p) { - if ("in".contentEquals(node.getName())) { - JCTree.JCVariableDecl var = (JCTree.JCVariableDecl) node; - assertEquals("testVarPos","in = null; } }", - code.substring(var.pos)); - } - return super.visitVariable(node, p); - } - }.scan(cut, null); - } - - // expected erroneous tree: int x = y;(ERROR); - public void testOperatorMissingError() throws IOException { - - String code = "package test; public class ErrorTest { " - + "void method() { int x = y z } }"; - CompilationUnitTree cut = getCompilationUnitTree(code); - final List values = new ArrayList<>(); - final List expectedValues = - new ArrayList<>(Arrays.asList("[z]")); - - new TreeScanner() { - - @Override - public Void visitErroneous(ErroneousTree node, Void p) { - - values.add(getErroneousTreeValues(node).toString()); - return null; - - } - }.scan(cut, null); - - assertEquals("testSwitchError: The Erroneous tree " - + "error values: " + values - + " do not match expected error values: " - + expectedValues, values, expectedValues); - } - - //expected erroneous tree: String s = (ERROR); - public void testMissingParenthesisError() throws IOException { - - String code = "package test; public class ErrorTest { " - + "void f() {String s = new String; } }"; - CompilationUnitTree cut = getCompilationUnitTree(code); - final List values = new ArrayList<>(); - final List expectedValues = - new ArrayList<>(Arrays.asList("[new String()]")); - - new TreeScanner() { - - @Override - public Void visitErroneous(ErroneousTree node, Void p) { - - values.add(getErroneousTreeValues(node).toString()); - return null; - } - }.scan(cut, null); - - assertEquals("testSwitchError: The Erroneous tree " - + "error values: " + values - + " do not match expected error values: " - + expectedValues, values, expectedValues); - } - - //expected erroneous tree: package test; (ERROR)(ERROR) - public void testMissingClassError() throws IOException { - - String code = "package Test; clas ErrorTest { " - + "void f() {String s = new String(); } }"; - CompilationUnitTree cut = getCompilationUnitTree(code); - final List values = new ArrayList<>(); - final List expectedValues = - new ArrayList<>(Arrays.asList("[, clas]", "[]")); - - new TreeScanner() { - - @Override - public Void visitErroneous(ErroneousTree node, Void p) { - - values.add(getErroneousTreeValues(node).toString()); - return null; - } - }.scan(cut, null); - - assertEquals("testSwitchError: The Erroneous tree " - + "error values: " + values - + " do not match expected error values: " - + expectedValues, values, expectedValues); - } - - //expected erroneous tree: void m1(int i) {(ERROR);{(ERROR);} - public void testSwitchError() throws IOException { - - String code = "package test; public class ErrorTest { " - + "int numDays; void m1(int i) { switchh {i} { case 1: " - + "numDays = 31; break; } } }"; - CompilationUnitTree cut = getCompilationUnitTree(code); - final List values = new ArrayList<>(); - final List expectedValues = - new ArrayList<>(Arrays.asList("[switchh]", "[i]")); - - new TreeScanner() { - - @Override - public Void visitErroneous(ErroneousTree node, Void p) { - - values.add(getErroneousTreeValues(node).toString()); - return null; - } - }.scan(cut, null); - - assertEquals("testSwitchError: The Erroneous tree " - + "error values: " + values - + " do not match expected error values: " - + expectedValues, values, expectedValues); - } - - //expected erroneous tree: class ErrorTest {(ERROR) - public void testMethodError() throws IOException { - - String code = "package Test; class ErrorTest { " - + "static final void f) {String s = new String(); } }"; - CompilationUnitTree cut = getCompilationUnitTree(code); - final List values = new ArrayList<>(); - final List expectedValues = - new ArrayList<>(Arrays.asList("[\nstatic final void f();]")); - - new TreeScanner() { - - @Override - public Void visitErroneous(ErroneousTree node, Void p) { - - values.add(normalize(getErroneousTreeValues(node).toString())); - return null; - } - }.scan(cut, null); - - assertEquals("testMethodError: The Erroneous tree " - + "error value: " + values - + " does not match expected error values: " - + expectedValues, values, expectedValues); - } - - void testsNotWorking() throws IOException { - - // Fails with nb-javac, needs further investigation - testPositionBrokenSource126732a(); - testPositionBrokenSource126732b(); - - // Fails, these tests yet to be addressed - testPositionForEnumModifiers(); - testStartPositionEnumConstantInit(); - } - void testPositions() throws IOException { - testPositionsSane(); - testCorrectWilcardPositions(); - testPositionAnnotationNoPackage187551(); - testPositionForSuperConstructorCalls(); - testPreferredPositionForBinaryOp(); - testStartPositionForMethodWithoutModifiers(); - testVarPos(); - testVariableInIfThen1(); - testVariableInIfThen2(); - testVariableInIfThen3(); - testVariableInIfThen4(); - testVariableInIfThen5(); - testMissingExponent(); - testTryResourcePos(); - testOperatorMissingError(); - testMissingParenthesisError(); - testMissingClassError(); - testSwitchError(); - testMethodError(); - testErrorRecoveryForEnhancedForLoop142381(); - } - - public static void main(String... args) throws IOException { - JavacParserTest jpt = new JavacParserTest("JavacParserTest"); - jpt.testPositions(); - System.out.println("PASS"); + } + System.out.printf("Passed: %d, Failed %d%n", passed, failed); + if (failed > 0) { + throw new RuntimeException("Tests failed: " + failed); + } + if (passed == 0 && failed == 0) { + throw new AssertionError("No test(s) selected: passed = " + + passed + ", failed = " + failed + " ??????????"); + } } } @@ -906,8 +947,6 @@ abstract class TestCase { } void assertEquals(String message, Object o1, Object o2) { - System.out.println(o1); - System.out.println(o2); if (o1 != null && o2 != null && !o1.equals(o2)) { fail(message); } @@ -929,4 +968,11 @@ abstract class TestCase { void fail(String message) { throw new RuntimeException(message); } + + /** + * Indicates that the annotated method is a test method. + */ + @Retention(RetentionPolicy.RUNTIME) + @Target(ElementType.METHOD) + public @interface Test {} } From e881068530930d896b6789bb9d9d10625b449fef Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Mon, 11 Jun 2012 15:47:01 -0700 Subject: [PATCH 22/46] 7157610: NullPointerException occurs when parsing XML doc Recovers what was the original disallow-doctype-decl, reporting error when disallow-doctype-decl is true, and change everything else that was added for SupportDTD to be governed by a new flag 'fSupportDTD'. Reviewed-by: lancea --- .../impl/XMLDocumentFragmentScannerImpl.java | 5 +++-- .../internal/impl/XMLDocumentScannerImpl.java | 22 ++++++++++--------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java b/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java index f1c611b0d1a..d6680eceb05 100644 --- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java +++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java @@ -286,12 +286,13 @@ public class XMLDocumentFragmentScannerImpl //STAX related properties //defaultValues. + protected boolean fSupportDTD = true; protected boolean fReplaceEntityReferences = true; protected boolean fSupportExternalEntities = false; protected boolean fReportCdataEvent = false ; protected boolean fIsCoalesce = false ; protected String fDeclaredEncoding = null; - /** Disallow doctype declaration. */ + /** Xerces Feature: Disallow doctype declaration. */ protected boolean fDisallowDoctype = false; // drivers @@ -1847,7 +1848,7 @@ public class XMLDocumentFragmentScannerImpl // start general entity if (!fEntityStore.isDeclaredEntity(name)) { //SUPPORT_DTD=false && ReplaceEntityReferences should throw exception - if (fDisallowDoctype && fReplaceEntityReferences) { + if (!fSupportDTD && fReplaceEntityReferences) { reportFatalError("EntityNotDeclared", new Object[]{name}); return; } diff --git a/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl.java b/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl.java index c705b1881b8..b6ef755a473 100644 --- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl.java +++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl.java @@ -278,7 +278,7 @@ public class XMLDocumentScannerImpl fDoctypeSystemId = null; fSeenDoctypeDecl = false; fNamespaceContext.reset(); - fDisallowDoctype = !((Boolean)propertyManager.getProperty(XMLInputFactory.SUPPORT_DTD)).booleanValue(); + fSupportDTD = ((Boolean)propertyManager.getProperty(XMLInputFactory.SUPPORT_DTD)).booleanValue(); // xerces features fLoadExternalDTD = !((Boolean)propertyManager.getProperty(Constants.ZEPHYR_PROPERTY_PREFIX + Constants.IGNORE_EXTERNAL_DTD)).booleanValue(); @@ -628,7 +628,7 @@ public class XMLDocumentScannerImpl // scanning methods /** Scans a doctype declaration. */ - protected boolean scanDoctypeDecl(boolean ignore) throws IOException, XNIException { + protected boolean scanDoctypeDecl(boolean supportDTD) throws IOException, XNIException { // spaces if (!fEntityScanner.skipSpaces()) { @@ -653,7 +653,7 @@ public class XMLDocumentScannerImpl fHasExternalDTD = fDoctypeSystemId != null; // Attempt to locate an external subset with an external subset resolver. - if (!ignore && !fHasExternalDTD && fExternalSubsetResolver != null) { + if (supportDTD && !fHasExternalDTD && fExternalSubsetResolver != null) { fDTDDescription.setValues(null, null, fEntityManager.getCurrentResourceIdentifier().getExpandedSystemId(), null); fDTDDescription.setRootName(fDoctypeName); fExternalSubsetSource = fExternalSubsetResolver.getExternalSubset(fDTDDescription); @@ -661,7 +661,7 @@ public class XMLDocumentScannerImpl } // call handler - if (!ignore && fDocumentHandler != null) { + if (supportDTD && fDocumentHandler != null) { // NOTE: I don't like calling the doctypeDecl callback until // end of the *full* doctype line (including internal // subset) is parsed correctly but SAX2 requires that @@ -916,6 +916,10 @@ public class XMLDocumentScannerImpl } case SCANNER_STATE_DOCTYPE: { + if (fDisallowDoctype) { + reportFatalError("DoctypeNotAllowed", null); + } + if (fSeenDoctypeDecl) { reportFatalError("AlreadySeenDoctype", null); @@ -924,7 +928,7 @@ public class XMLDocumentScannerImpl // scanDoctypeDecl() sends XNI doctypeDecl event that // in SAX is converted to startDTD() event. - if (scanDoctypeDecl(fDisallowDoctype)) { + if (scanDoctypeDecl(fSupportDTD)) { //allow parsing of entity decls to continue in order to stay well-formed setScannerState(SCANNER_STATE_DTD_INTERNAL_DECLS); fSeenInternalSubset = true; @@ -934,8 +938,6 @@ public class XMLDocumentScannerImpl setDriver(fContentDriver); //always return DTD event, the event however, will not contain any entities return fDTDDriver.next(); - // If no DTD support, ignore and continue parsing - //return fDisallowDoctype ? next() : dtdEvent; } if(fSeenDoctypeDecl){ @@ -950,7 +952,7 @@ public class XMLDocumentScannerImpl if (fDoctypeSystemId != null) { if (((fValidation || fLoadExternalDTD) && (fValidationManager == null || !fValidationManager.isCachedDTD()))) { - if (!fDisallowDoctype) + if (fSupportDTD) setScannerState(SCANNER_STATE_DTD_EXTERNAL); else setScannerState(SCANNER_STATE_PROLOG); @@ -967,7 +969,7 @@ public class XMLDocumentScannerImpl // This handles the case of a DOCTYPE that had neither an internal subset or an external subset. fDTDScanner.setInputSource(fExternalSubsetSource); fExternalSubsetSource = null; - if (!fDisallowDoctype) + if (fSupportDTD) setScannerState(SCANNER_STATE_DTD_EXTERNAL_DECLS); else setScannerState(SCANNER_STATE_PROLOG); @@ -1113,7 +1115,7 @@ public class XMLDocumentScannerImpl } fMarkupDepth--; - if (fDisallowDoctype) { + if (!fSupportDTD) { //simply reset the entity store without having to mess around //with the DTD Scanner code fEntityStore = fEntityManager.getEntityStore(); From 94d67fa6a567e45fe9b538df7bd8d971ab98967d Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Tue, 12 Jun 2012 10:23:49 -0700 Subject: [PATCH 23/46] 7144423: StAX EventReader swallows the cause of error Make sure the cause of the error is properly reported Reviewed-by: lancea, psandoz --- .../com/sun/xml/internal/stream/XMLEventReaderImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jaxp/src/com/sun/xml/internal/stream/XMLEventReaderImpl.java b/jaxp/src/com/sun/xml/internal/stream/XMLEventReaderImpl.java index fd7c9e120e2..ee4103a9c6a 100644 --- a/jaxp/src/com/sun/xml/internal/stream/XMLEventReaderImpl.java +++ b/jaxp/src/com/sun/xml/internal/stream/XMLEventReaderImpl.java @@ -248,8 +248,11 @@ public class XMLEventReaderImpl implements javax.xml.stream.XMLEventReader{ object = nextEvent(); }catch(XMLStreamException streamException){ fLastEvent = null ; - //xxx: what should be done in this case ? - throw new NoSuchElementException(); + //don't swallow the cause + NoSuchElementException e = new NoSuchElementException(streamException.getMessage()); + e.initCause(streamException.getCause()); + throw e; + } return object; } From bf4e37de483f3ef5d1d2ac6cff6f2bf838de2004 Mon Sep 17 00:00:00 2001 From: Tomas Hurka Date: Wed, 13 Jun 2012 18:33:30 +0400 Subject: [PATCH 24/46] 7176644: [macosx] Missing NSAutoreleasePool in CGLGraphicsConfig.m OGLGC_DestroyOGLGraphicsConfig Create and drain an autorelease pool Reviewed-by: anthony, dcherepanov --- jdk/src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jdk/src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m b/jdk/src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m index ba1f2bc59a1..bbe42519694 100644 --- a/jdk/src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m +++ b/jdk/src/macosx/native/sun/java2d/opengl/CGLGraphicsConfig.m @@ -63,12 +63,14 @@ OGLGC_DestroyOGLGraphicsConfig(jlong pConfigInfo) CGLCtxInfo *ctxinfo = (CGLCtxInfo *)oglc->ctxInfo; if (ctxinfo != NULL) { + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; [NSOpenGLContext clearCurrentContext]; [ctxinfo->context clearDrawable]; [ctxinfo->context release]; if (ctxinfo->scratchSurface != 0) { [ctxinfo->scratchSurface release]; } + [pool drain]; free(ctxinfo); } } From 4529bcedea5cc082655c364222c980e87b23f0bc Mon Sep 17 00:00:00 2001 From: Alexander Scherbatiy Date: Wed, 13 Jun 2012 18:43:07 +0400 Subject: [PATCH 25/46] 7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail Reviewed-by: rupashka --- .../swing/JCheckBox/4449413/bug4449413.html | 17 +++ .../swing/JCheckBox/4449413/bug4449413.java | 111 ++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 jdk/test/javax/swing/JCheckBox/4449413/bug4449413.html create mode 100644 jdk/test/javax/swing/JCheckBox/4449413/bug4449413.java diff --git a/jdk/test/javax/swing/JCheckBox/4449413/bug4449413.html b/jdk/test/javax/swing/JCheckBox/4449413/bug4449413.html new file mode 100644 index 00000000000..cec2ce04678 --- /dev/null +++ b/jdk/test/javax/swing/JCheckBox/4449413/bug4449413.html @@ -0,0 +1,17 @@ + + +When the applet starts, you'll see eight controls with black backgrounds. +Four enabled (on the left side) and four disabled (on the right side) +checkboxes and radiobuttons. + +1. If at least one of the controls' check marks is not visible: + the test fails. + +2. Uncheck the "Use Ocean Theme" check box. + If now at least one of the controls' check marks is not visible: + the test fails. + + + + + diff --git a/jdk/test/javax/swing/JCheckBox/4449413/bug4449413.java b/jdk/test/javax/swing/JCheckBox/4449413/bug4449413.java new file mode 100644 index 00000000000..4fd8efdb5f4 --- /dev/null +++ b/jdk/test/javax/swing/JCheckBox/4449413/bug4449413.java @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* @test + * @bug 4449413 + * @summary Tests that checkbox and radiobuttons' check marks are visible when background is black + * @author Ilya Boyandin + * @run applet/manual=yesno bug4449413.html + */ + +import javax.swing.*; +import javax.swing.plaf.metal.*; +import java.awt.event.*; +import java.awt.*; +import sun.awt.OSInfo; + +public class bug4449413 extends JApplet { + + @Override + public void init() { + + try { + + if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) { + UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); + } + + final MetalTheme oceanTheme = (MetalTheme) sun.awt.AppContext.getAppContext().get("currentMetalTheme"); + + + SwingUtilities.invokeAndWait(new Runnable() { + + @Override + public void run() { + getContentPane().setLayout(new FlowLayout()); + final JPanel panel = new JPanel(); + + JCheckBox box = new JCheckBox("Use Ocean theme", true); + getContentPane().add(box); + box.addItemListener(new ItemListener() { + + @Override + public void itemStateChanged(ItemEvent e) { + if (e.getStateChange() == ItemEvent.SELECTED) { + MetalLookAndFeel.setCurrentTheme(oceanTheme); + } else { + MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme()); + } + SwingUtilities.updateComponentTreeUI(panel); + } + }); + + getContentPane().add(panel); + panel.setLayout(new GridLayout(4, 6, 10, 15)); + for (int k = 0; k <= 3; k++) { + for (int j = 1; j >= 0; j--) { + AbstractButton b = createButton(j, k); + panel.add(b); + } + } + } + }); + + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + static AbstractButton createButton(int enabled, int type) { + AbstractButton b = null; + switch (type) { + case 0: + b = new JRadioButton("RadioButton"); + break; + case 1: + b = new JCheckBox("CheckBox"); + break; + case 2: + b = new JRadioButtonMenuItem("RBMenuItem"); + break; + case 3: + b = new JCheckBoxMenuItem("CBMenuItem"); + break; + } + b.setBackground(Color.black); + b.setForeground(Color.white); + b.setEnabled(enabled == 1); + b.setSelected(true); + return b; + } +} From a8072dc2a061d150bd804a0089d61f81ab23608d Mon Sep 17 00:00:00 2001 From: Phil Race Date: Wed, 13 Jun 2012 12:46:02 -0700 Subject: [PATCH 26/46] 7027300: Unsynchronized HashMap access causes endless loop Reviewed-by: bae, jgodinez --- jdk/src/share/classes/sun/font/SunLayoutEngine.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jdk/src/share/classes/sun/font/SunLayoutEngine.java b/jdk/src/share/classes/sun/font/SunLayoutEngine.java index 9e6df01bd40..efeebca9180 100644 --- a/jdk/src/share/classes/sun/font/SunLayoutEngine.java +++ b/jdk/src/share/classes/sun/font/SunLayoutEngine.java @@ -33,7 +33,7 @@ package sun.font; import sun.font.GlyphLayout.*; import java.awt.geom.Point2D; import java.lang.ref.SoftReference; -import java.util.HashMap; +import java.util.concurrent.ConcurrentHashMap; import java.util.Locale; /* @@ -129,9 +129,9 @@ public final class SunLayoutEngine implements LayoutEngine, LayoutEngineFactory // !!! don't need this unless we have more than one sun layout engine... public LayoutEngine getEngine(LayoutEngineKey key) { - HashMap cache = (HashMap)cacheref.get(); + ConcurrentHashMap cache = (ConcurrentHashMap)cacheref.get(); if (cache == null) { - cache = new HashMap(); + cache = new ConcurrentHashMap(); cacheref = new SoftReference(cache); } From 9d94d3259409493bf862c032243294652b86921f Mon Sep 17 00:00:00 2001 From: Andrew Brygin Date: Thu, 14 Jun 2012 11:14:44 +0400 Subject: [PATCH 27/46] 7153693: Three 2D_ImageIO tests failed due ImageFormatException on OEL 6.* Unbreakable Kernel x64 Reviewed-by: jgodinez, prr --- jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c b/jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c index 1879c35ced3..33ff3efe653 100644 --- a/jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c +++ b/jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c @@ -337,7 +337,7 @@ sun_jpeg_fill_suspended_buffer(j_decompress_ptr cinfo) /* Save the data currently in the buffer */ offset = src->pub.bytes_in_buffer; if (src->pub.next_input_byte > src->inbuf) { - memcpy(src->inbuf, src->pub.next_input_byte, offset); + memmove(src->inbuf, src->pub.next_input_byte, offset); } RELEASE_ARRAYS(env, src); buflen = (*env)->GetArrayLength(env, src->hInputBuffer) - offset; From 0527d0162252850f461e1f648ae4aa3e4f170b24 Mon Sep 17 00:00:00 2001 From: Phil Race Date: Thu, 14 Jun 2012 16:34:43 -0700 Subject: [PATCH 28/46] 7158366: [macosx] Print-to-file dialog doesn't have an entry field for a name Reviewed-by: bae, jgodinez --- jdk/src/share/classes/sun/print/ServiceDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jdk/src/share/classes/sun/print/ServiceDialog.java b/jdk/src/share/classes/sun/print/ServiceDialog.java index 136b40e487b..1251cf9beba 100644 --- a/jdk/src/share/classes/sun/print/ServiceDialog.java +++ b/jdk/src/share/classes/sun/print/ServiceDialog.java @@ -429,6 +429,7 @@ public class ServiceDialog extends JDialog implements ActionListener { ValidatingFileChooser jfc = new ValidatingFileChooser(); jfc.setApproveButtonText(getMsg("button.ok")); jfc.setDialogTitle(getMsg("dialog.printtofile")); + jfc.setDialogType(JFileChooser.SAVE_DIALOG); jfc.setSelectedFile(fileDest); int returnVal = jfc.showDialog(this, null); From 8f4a77bfefc9c9e0fd7ece489f75870cc70ca145 Mon Sep 17 00:00:00 2001 From: Alexander Zuev Date: Fri, 15 Jun 2012 18:28:33 +0400 Subject: [PATCH 29/46] 7171163: [macosx] Shortcomings in the design of the secondary native event loop made JavaFX DnD deadlock Reviewed-by: anthony, art --- .../macosx/CToolkitThreadBlockedHandler.java | 5 +-- .../classes/sun/lwawt/macosx/LWCToolkit.java | 4 +-- jdk/src/macosx/native/sun/awt/LWCToolkit.m | 34 +++++-------------- .../sun/awt/dnd/SunDropTargetContextPeer.java | 2 +- 4 files changed, 14 insertions(+), 31 deletions(-) diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CToolkitThreadBlockedHandler.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CToolkitThreadBlockedHandler.java index 95d15a8feaa..94a74e5174b 100644 --- a/jdk/src/macosx/classes/sun/lwawt/macosx/CToolkitThreadBlockedHandler.java +++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CToolkitThreadBlockedHandler.java @@ -41,10 +41,11 @@ final class CToolkitThreadBlockedHandler implements ToolkitThreadBlockedHandler } public void enter() { - toolkit.startNativeNestedEventLoop(); + // Execute the next AppKit event while we are waiting for system to + // finish our request - this will save us from biting our own tail + toolkit.executeNextAppKitEvent(); } public void exit() { - toolkit.stopNativeNestedEventLoop(); } } diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java b/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java index 0e5888ee3de..d3565b845ad 100644 --- a/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java +++ b/jdk/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java @@ -63,9 +63,7 @@ public class LWCToolkit extends LWToolkit { private static native void initIDs(); - static native void startNativeNestedEventLoop(); - - static native void stopNativeNestedEventLoop(); + static native void executeNextAppKitEvent(); private static CInputMethodDescriptor sInputMethodDescriptor; diff --git a/jdk/src/macosx/native/sun/awt/LWCToolkit.m b/jdk/src/macosx/native/sun/awt/LWCToolkit.m index 173154a151c..f9b17fca6b7 100644 --- a/jdk/src/macosx/native/sun/awt/LWCToolkit.m +++ b/jdk/src/macosx/native/sun/awt/LWCToolkit.m @@ -42,7 +42,6 @@ jint* gButtonDownMasks; @implementation AWTToolkit static long eventCount; -static bool shouldKeepRunningNestedLoop = NO; + (long) getEventCount{ return eventCount; @@ -460,33 +459,18 @@ Java_sun_font_FontManager_populateFontFileNameMap /* * Class: sun_lwawt_macosx_LWCToolkit - * Method: startNativeNestedEventLoop + * Method: executeNextAppKitEvent * Signature: ()V */ -JNIEXPORT void JNICALL Java_sun_lwawt_macosx_LWCToolkit_startNativeNestedEventLoop +JNIEXPORT void JNICALL Java_sun_lwawt_macosx_LWCToolkit_executeNextAppKitEvent (JNIEnv *env, jclass cls) { - if(!shouldKeepRunningNestedLoop) { - NSRunLoop *theRL = [NSRunLoop currentRunLoop]; - NSApplication * app = [NSApplication sharedApplication]; - shouldKeepRunningNestedLoop = YES; - while (shouldKeepRunningNestedLoop && [theRL runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]) - { - NSEvent * event = [app nextEventMatchingMask: 0xFFFFFFFF untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES]; - if (event != nil) { - [app sendEvent: event]; - } - } + // Simply get the next event in native loop and pass it to execution + // We'll be called repeatedly so there's no need to block here + NSRunLoop *theRL = [NSRunLoop currentRunLoop]; + NSApplication * app = [NSApplication sharedApplication]; + NSEvent * event = [app nextEventMatchingMask: 0xFFFFFFFF untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES]; + if (event != nil) { + [app sendEvent: event]; } } - -/* - * Class: sun_lwawt_macosx_LWCToolkit - * Method: stopNativeNestedEventLoop - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_sun_lwawt_macosx_LWCToolkit_stopNativeNestedEventLoop -(JNIEnv *env, jclass cls) -{ - shouldKeepRunningNestedLoop = NO; -} diff --git a/jdk/src/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java b/jdk/src/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java index 360bb9a63a6..302a6dbc62e 100644 --- a/jdk/src/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java +++ b/jdk/src/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java @@ -498,7 +498,7 @@ public abstract class SunDropTargetContextPeer implements DropTargetContextPeer, postDropTargetEvent(component, x, y, dropAction, actions, formats, nativeCtxt, SunDropTargetEvent.MOUSE_DROPPED, - !SunDropTargetContextPeer.DISPATCH_SYNC); + SunDropTargetContextPeer.DISPATCH_SYNC); } /** From 4406545ed55dd211a52f36533312dd2642c31ab5 Mon Sep 17 00:00:00 2001 From: Alexander Scherbatiy Date: Mon, 18 Jun 2012 15:39:27 +0400 Subject: [PATCH 30/46] 7174970: NLS [ccjk] Extra mnemonic keys at standard filechooserdialog (open and save) in metal L&F Reviewed-by: rupashka --- .../plaf/basic/resources/basic.properties | 376 +++++++++--------- .../plaf/basic/resources/basic_de.properties | 374 ++++++++--------- .../plaf/basic/resources/basic_es.properties | 372 ++++++++--------- .../plaf/basic/resources/basic_fr.properties | 372 ++++++++--------- .../plaf/basic/resources/basic_it.properties | 372 ++++++++--------- .../plaf/basic/resources/basic_ja.properties | 372 ++++++++--------- .../plaf/basic/resources/basic_ko.properties | 372 ++++++++--------- .../basic/resources/basic_pt_BR.properties | 372 ++++++++--------- .../plaf/basic/resources/basic_sv.properties | 372 ++++++++--------- .../basic/resources/basic_zh_CN.properties | 372 ++++++++--------- .../basic/resources/basic_zh_TW.properties | 372 ++++++++--------- .../plaf/metal/resources/metal.properties | 104 ++--- .../plaf/metal/resources/metal_de.properties | 106 ++--- .../plaf/metal/resources/metal_es.properties | 106 ++--- .../plaf/metal/resources/metal_fr.properties | 106 ++--- .../plaf/metal/resources/metal_it.properties | 106 ++--- .../plaf/metal/resources/metal_ja.properties | 106 ++--- .../plaf/metal/resources/metal_ko.properties | 106 ++--- .../metal/resources/metal_pt_BR.properties | 106 ++--- .../plaf/metal/resources/metal_sv.properties | 106 ++--- .../metal/resources/metal_zh_CN.properties | 106 ++--- .../metal/resources/metal_zh_TW.properties | 106 ++--- 22 files changed, 2642 insertions(+), 2620 deletions(-) diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties index 335d69a4a84..722d302ef8e 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties @@ -1,189 +1,189 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=Generic File -FileChooser.directoryDescription.textAndMnemonic=Directory -FileChooser.newFolderError.textAndMnemonic=Error creating new folder -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Unable to create folder -FileChooser.newFolderParentDoesntExist.textAndMnemonic=Unable to create the folder.\n\nThe system cannot find the path specified. -FileChooser.renameErrorTitle.textAndMnemonic=Error Renaming File or Folder -FileChooser.renameError.textAndMnemonic=Cannot rename {0} +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=Generic File +FileChooser.directoryDescription.textAndMnemonic=Directory +FileChooser.newFolderError.textAndMnemonic=Error creating new folder +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Unable to create folder +FileChooser.newFolderParentDoesntExist.textAndMnemonic=Unable to create the folder.\n\nThe system cannot find the path specified. +FileChooser.renameErrorTitle.textAndMnemonic=Error Renaming File or Folder +FileChooser.renameError.textAndMnemonic=Cannot rename {0} FileChooser.renameErrorFileExists.textAndMnemonic=Cannot rename {0}: A file with the name you specified already exists. \ - Specify a different file name. -FileChooser.acceptAllFileFilter.textAndMnemonic=All Files -FileChooser.cancelButton.textAndMnemonic=Cancel -FileChooser.saveButton.textAndMnemonic=&Save -FileChooser.openButton.textAndMnemonic=&Open -FileChooser.saveDialogTitle.textAndMnemonic=Save -FileChooser.openDialogTitle.textAndMnemonic=Open -FileChooser.updateButton.textAndMnemonic=&Update -FileChooser.helpButton.textAndMnemonic=&Help -FileChooser.directoryOpenButton.textAndMnemonic=&Open - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=New Folder -FileChooser.win32.newFolder.subsequent=New Folder ({0}) -FileChooser.other.newFolder=NewFolder -FileChooser.other.newFolder.subsequent=NewFolder.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=Abort file chooser dialog -FileChooser.saveButtonToolTip.textAndMnemonic=Save selected file -FileChooser.openButtonToolTip.textAndMnemonic=Open selected file -FileChooser.updateButtonToolTip.textAndMnemonic=Update directory listing -FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser help -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Open selected directory - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=Preview -ColorChooser.ok.textAndMnemonic=OK -ColorChooser.cancel.textAndMnemonic=Cancel -ColorChooser.reset.textAndMnemonic=&Reset -ColorChooser.sample.textAndMnemonic=Sample Text Sample Text -ColorChooser.swatches.textAndMnemonic=&Swatches -ColorChooser.swatchesRecent.textAndMnemonic=Recent: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=Hue -ColorChooser.hsvSaturation.textAndMnemonic=Saturation -ColorChooser.hsvValue.textAndMnemonic=Value -ColorChooser.hsvTransparency.textAndMnemonic=Transparency -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=Hue -ColorChooser.hslSaturation.textAndMnemonic=Saturation -ColorChooser.hslLightness.textAndMnemonic=Lightness -ColorChooser.hslTransparency.textAndMnemonic=Transparency -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=Re&d -ColorChooser.rgbGreen.textAndMnemonic=Gree&n -ColorChooser.rgbBlue.textAndMnemonic=&Blue -ColorChooser.rgbAlpha.textAndMnemonic=Alpha -ColorChooser.rgbHexCode.textAndMnemonic=&Color Code -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=Cyan -ColorChooser.cmykMagenta.textAndMnemonic=Magenta -ColorChooser.cmykYellow.textAndMnemonic=Yellow -ColorChooser.cmykBlack.textAndMnemonic=Black -ColorChooser.cmykAlpha.textAndMnemonic=Alpha - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=&Yes -OptionPane.noButton.textAndMnemonic=&No -OptionPane.okButton.textAndMnemonic=OK -#OptionPane.okButtonMnemonic=0 -OptionPane.cancelButton.textAndMnemonic=Cancel -#OptionPane.cancelButtonMnemonic=0 -OptionPane.title.textAndMnemonic=Select an Option -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=Input -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=Message - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=Printing -PrintingDialog.titleAborting.textAndMnemonic=Printing (Aborting) - -PrintingDialog.contentInitial.textAndMnemonic=Printing in progress... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=Printed page {0}... - -PrintingDialog.contentAborting.textAndMnemonic=Printing aborting... - -PrintingDialog.abortButton.textAndMnemonic=&Abort -PrintingDialog.abortButtonToolTip.textAndMnemonic=Abort Printing - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=Minimize -InternalFrame.maxButtonToolTip=Maximize -InternalFrame.restoreButtonToolTip=Restore -InternalFrame.closeButtonToolTip=Close - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=Restore -InternalFrameTitlePane.moveButton.textAndMnemonic=Move -InternalFrameTitlePane.sizeButton.textAndMnemonic=Size -InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimize -InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximize -InternalFrameTitlePane.closeButton.textAndMnemonic=Close - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=Submit Query -FormView.resetButton.textAndMnemonic=Reset -FormView.browseFileButton.textAndMnemonic=Browse... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=style change -AbstractDocument.addition.textAndMnemonic=addition -AbstractDocument.deletion.textAndMnemonic=deletion -AbstractDocument.undo.textAndMnemonic=Undo -AbstractDocument.redo.textAndMnemonic=Redo - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=click - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=Undo -AbstractUndoableEdit.redo.textAndMnemonic=Redo - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=Progress... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=left button -SplitPane.rightButton.textAndMnemonic=right button -# Used for Isindex -IsindexView.prompt=This is a searchable index. Enter search keywords: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=Iconify -InternalFrameTitlePane.maximizeButtonAccessibleName=Maximize -InternalFrameTitlePane.closeButtonAccessibleName=Close + Specify a different file name. +FileChooser.acceptAllFileFilter.textAndMnemonic=All Files +FileChooser.cancelButton.textAndMnemonic=Cancel +FileChooser.saveButton.textAndMnemonic=&Save +FileChooser.openButton.textAndMnemonic=&Open +FileChooser.saveDialogTitle.textAndMnemonic=Save +FileChooser.openDialogTitle.textAndMnemonic=Open +FileChooser.updateButton.textAndMnemonic=&Update +FileChooser.helpButton.textAndMnemonic=&Help +FileChooser.directoryOpenButton.textAndMnemonic=&Open + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=New Folder +FileChooser.win32.newFolder.subsequent=New Folder ({0}) +FileChooser.other.newFolder=NewFolder +FileChooser.other.newFolder.subsequent=NewFolder.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=Abort file chooser dialog +FileChooser.saveButtonToolTip.textAndMnemonic=Save selected file +FileChooser.openButtonToolTip.textAndMnemonic=Open selected file +FileChooser.updateButtonToolTip.textAndMnemonic=Update directory listing +FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser help +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Open selected directory + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=Preview +ColorChooser.ok.textAndMnemonic=OK +ColorChooser.cancel.textAndMnemonic=Cancel +ColorChooser.reset.textAndMnemonic=&Reset +ColorChooser.sample.textAndMnemonic=Sample Text Sample Text +ColorChooser.swatches.textAndMnemonic=&Swatches +ColorChooser.swatchesRecent.textAndMnemonic=Recent: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=Hue +ColorChooser.hsvSaturation.textAndMnemonic=Saturation +ColorChooser.hsvValue.textAndMnemonic=Value +ColorChooser.hsvTransparency.textAndMnemonic=Transparency +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=Hue +ColorChooser.hslSaturation.textAndMnemonic=Saturation +ColorChooser.hslLightness.textAndMnemonic=Lightness +ColorChooser.hslTransparency.textAndMnemonic=Transparency +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=Re&d +ColorChooser.rgbGreen.textAndMnemonic=Gree&n +ColorChooser.rgbBlue.textAndMnemonic=&Blue +ColorChooser.rgbAlpha.textAndMnemonic=Alpha +ColorChooser.rgbHexCode.textAndMnemonic=&Color Code +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=Cyan +ColorChooser.cmykMagenta.textAndMnemonic=Magenta +ColorChooser.cmykYellow.textAndMnemonic=Yellow +ColorChooser.cmykBlack.textAndMnemonic=Black +ColorChooser.cmykAlpha.textAndMnemonic=Alpha + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=&Yes +OptionPane.noButton.textAndMnemonic=&No +OptionPane.okButton.textAndMnemonic=OK +#OptionPane.okButtonMnemonic=0 +OptionPane.cancelButton.textAndMnemonic=Cancel +#OptionPane.cancelButtonMnemonic=0 +OptionPane.title.textAndMnemonic=Select an Option +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=Input +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=Message + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=Printing +PrintingDialog.titleAborting.textAndMnemonic=Printing (Aborting) + +PrintingDialog.contentInitial.textAndMnemonic=Printing in progress... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=Printed page {0}... + +PrintingDialog.contentAborting.textAndMnemonic=Printing aborting... + +PrintingDialog.abortButton.textAndMnemonic=&Abort +PrintingDialog.abortButtonToolTip.textAndMnemonic=Abort Printing + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=Minimize +InternalFrame.maxButtonToolTip=Maximize +InternalFrame.restoreButtonToolTip=Restore +InternalFrame.closeButtonToolTip=Close + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=Restore +InternalFrameTitlePane.moveButton.textAndMnemonic=Move +InternalFrameTitlePane.sizeButton.textAndMnemonic=Size +InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimize +InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximize +InternalFrameTitlePane.closeButton.textAndMnemonic=Close + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=Submit Query +FormView.resetButton.textAndMnemonic=Reset +FormView.browseFileButton.textAndMnemonic=Browse... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=style change +AbstractDocument.addition.textAndMnemonic=addition +AbstractDocument.deletion.textAndMnemonic=deletion +AbstractDocument.undo.textAndMnemonic=Undo +AbstractDocument.redo.textAndMnemonic=Redo + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=click + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=Undo +AbstractUndoableEdit.redo.textAndMnemonic=Redo + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=Progress... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=left button +SplitPane.rightButton.textAndMnemonic=right button +# Used for Isindex +IsindexView.prompt=This is a searchable index. Enter search keywords: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=Iconify +InternalFrameTitlePane.maximizeButtonAccessibleName=Maximize +InternalFrameTitlePane.closeButtonAccessibleName=Close diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_de.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_de.properties index 27db54f78f3..00e0fde1e0c 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_de.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_de.properties @@ -1,187 +1,187 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=Allgemeine Datei -FileChooser.directoryDescription.textAndMnemonic=Verzeichnis -FileChooser.newFolderError.textAndMnemonic=Fehler beim Erstellen eines neuen Ordners -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Ordner kann nicht erstellt werden -FileChooser.newFolderParentDoesntExist.textAndMnemonic=Ordner kann nicht erstellt werden.\n\nSystem kann den angegebenen Pfad nicht finden. -FileChooser.renameErrorTitle.textAndMnemonic=Fehler beim Umbenennen von Datei oder Ordner -FileChooser.renameError.textAndMnemonic={0} kann nicht umbenannt werden -FileChooser.renameErrorFileExists.textAndMnemonic={0} kann nicht umbenannt werden: Es ist bereits eine Datei mit dem angegebenen Namen vorhanden. Geben Sie einen anderen Dateinamen an. -FileChooser.acceptAllFileFilter.textAndMnemonic=Alle Dateien -FileChooser.cancelButton.textAndMnemonic=&Abbrechen -FileChooser.saveButton.textAndMnemonic=&Speichern -FileChooser.openButton.textAndMnemonic=\u00D6ffnen(&F) -FileChooser.saveDialogTitle.textAndMnemonic=Speichern -FileChooser.openDialogTitle.textAndMnemonic=\u00D6ffnen -FileChooser.updateButton.textAndMnemonic=A&ktualisieren -FileChooser.helpButton.textAndMnemonic=&Hilfe -FileChooser.directoryOpenButton.textAndMnemonic=\u00D6ffnen(&F) - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=Neuer Ordner -FileChooser.win32.newFolder.subsequent=Neuer Ordner ({0}) -FileChooser.other.newFolder=NewFolder -FileChooser.other.newFolder.subsequent=NewFolder.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=Dialogfeld f\u00FCr Dateiauswahl schlie\u00DFen -FileChooser.saveButtonToolTip.textAndMnemonic=Ausgew\u00E4hlte Datei speichern -FileChooser.openButtonToolTip.textAndMnemonic=Ausgew\u00E4hlte Datei \u00F6ffnen -FileChooser.updateButtonToolTip.textAndMnemonic=Verzeichnisliste aktualisieren -FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser-Hilfe -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Ausgew\u00E4hltes Verzeichnis \u00F6ffnen - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=Vorschau -ColorChooser.ok.textAndMnemonic=OK -ColorChooser.cancel.textAndMnemonic=Abbrechen -ColorChooser.reset.textAndMnemonic=Zur\u00FCcksetzen(&Z) -ColorChooser.sample.textAndMnemonic=Beispieltext Beispieltext -ColorChooser.swatches.textAndMnemonic=&Swatches -ColorChooser.swatchesRecent.textAndMnemonic=Aktuell: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=Farbton -ColorChooser.hsvSaturation.textAndMnemonic=S\u00E4ttigung -ColorChooser.hsvValue.textAndMnemonic=Wert -ColorChooser.hsvTransparency.textAndMnemonic=Transparenz -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=Farbton -ColorChooser.hslSaturation.textAndMnemonic=S\u00E4ttigung -ColorChooser.hslLightness.textAndMnemonic=Helligkeit -ColorChooser.hslTransparency.textAndMnemonic=Transparenz -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=Ro&t -ColorChooser.rgbGreen.textAndMnemonic=Gr\u00FCn(&N) -ColorChooser.rgbBlue.textAndMnemonic=&Blau -ColorChooser.rgbAlpha.textAndMnemonic=Alpha -ColorChooser.rgbHexCode.textAndMnemonic=&Farbcode -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=Zyan -ColorChooser.cmykMagenta.textAndMnemonic=Magenta -ColorChooser.cmykYellow.textAndMnemonic=Gelb -ColorChooser.cmykBlack.textAndMnemonic=Schwarz -ColorChooser.cmykAlpha.textAndMnemonic=Alpha - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=&Ja -OptionPane.noButton.textAndMnemonic=&Nein -OptionPane.okButton.textAndMnemonic=&OK -OptionPane.cancelButton.textAndMnemonic=&Abbrechen -OptionPane.title.textAndMnemonic=Option ausw\u00E4hlen -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=Eingabe -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=Meldung - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=Drucken -PrintingDialog.titleAborting.textAndMnemonic=Drucken (Abbruch) - -PrintingDialog.contentInitial.textAndMnemonic=Druckvorgang l\u00E4uft... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=Seite {0} wurde gedruckt... - -PrintingDialog.contentAborting.textAndMnemonic=Druckvorgang wird abgebrochen... - -PrintingDialog.abortButton.textAndMnemonic=&Abbruch -PrintingDialog.abortButtonToolTip.textAndMnemonic=Druckvorgang abbrechen - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=Minimieren -InternalFrame.maxButtonToolTip=Maximieren -InternalFrame.restoreButtonToolTip=Wiederherstellen -InternalFrame.closeButtonToolTip=Schlie\u00DFen - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=Wiederherstellen -InternalFrameTitlePane.moveButton.textAndMnemonic=Verschieben -InternalFrameTitlePane.sizeButton.textAndMnemonic=Gr\u00F6\u00DFe -InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimieren -InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximieren -InternalFrameTitlePane.closeButton.textAndMnemonic=Schlie\u00DFen - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=Abfrage weiterleiten -FormView.resetButton.textAndMnemonic=Zur\u00FCcksetzen -FormView.browseFileButton.textAndMnemonic=Durchsuchen... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=Formatvorlagen\u00E4nderung -AbstractDocument.addition.textAndMnemonic=Hinzuf\u00FCgen -AbstractDocument.deletion.textAndMnemonic=L\u00F6schen -AbstractDocument.undo.textAndMnemonic=R\u00FCckg\u00E4ngig -AbstractDocument.redo.textAndMnemonic=Wiederherstellen - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=Klicken - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=R\u00FCckg\u00E4ngig -AbstractUndoableEdit.redo.textAndMnemonic=Wiederherstellen - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=Fortschritt... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=linke Schaltfl\u00E4che -SplitPane.rightButton.textAndMnemonic=rechte Schaltfl\u00E4che -# Used for Isindex -IsindexView.prompt=Dieser Index kann durchsucht werden. Geben Sie Schl\u00FCsselw\u00F6rter f\u00FCr die Suche ein: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=Als Symbol darstellen -InternalFrameTitlePane.maximizeButtonAccessibleName=Maximieren -InternalFrameTitlePane.closeButtonAccessibleName=Schlie\u00DFen - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=Allgemeine Datei +FileChooser.directoryDescription.textAndMnemonic=Verzeichnis +FileChooser.newFolderError.textAndMnemonic=Fehler beim Erstellen eines neuen Ordners +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Ordner kann nicht erstellt werden +FileChooser.newFolderParentDoesntExist.textAndMnemonic=Ordner kann nicht erstellt werden.\n\nSystem kann den angegebenen Pfad nicht finden. +FileChooser.renameErrorTitle.textAndMnemonic=Fehler beim Umbenennen von Datei oder Ordner +FileChooser.renameError.textAndMnemonic={0} kann nicht umbenannt werden +FileChooser.renameErrorFileExists.textAndMnemonic={0} kann nicht umbenannt werden: Es ist bereits eine Datei mit dem angegebenen Namen vorhanden. Geben Sie einen anderen Dateinamen an. +FileChooser.acceptAllFileFilter.textAndMnemonic=Alle Dateien +FileChooser.cancelButton.textAndMnemonic=Abbrechen +FileChooser.saveButton.textAndMnemonic=&Speichern +FileChooser.openButton.textAndMnemonic=\u00D6ffnen(&F) +FileChooser.saveDialogTitle.textAndMnemonic=Speichern +FileChooser.openDialogTitle.textAndMnemonic=\u00D6ffnen +FileChooser.updateButton.textAndMnemonic=A&ktualisieren +FileChooser.helpButton.textAndMnemonic=&Hilfe +FileChooser.directoryOpenButton.textAndMnemonic=\u00D6ffnen(&F) + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=Neuer Ordner +FileChooser.win32.newFolder.subsequent=Neuer Ordner ({0}) +FileChooser.other.newFolder=NewFolder +FileChooser.other.newFolder.subsequent=NewFolder.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=Dialogfeld f\u00FCr Dateiauswahl schlie\u00DFen +FileChooser.saveButtonToolTip.textAndMnemonic=Ausgew\u00E4hlte Datei speichern +FileChooser.openButtonToolTip.textAndMnemonic=Ausgew\u00E4hlte Datei \u00F6ffnen +FileChooser.updateButtonToolTip.textAndMnemonic=Verzeichnisliste aktualisieren +FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser-Hilfe +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Ausgew\u00E4hltes Verzeichnis \u00F6ffnen + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=Vorschau +ColorChooser.ok.textAndMnemonic=OK +ColorChooser.cancel.textAndMnemonic=Abbrechen +ColorChooser.reset.textAndMnemonic=Zur\u00FCcksetzen(&Z) +ColorChooser.sample.textAndMnemonic=Beispieltext Beispieltext +ColorChooser.swatches.textAndMnemonic=&Swatches +ColorChooser.swatchesRecent.textAndMnemonic=Aktuell: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=Farbton +ColorChooser.hsvSaturation.textAndMnemonic=S\u00E4ttigung +ColorChooser.hsvValue.textAndMnemonic=Wert +ColorChooser.hsvTransparency.textAndMnemonic=Transparenz +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=Farbton +ColorChooser.hslSaturation.textAndMnemonic=S\u00E4ttigung +ColorChooser.hslLightness.textAndMnemonic=Helligkeit +ColorChooser.hslTransparency.textAndMnemonic=Transparenz +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=Ro&t +ColorChooser.rgbGreen.textAndMnemonic=Gr\u00FCn(&N) +ColorChooser.rgbBlue.textAndMnemonic=&Blau +ColorChooser.rgbAlpha.textAndMnemonic=Alpha +ColorChooser.rgbHexCode.textAndMnemonic=&Farbcode +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=Zyan +ColorChooser.cmykMagenta.textAndMnemonic=Magenta +ColorChooser.cmykYellow.textAndMnemonic=Gelb +ColorChooser.cmykBlack.textAndMnemonic=Schwarz +ColorChooser.cmykAlpha.textAndMnemonic=Alpha + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=&Ja +OptionPane.noButton.textAndMnemonic=&Nein +OptionPane.okButton.textAndMnemonic=&OK +OptionPane.cancelButton.textAndMnemonic=&Abbrechen +OptionPane.title.textAndMnemonic=Option ausw\u00E4hlen +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=Eingabe +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=Meldung + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=Drucken +PrintingDialog.titleAborting.textAndMnemonic=Drucken (Abbruch) + +PrintingDialog.contentInitial.textAndMnemonic=Druckvorgang l\u00E4uft... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=Seite {0} wurde gedruckt... + +PrintingDialog.contentAborting.textAndMnemonic=Druckvorgang wird abgebrochen... + +PrintingDialog.abortButton.textAndMnemonic=&Abbruch +PrintingDialog.abortButtonToolTip.textAndMnemonic=Druckvorgang abbrechen + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=Minimieren +InternalFrame.maxButtonToolTip=Maximieren +InternalFrame.restoreButtonToolTip=Wiederherstellen +InternalFrame.closeButtonToolTip=Schlie\u00DFen + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=Wiederherstellen +InternalFrameTitlePane.moveButton.textAndMnemonic=Verschieben +InternalFrameTitlePane.sizeButton.textAndMnemonic=Gr\u00F6\u00DFe +InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimieren +InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximieren +InternalFrameTitlePane.closeButton.textAndMnemonic=Schlie\u00DFen + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=Abfrage weiterleiten +FormView.resetButton.textAndMnemonic=Zur\u00FCcksetzen +FormView.browseFileButton.textAndMnemonic=Durchsuchen... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=Formatvorlagen\u00E4nderung +AbstractDocument.addition.textAndMnemonic=Hinzuf\u00FCgen +AbstractDocument.deletion.textAndMnemonic=L\u00F6schen +AbstractDocument.undo.textAndMnemonic=R\u00FCckg\u00E4ngig +AbstractDocument.redo.textAndMnemonic=Wiederherstellen + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=Klicken + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=R\u00FCckg\u00E4ngig +AbstractUndoableEdit.redo.textAndMnemonic=Wiederherstellen + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=Fortschritt... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=linke Schaltfl\u00E4che +SplitPane.rightButton.textAndMnemonic=rechte Schaltfl\u00E4che +# Used for Isindex +IsindexView.prompt=Dieser Index kann durchsucht werden. Geben Sie Schl\u00FCsselw\u00F6rter f\u00FCr die Suche ein: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=Als Symbol darstellen +InternalFrameTitlePane.maximizeButtonAccessibleName=Maximieren +InternalFrameTitlePane.closeButtonAccessibleName=Schlie\u00DFen + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_es.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_es.properties index df7789e4d58..74cf1255544 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_es.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_es.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=Archivo Gen\u00E9rico -FileChooser.directoryDescription.textAndMnemonic=Directorio -FileChooser.newFolderError.textAndMnemonic=Error al crear una nueva carpeta -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=No se ha podido crear la carpeta -FileChooser.newFolderParentDoesntExist.textAndMnemonic=No se ha podido crear la carpeta.\n\nEl sistema no puede encontrar la ruta de acceso especificada. -FileChooser.renameErrorTitle.textAndMnemonic=Error al cambiar el nombre del archivo o carpeta -FileChooser.renameError.textAndMnemonic=No se puede cambiar el nombre de {0} -FileChooser.renameErrorFileExists.textAndMnemonic=No se puede cambiar el nombre de {0}: ya existe un archivo con el nombre especificado. Especifique otro nombre de archivo. -FileChooser.acceptAllFileFilter.textAndMnemonic=Todos los Archivos -FileChooser.cancelButton.textAndMnemonic=&Cancelar -FileChooser.saveButton.textAndMnemonic=&Guardar -FileChooser.openButton.textAndMnemonic=A&brir -FileChooser.saveDialogTitle.textAndMnemonic=Guardar -FileChooser.openDialogTitle.textAndMnemonic=Abrir -FileChooser.updateButton.textAndMnemonic=Act&ualizar -FileChooser.helpButton.textAndMnemonic=A&yuda -FileChooser.directoryOpenButton.textAndMnemonic=&Abrir - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=Nueva Carpeta -FileChooser.win32.newFolder.subsequent=Nueva Carpeta ({0}) -FileChooser.other.newFolder=Nueva Carpeta -FileChooser.other.newFolder.subsequent=Nueva Carpeta.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=Cuadro de di\u00E1logo para abortar el selector de archivos -FileChooser.saveButtonToolTip.textAndMnemonic=Guardar archivo seleccionado -FileChooser.openButtonToolTip.textAndMnemonic=Abrir archivo seleccionado -FileChooser.updateButtonToolTip.textAndMnemonic=Actualizar lista de directorios -FileChooser.helpButtonToolTip.textAndMnemonic=Ayuda del Selector de Archivos -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Abrir directorio seleccionado - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=Presentaci\u00F3n Preliminar -ColorChooser.ok.textAndMnemonic=Aceptar -ColorChooser.cancel.textAndMnemonic=Cancelar -ColorChooser.reset.textAndMnemonic=&Restablecer -ColorChooser.sample.textAndMnemonic=Texto de Ejemplo Texto de Ejemplo -ColorChooser.swatches.textAndMnemonic=Mue&stras -ColorChooser.swatchesRecent.textAndMnemonic=Reciente: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=Matiz -ColorChooser.hsvSaturation.textAndMnemonic=Saturaci\u00F3n -ColorChooser.hsvValue.textAndMnemonic=Valor -ColorChooser.hsvTransparency.textAndMnemonic=Transparencia -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=Matiz -ColorChooser.hslSaturation.textAndMnemonic=Saturaci\u00F3n -ColorChooser.hslLightness.textAndMnemonic=Iluminaci\u00F3n -ColorChooser.hslTransparency.textAndMnemonic=Transparencia -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=Ro&jo -ColorChooser.rgbGreen.textAndMnemonic=&Verde -ColorChooser.rgbBlue.textAndMnemonic=A&zul -ColorChooser.rgbAlpha.textAndMnemonic=Alfa -ColorChooser.rgbHexCode.textAndMnemonic=C\u00F3digo de Color(&C) -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=Cian -ColorChooser.cmykMagenta.textAndMnemonic=Magenta -ColorChooser.cmykYellow.textAndMnemonic=Amarillo -ColorChooser.cmykBlack.textAndMnemonic=Negro -ColorChooser.cmykAlpha.textAndMnemonic=Alfa - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=S\u00ED(&S) -OptionPane.noButton.textAndMnemonic=&No -OptionPane.okButton.textAndMnemonic=Aceptar(&O) -OptionPane.cancelButton.textAndMnemonic=&Cancelar -OptionPane.title.textAndMnemonic=Seleccionar una Opci\u00F3n -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=Entrada -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=Mensaje - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=Impresi\u00F3n -PrintingDialog.titleAborting.textAndMnemonic=Impresi\u00F3n (Abortando) - -PrintingDialog.contentInitial.textAndMnemonic=Impresi\u00F3n en curso... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=P\u00E1gina impresa {0}... - -PrintingDialog.contentAborting.textAndMnemonic=Abortando la impresi\u00F3n... - -PrintingDialog.abortButton.textAndMnemonic=&Abortar -PrintingDialog.abortButtonToolTip.textAndMnemonic=Abortar Impresi\u00F3n - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=Minimizar -InternalFrame.maxButtonToolTip=Maximizar -InternalFrame.restoreButtonToolTip=Restaurar -InternalFrame.closeButtonToolTip=Cerrar - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=Restaurar -InternalFrameTitlePane.moveButton.textAndMnemonic=Mover -InternalFrameTitlePane.sizeButton.textAndMnemonic=Tama\u00F1o -InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimizar -InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximizar -InternalFrameTitlePane.closeButton.textAndMnemonic=Cerrar - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=Enviar Consulta -FormView.resetButton.textAndMnemonic=Restablecer -FormView.browseFileButton.textAndMnemonic=Examinar... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=cambio de estilo -AbstractDocument.addition.textAndMnemonic=agregaci\u00F3n -AbstractDocument.deletion.textAndMnemonic=supresi\u00F3n -AbstractDocument.undo.textAndMnemonic=Deshacer -AbstractDocument.redo.textAndMnemonic=Rehacer - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=hacer clic - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=Deshacer -AbstractUndoableEdit.redo.textAndMnemonic=Rehacer - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=Progreso... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=bot\u00F3n izquierdo -SplitPane.rightButton.textAndMnemonic=bot\u00F3n derecho -# Used for Isindex -IsindexView.prompt=En este \u00EDndice se pueden efectuar b\u00FAsquedas. Escriba las palabras clave de b\u00FAsqueda: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=Convertir en Icono -InternalFrameTitlePane.maximizeButtonAccessibleName=Maximizar -InternalFrameTitlePane.closeButtonAccessibleName=Cerrar - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=Archivo Gen\u00E9rico +FileChooser.directoryDescription.textAndMnemonic=Directorio +FileChooser.newFolderError.textAndMnemonic=Error al crear una nueva carpeta +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=No se ha podido crear la carpeta +FileChooser.newFolderParentDoesntExist.textAndMnemonic=No se ha podido crear la carpeta.\n\nEl sistema no puede encontrar la ruta de acceso especificada. +FileChooser.renameErrorTitle.textAndMnemonic=Error al cambiar el nombre del archivo o carpeta +FileChooser.renameError.textAndMnemonic=No se puede cambiar el nombre de {0} +FileChooser.renameErrorFileExists.textAndMnemonic=No se puede cambiar el nombre de {0}: ya existe un archivo con el nombre especificado. Especifique otro nombre de archivo. +FileChooser.acceptAllFileFilter.textAndMnemonic=Todos los Archivos +FileChooser.cancelButton.textAndMnemonic=Cancelar +FileChooser.saveButton.textAndMnemonic=&Guardar +FileChooser.openButton.textAndMnemonic=A&brir +FileChooser.saveDialogTitle.textAndMnemonic=Guardar +FileChooser.openDialogTitle.textAndMnemonic=Abrir +FileChooser.updateButton.textAndMnemonic=Act&ualizar +FileChooser.helpButton.textAndMnemonic=A&yuda +FileChooser.directoryOpenButton.textAndMnemonic=&Abrir + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=Nueva Carpeta +FileChooser.win32.newFolder.subsequent=Nueva Carpeta ({0}) +FileChooser.other.newFolder=Nueva Carpeta +FileChooser.other.newFolder.subsequent=Nueva Carpeta.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=Cuadro de di\u00E1logo para abortar el selector de archivos +FileChooser.saveButtonToolTip.textAndMnemonic=Guardar archivo seleccionado +FileChooser.openButtonToolTip.textAndMnemonic=Abrir archivo seleccionado +FileChooser.updateButtonToolTip.textAndMnemonic=Actualizar lista de directorios +FileChooser.helpButtonToolTip.textAndMnemonic=Ayuda del Selector de Archivos +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Abrir directorio seleccionado + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=Presentaci\u00F3n Preliminar +ColorChooser.ok.textAndMnemonic=Aceptar +ColorChooser.cancel.textAndMnemonic=Cancelar +ColorChooser.reset.textAndMnemonic=&Restablecer +ColorChooser.sample.textAndMnemonic=Texto de Ejemplo Texto de Ejemplo +ColorChooser.swatches.textAndMnemonic=Mue&stras +ColorChooser.swatchesRecent.textAndMnemonic=Reciente: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=Matiz +ColorChooser.hsvSaturation.textAndMnemonic=Saturaci\u00F3n +ColorChooser.hsvValue.textAndMnemonic=Valor +ColorChooser.hsvTransparency.textAndMnemonic=Transparencia +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=Matiz +ColorChooser.hslSaturation.textAndMnemonic=Saturaci\u00F3n +ColorChooser.hslLightness.textAndMnemonic=Iluminaci\u00F3n +ColorChooser.hslTransparency.textAndMnemonic=Transparencia +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=Ro&jo +ColorChooser.rgbGreen.textAndMnemonic=&Verde +ColorChooser.rgbBlue.textAndMnemonic=A&zul +ColorChooser.rgbAlpha.textAndMnemonic=Alfa +ColorChooser.rgbHexCode.textAndMnemonic=C\u00F3digo de Color(&C) +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=Cian +ColorChooser.cmykMagenta.textAndMnemonic=Magenta +ColorChooser.cmykYellow.textAndMnemonic=Amarillo +ColorChooser.cmykBlack.textAndMnemonic=Negro +ColorChooser.cmykAlpha.textAndMnemonic=Alfa + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=S\u00ED(&S) +OptionPane.noButton.textAndMnemonic=&No +OptionPane.okButton.textAndMnemonic=Aceptar(&O) +OptionPane.cancelButton.textAndMnemonic=&Cancelar +OptionPane.title.textAndMnemonic=Seleccionar una Opci\u00F3n +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=Entrada +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=Mensaje + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=Impresi\u00F3n +PrintingDialog.titleAborting.textAndMnemonic=Impresi\u00F3n (Abortando) + +PrintingDialog.contentInitial.textAndMnemonic=Impresi\u00F3n en curso... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=P\u00E1gina impresa {0}... + +PrintingDialog.contentAborting.textAndMnemonic=Abortando la impresi\u00F3n... + +PrintingDialog.abortButton.textAndMnemonic=&Abortar +PrintingDialog.abortButtonToolTip.textAndMnemonic=Abortar Impresi\u00F3n + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=Minimizar +InternalFrame.maxButtonToolTip=Maximizar +InternalFrame.restoreButtonToolTip=Restaurar +InternalFrame.closeButtonToolTip=Cerrar + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=Restaurar +InternalFrameTitlePane.moveButton.textAndMnemonic=Mover +InternalFrameTitlePane.sizeButton.textAndMnemonic=Tama\u00F1o +InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimizar +InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximizar +InternalFrameTitlePane.closeButton.textAndMnemonic=Cerrar + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=Enviar Consulta +FormView.resetButton.textAndMnemonic=Restablecer +FormView.browseFileButton.textAndMnemonic=Examinar... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=cambio de estilo +AbstractDocument.addition.textAndMnemonic=agregaci\u00F3n +AbstractDocument.deletion.textAndMnemonic=supresi\u00F3n +AbstractDocument.undo.textAndMnemonic=Deshacer +AbstractDocument.redo.textAndMnemonic=Rehacer + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=hacer clic + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=Deshacer +AbstractUndoableEdit.redo.textAndMnemonic=Rehacer + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=Progreso... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=bot\u00F3n izquierdo +SplitPane.rightButton.textAndMnemonic=bot\u00F3n derecho +# Used for Isindex +IsindexView.prompt=En este \u00EDndice se pueden efectuar b\u00FAsquedas. Escriba las palabras clave de b\u00FAsqueda: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=Convertir en Icono +InternalFrameTitlePane.maximizeButtonAccessibleName=Maximizar +InternalFrameTitlePane.closeButtonAccessibleName=Cerrar + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_fr.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_fr.properties index 8b34ac03b9f..c50984b44d9 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_fr.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_fr.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=Fichier g\u00E9n\u00E9rique -FileChooser.directoryDescription.textAndMnemonic=R\u00E9pertoire -FileChooser.newFolderError.textAndMnemonic=Erreur lors de la cr\u00E9ation du dossier -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Impossible de cr\u00E9er le dossier -FileChooser.newFolderParentDoesntExist.textAndMnemonic=Impossible de cr\u00E9er le dossier.\n\nLe syst\u00E8me ne parvient pas \u00E0 trouver le chemin indiqu\u00E9. -FileChooser.renameErrorTitle.textAndMnemonic=Erreur lors du changement de nom du fichier ou du dossier -FileChooser.renameError.textAndMnemonic=Impossible de renommer {0} -FileChooser.renameErrorFileExists.textAndMnemonic=Impossible de renommer {0} : il existe d\u00E9j\u00E0 un fichier portant le nom indiqu\u00E9. Indiquez-en un autre. -FileChooser.acceptAllFileFilter.textAndMnemonic=Tous les fichiers -FileChooser.cancelButton.textAndMnemonic=&Annuler -FileChooser.saveButton.textAndMnemonic=Enregi&strer -FileChooser.openButton.textAndMnemonic=&Ouvrir -FileChooser.saveDialogTitle.textAndMnemonic=Enregistrer -FileChooser.openDialogTitle.textAndMnemonic=Ouvrir -FileChooser.updateButton.textAndMnemonic=Mettre \u00E0 jour(&U) -FileChooser.helpButton.textAndMnemonic=&Aide -FileChooser.directoryOpenButton.textAndMnemonic=&Ouvrir - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=Nouveau dossier -FileChooser.win32.newFolder.subsequent=Nouveau dossier ({0}) -FileChooser.other.newFolder=NewFolder -FileChooser.other.newFolder.subsequent=NewFolder.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=Ferme la bo\u00EEte de dialogue du s\u00E9lecteur de fichiers -FileChooser.saveButtonToolTip.textAndMnemonic=Enregistre le fichier s\u00E9lectionn\u00E9 -FileChooser.openButtonToolTip.textAndMnemonic=Ouvre le fichier s\u00E9lectionn\u00E9 -FileChooser.updateButtonToolTip.textAndMnemonic=Met \u00E0 jour la liste des r\u00E9pertoires -FileChooser.helpButtonToolTip.textAndMnemonic=Aide du s\u00E9lecteur de fichiers -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Ouvre le r\u00E9pertoire s\u00E9lectionn\u00E9 - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=Aper\u00E7u -ColorChooser.ok.textAndMnemonic=OK -ColorChooser.cancel.textAndMnemonic=Annuler -ColorChooser.reset.textAndMnemonic=R\u00E9initialiser(&R) -ColorChooser.sample.textAndMnemonic=Echantillon de texte Echantillon de texte -ColorChooser.swatches.textAndMnemonic=&Echantillons -ColorChooser.swatchesRecent.textAndMnemonic=Dernier : -ColorChooser.hsv.textAndMnemonic=&TSV -ColorChooser.hsvHue.textAndMnemonic=Teinte -ColorChooser.hsvSaturation.textAndMnemonic=Saturation -ColorChooser.hsvValue.textAndMnemonic=Valeur -ColorChooser.hsvTransparency.textAndMnemonic=Transparence -ColorChooser.hsl.textAndMnemonic=TS&L -ColorChooser.hslHue.textAndMnemonic=Teinte -ColorChooser.hslSaturation.textAndMnemonic=Saturation -ColorChooser.hslLightness.textAndMnemonic=Lumi\u00E8re -ColorChooser.hslTransparency.textAndMnemonic=Transparence -ColorChooser.rgb.textAndMnemonic=R&VB -ColorChooser.rgbRed.textAndMnemonic=R&ouge -ColorChooser.rgbGreen.textAndMnemonic=&Vert -ColorChooser.rgbBlue.textAndMnemonic=&Bleu -ColorChooser.rgbAlpha.textAndMnemonic=Alpha -ColorChooser.rgbHexCode.textAndMnemonic=&Code couleur -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=Cyan -ColorChooser.cmykMagenta.textAndMnemonic=Magenta -ColorChooser.cmykYellow.textAndMnemonic=Jaune -ColorChooser.cmykBlack.textAndMnemonic=Noir -ColorChooser.cmykAlpha.textAndMnemonic=Alpha - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=&Oui -OptionPane.noButton.textAndMnemonic=&Non -OptionPane.okButton.textAndMnemonic=&OK -OptionPane.cancelButton.textAndMnemonic=&Annuler -OptionPane.title.textAndMnemonic=S\u00E9lectionner une option -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=Entr\u00E9e -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=Message - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=Impression -PrintingDialog.titleAborting.textAndMnemonic=Impression (abandon) - -PrintingDialog.contentInitial.textAndMnemonic=Impression en cours... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=Page {0} imprim\u00E9e... - -PrintingDialog.contentAborting.textAndMnemonic=Abandon de l'impression... - -PrintingDialog.abortButton.textAndMnemonic=&Abandonner -PrintingDialog.abortButtonToolTip.textAndMnemonic=Abandonner l'impression - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=R\u00E9duire -InternalFrame.maxButtonToolTip=Agrandir -InternalFrame.restoreButtonToolTip=Restaurer -InternalFrame.closeButtonToolTip=Fermer - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=Restaurer -InternalFrameTitlePane.moveButton.textAndMnemonic=D\u00E9placer -InternalFrameTitlePane.sizeButton.textAndMnemonic=Taille -InternalFrameTitlePane.minimizeButton.textAndMnemonic=R\u00E9duire -InternalFrameTitlePane.maximizeButton.textAndMnemonic=Agrandir -InternalFrameTitlePane.closeButton.textAndMnemonic=Fermer - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=Soumettre la requ\u00EAte -FormView.resetButton.textAndMnemonic=R\u00E9initialiser -FormView.browseFileButton.textAndMnemonic=Parcourir... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=modification de style -AbstractDocument.addition.textAndMnemonic=ajout -AbstractDocument.deletion.textAndMnemonic=suppression -AbstractDocument.undo.textAndMnemonic=Annuler -AbstractDocument.redo.textAndMnemonic=R\u00E9tablir - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=cliquer - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=Annuler -AbstractUndoableEdit.redo.textAndMnemonic=R\u00E9tablir - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=Progression... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=bouton gauche -SplitPane.rightButton.textAndMnemonic=bouton droit -# Used for Isindex -IsindexView.prompt=Ceci est un index de recherche. Tapez des mots-cl\u00E9s pour la recherche : - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=R\u00E9duire -InternalFrameTitlePane.maximizeButtonAccessibleName=Agrandir -InternalFrameTitlePane.closeButtonAccessibleName=Fermer - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=Fichier g\u00E9n\u00E9rique +FileChooser.directoryDescription.textAndMnemonic=R\u00E9pertoire +FileChooser.newFolderError.textAndMnemonic=Erreur lors de la cr\u00E9ation du dossier +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Impossible de cr\u00E9er le dossier +FileChooser.newFolderParentDoesntExist.textAndMnemonic=Impossible de cr\u00E9er le dossier.\n\nLe syst\u00E8me ne parvient pas \u00E0 trouver le chemin indiqu\u00E9. +FileChooser.renameErrorTitle.textAndMnemonic=Erreur lors du changement de nom du fichier ou du dossier +FileChooser.renameError.textAndMnemonic=Impossible de renommer {0} +FileChooser.renameErrorFileExists.textAndMnemonic=Impossible de renommer {0} : il existe d\u00E9j\u00E0 un fichier portant le nom indiqu\u00E9. Indiquez-en un autre. +FileChooser.acceptAllFileFilter.textAndMnemonic=Tous les fichiers +FileChooser.cancelButton.textAndMnemonic=Annuler +FileChooser.saveButton.textAndMnemonic=Enregi&strer +FileChooser.openButton.textAndMnemonic=&Ouvrir +FileChooser.saveDialogTitle.textAndMnemonic=Enregistrer +FileChooser.openDialogTitle.textAndMnemonic=Ouvrir +FileChooser.updateButton.textAndMnemonic=Mettre \u00E0 jour(&U) +FileChooser.helpButton.textAndMnemonic=&Aide +FileChooser.directoryOpenButton.textAndMnemonic=&Ouvrir + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=Nouveau dossier +FileChooser.win32.newFolder.subsequent=Nouveau dossier ({0}) +FileChooser.other.newFolder=NewFolder +FileChooser.other.newFolder.subsequent=NewFolder.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=Ferme la bo\u00EEte de dialogue du s\u00E9lecteur de fichiers +FileChooser.saveButtonToolTip.textAndMnemonic=Enregistre le fichier s\u00E9lectionn\u00E9 +FileChooser.openButtonToolTip.textAndMnemonic=Ouvre le fichier s\u00E9lectionn\u00E9 +FileChooser.updateButtonToolTip.textAndMnemonic=Met \u00E0 jour la liste des r\u00E9pertoires +FileChooser.helpButtonToolTip.textAndMnemonic=Aide du s\u00E9lecteur de fichiers +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Ouvre le r\u00E9pertoire s\u00E9lectionn\u00E9 + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=Aper\u00E7u +ColorChooser.ok.textAndMnemonic=OK +ColorChooser.cancel.textAndMnemonic=Annuler +ColorChooser.reset.textAndMnemonic=R\u00E9initialiser(&R) +ColorChooser.sample.textAndMnemonic=Echantillon de texte Echantillon de texte +ColorChooser.swatches.textAndMnemonic=&Echantillons +ColorChooser.swatchesRecent.textAndMnemonic=Dernier : +ColorChooser.hsv.textAndMnemonic=&TSV +ColorChooser.hsvHue.textAndMnemonic=Teinte +ColorChooser.hsvSaturation.textAndMnemonic=Saturation +ColorChooser.hsvValue.textAndMnemonic=Valeur +ColorChooser.hsvTransparency.textAndMnemonic=Transparence +ColorChooser.hsl.textAndMnemonic=TS&L +ColorChooser.hslHue.textAndMnemonic=Teinte +ColorChooser.hslSaturation.textAndMnemonic=Saturation +ColorChooser.hslLightness.textAndMnemonic=Lumi\u00E8re +ColorChooser.hslTransparency.textAndMnemonic=Transparence +ColorChooser.rgb.textAndMnemonic=R&VB +ColorChooser.rgbRed.textAndMnemonic=R&ouge +ColorChooser.rgbGreen.textAndMnemonic=&Vert +ColorChooser.rgbBlue.textAndMnemonic=&Bleu +ColorChooser.rgbAlpha.textAndMnemonic=Alpha +ColorChooser.rgbHexCode.textAndMnemonic=&Code couleur +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=Cyan +ColorChooser.cmykMagenta.textAndMnemonic=Magenta +ColorChooser.cmykYellow.textAndMnemonic=Jaune +ColorChooser.cmykBlack.textAndMnemonic=Noir +ColorChooser.cmykAlpha.textAndMnemonic=Alpha + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=&Oui +OptionPane.noButton.textAndMnemonic=&Non +OptionPane.okButton.textAndMnemonic=&OK +OptionPane.cancelButton.textAndMnemonic=&Annuler +OptionPane.title.textAndMnemonic=S\u00E9lectionner une option +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=Entr\u00E9e +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=Message + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=Impression +PrintingDialog.titleAborting.textAndMnemonic=Impression (abandon) + +PrintingDialog.contentInitial.textAndMnemonic=Impression en cours... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=Page {0} imprim\u00E9e... + +PrintingDialog.contentAborting.textAndMnemonic=Abandon de l'impression... + +PrintingDialog.abortButton.textAndMnemonic=&Abandonner +PrintingDialog.abortButtonToolTip.textAndMnemonic=Abandonner l'impression + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=R\u00E9duire +InternalFrame.maxButtonToolTip=Agrandir +InternalFrame.restoreButtonToolTip=Restaurer +InternalFrame.closeButtonToolTip=Fermer + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=Restaurer +InternalFrameTitlePane.moveButton.textAndMnemonic=D\u00E9placer +InternalFrameTitlePane.sizeButton.textAndMnemonic=Taille +InternalFrameTitlePane.minimizeButton.textAndMnemonic=R\u00E9duire +InternalFrameTitlePane.maximizeButton.textAndMnemonic=Agrandir +InternalFrameTitlePane.closeButton.textAndMnemonic=Fermer + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=Soumettre la requ\u00EAte +FormView.resetButton.textAndMnemonic=R\u00E9initialiser +FormView.browseFileButton.textAndMnemonic=Parcourir... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=modification de style +AbstractDocument.addition.textAndMnemonic=ajout +AbstractDocument.deletion.textAndMnemonic=suppression +AbstractDocument.undo.textAndMnemonic=Annuler +AbstractDocument.redo.textAndMnemonic=R\u00E9tablir + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=cliquer + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=Annuler +AbstractUndoableEdit.redo.textAndMnemonic=R\u00E9tablir + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=Progression... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=bouton gauche +SplitPane.rightButton.textAndMnemonic=bouton droit +# Used for Isindex +IsindexView.prompt=Ceci est un index de recherche. Tapez des mots-cl\u00E9s pour la recherche : + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=R\u00E9duire +InternalFrameTitlePane.maximizeButtonAccessibleName=Agrandir +InternalFrameTitlePane.closeButtonAccessibleName=Fermer + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_it.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_it.properties index 9e3c28b6ef5..42f5afb405d 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_it.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_it.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=File generico -FileChooser.directoryDescription.textAndMnemonic=Directory -FileChooser.newFolderError.textAndMnemonic=Errore durante la creazione della nuova cartella -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Impossibile creare la cartella -FileChooser.newFolderParentDoesntExist.textAndMnemonic=Impossibile creare la cartella.\n\nIl sistema non \u00E8 in grado di trovare il percorso specificato. -FileChooser.renameErrorTitle.textAndMnemonic=Errore durante la ridenominazione del file o della cartella -FileChooser.renameError.textAndMnemonic=Impossibile rinominare {0} -FileChooser.renameErrorFileExists.textAndMnemonic=Impossibile rinominare {0}: esiste gi\u00E0 un file con il nome specificato. Specificare un altro nome. -FileChooser.acceptAllFileFilter.textAndMnemonic=Tutti i file -FileChooser.cancelButton.textAndMnemonic=&Annulla -FileChooser.saveButton.textAndMnemonic=Sal&va -FileChooser.openButton.textAndMnemonic=A&pri -FileChooser.saveDialogTitle.textAndMnemonic=Salva -FileChooser.openDialogTitle.textAndMnemonic=Apri -FileChooser.updateButton.textAndMnemonic=A&ggiorna -FileChooser.helpButton.textAndMnemonic=?(&H) -FileChooser.directoryOpenButton.textAndMnemonic=&Apri - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=Nuova cartella -FileChooser.win32.newFolder.subsequent=Nuova cartella ({0}) -FileChooser.other.newFolder=NewFolder -FileChooser.other.newFolder.subsequent=NewFolder.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=Chiude la finestra di dialogo di selezione file -FileChooser.saveButtonToolTip.textAndMnemonic=Salva il file selezionato -FileChooser.openButtonToolTip.textAndMnemonic=Apre il file selezionato -FileChooser.updateButtonToolTip.textAndMnemonic=Aggiorna la lista directory -FileChooser.helpButtonToolTip.textAndMnemonic=Guida FileChooser -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Apre la directory selezionata - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=Anteprima -ColorChooser.ok.textAndMnemonic=OK -ColorChooser.cancel.textAndMnemonic=Annulla -ColorChooser.reset.textAndMnemonic=&Reimposta -ColorChooser.sample.textAndMnemonic=Testo di prova Testo di prova -ColorChooser.swatches.textAndMnemonic=Colori cam&pione -ColorChooser.swatchesRecent.textAndMnemonic=Recenti: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=Tonalit\u00E0 -ColorChooser.hsvSaturation.textAndMnemonic=Saturazione -ColorChooser.hsvValue.textAndMnemonic=Valore -ColorChooser.hsvTransparency.textAndMnemonic=Trasparenza -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=Tonalit\u00E0 -ColorChooser.hslSaturation.textAndMnemonic=Saturazione -ColorChooser.hslLightness.textAndMnemonic=Luminosit\u00E0 -ColorChooser.hslTransparency.textAndMnemonic=Trasparenza -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=Ro&sso -ColorChooser.rgbGreen.textAndMnemonic=Ver&de -ColorChooser.rgbBlue.textAndMnemonic=&Blu -ColorChooser.rgbAlpha.textAndMnemonic=Alfa -ColorChooser.rgbHexCode.textAndMnemonic=&Codice colori -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=Ciano -ColorChooser.cmykMagenta.textAndMnemonic=Magenta -ColorChooser.cmykYellow.textAndMnemonic=Giallo -ColorChooser.cmykBlack.textAndMnemonic=Nero -ColorChooser.cmykAlpha.textAndMnemonic=Alfa - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=S\u00EC(&S) -OptionPane.noButton.textAndMnemonic=&No -OptionPane.okButton.textAndMnemonic=&OK -OptionPane.cancelButton.textAndMnemonic=&Annulla -OptionPane.title.textAndMnemonic=Selezionare una opzione -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=Input -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=Messaggio - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=Stampa in corso -PrintingDialog.titleAborting.textAndMnemonic=Stampa in corso (operazione interrotta) - -PrintingDialog.contentInitial.textAndMnemonic=Stampa in corso... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=Pagina stampata {0}... - -PrintingDialog.contentAborting.textAndMnemonic=Interruzione della stampa... - -PrintingDialog.abortButton.textAndMnemonic=I&nterrompi -PrintingDialog.abortButtonToolTip.textAndMnemonic=Interrompi la stampa - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=Riduci a icona -InternalFrame.maxButtonToolTip=Ingrandisci -InternalFrame.restoreButtonToolTip=Ripristina -InternalFrame.closeButtonToolTip=Chiudi - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=Ripristina -InternalFrameTitlePane.moveButton.textAndMnemonic=Sposta -InternalFrameTitlePane.sizeButton.textAndMnemonic=Dimensioni -InternalFrameTitlePane.minimizeButton.textAndMnemonic=Riduci a icona -InternalFrameTitlePane.maximizeButton.textAndMnemonic=Ingrandisci -InternalFrameTitlePane.closeButton.textAndMnemonic=Chiudi - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=Sottometti query -FormView.resetButton.textAndMnemonic=Reimposta -FormView.browseFileButton.textAndMnemonic=Sfoglia... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=modifica di stile -AbstractDocument.addition.textAndMnemonic=aggiunta -AbstractDocument.deletion.textAndMnemonic=eliminazione -AbstractDocument.undo.textAndMnemonic=Annulla -AbstractDocument.redo.textAndMnemonic=Ripeti - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=fare clic - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=Annulla -AbstractUndoableEdit.redo.textAndMnemonic=Ripeti - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=Avanzamento... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=tasto sinistro -SplitPane.rightButton.textAndMnemonic=tasto destro -# Used for Isindex -IsindexView.prompt=Questo \u00E8 un indice di ricerca. Immettere le parole chiave: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=Riduci a icona -InternalFrameTitlePane.maximizeButtonAccessibleName=Ingrandisci -InternalFrameTitlePane.closeButtonAccessibleName=Chiudi - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=File generico +FileChooser.directoryDescription.textAndMnemonic=Directory +FileChooser.newFolderError.textAndMnemonic=Errore durante la creazione della nuova cartella +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Impossibile creare la cartella +FileChooser.newFolderParentDoesntExist.textAndMnemonic=Impossibile creare la cartella.\n\nIl sistema non \u00E8 in grado di trovare il percorso specificato. +FileChooser.renameErrorTitle.textAndMnemonic=Errore durante la ridenominazione del file o della cartella +FileChooser.renameError.textAndMnemonic=Impossibile rinominare {0} +FileChooser.renameErrorFileExists.textAndMnemonic=Impossibile rinominare {0}: esiste gi\u00E0 un file con il nome specificato. Specificare un altro nome. +FileChooser.acceptAllFileFilter.textAndMnemonic=Tutti i file +FileChooser.cancelButton.textAndMnemonic=Annulla +FileChooser.saveButton.textAndMnemonic=Sal&va +FileChooser.openButton.textAndMnemonic=A&pri +FileChooser.saveDialogTitle.textAndMnemonic=Salva +FileChooser.openDialogTitle.textAndMnemonic=Apri +FileChooser.updateButton.textAndMnemonic=A&ggiorna +FileChooser.helpButton.textAndMnemonic=?(&H) +FileChooser.directoryOpenButton.textAndMnemonic=&Apri + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=Nuova cartella +FileChooser.win32.newFolder.subsequent=Nuova cartella ({0}) +FileChooser.other.newFolder=NewFolder +FileChooser.other.newFolder.subsequent=NewFolder.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=Chiude la finestra di dialogo di selezione file +FileChooser.saveButtonToolTip.textAndMnemonic=Salva il file selezionato +FileChooser.openButtonToolTip.textAndMnemonic=Apre il file selezionato +FileChooser.updateButtonToolTip.textAndMnemonic=Aggiorna la lista directory +FileChooser.helpButtonToolTip.textAndMnemonic=Guida FileChooser +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Apre la directory selezionata + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=Anteprima +ColorChooser.ok.textAndMnemonic=OK +ColorChooser.cancel.textAndMnemonic=Annulla +ColorChooser.reset.textAndMnemonic=&Reimposta +ColorChooser.sample.textAndMnemonic=Testo di prova Testo di prova +ColorChooser.swatches.textAndMnemonic=Colori cam&pione +ColorChooser.swatchesRecent.textAndMnemonic=Recenti: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=Tonalit\u00E0 +ColorChooser.hsvSaturation.textAndMnemonic=Saturazione +ColorChooser.hsvValue.textAndMnemonic=Valore +ColorChooser.hsvTransparency.textAndMnemonic=Trasparenza +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=Tonalit\u00E0 +ColorChooser.hslSaturation.textAndMnemonic=Saturazione +ColorChooser.hslLightness.textAndMnemonic=Luminosit\u00E0 +ColorChooser.hslTransparency.textAndMnemonic=Trasparenza +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=Ro&sso +ColorChooser.rgbGreen.textAndMnemonic=Ver&de +ColorChooser.rgbBlue.textAndMnemonic=&Blu +ColorChooser.rgbAlpha.textAndMnemonic=Alfa +ColorChooser.rgbHexCode.textAndMnemonic=&Codice colori +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=Ciano +ColorChooser.cmykMagenta.textAndMnemonic=Magenta +ColorChooser.cmykYellow.textAndMnemonic=Giallo +ColorChooser.cmykBlack.textAndMnemonic=Nero +ColorChooser.cmykAlpha.textAndMnemonic=Alfa + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=S\u00EC(&S) +OptionPane.noButton.textAndMnemonic=&No +OptionPane.okButton.textAndMnemonic=&OK +OptionPane.cancelButton.textAndMnemonic=&Annulla +OptionPane.title.textAndMnemonic=Selezionare una opzione +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=Input +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=Messaggio + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=Stampa in corso +PrintingDialog.titleAborting.textAndMnemonic=Stampa in corso (operazione interrotta) + +PrintingDialog.contentInitial.textAndMnemonic=Stampa in corso... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=Pagina stampata {0}... + +PrintingDialog.contentAborting.textAndMnemonic=Interruzione della stampa... + +PrintingDialog.abortButton.textAndMnemonic=I&nterrompi +PrintingDialog.abortButtonToolTip.textAndMnemonic=Interrompi la stampa + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=Riduci a icona +InternalFrame.maxButtonToolTip=Ingrandisci +InternalFrame.restoreButtonToolTip=Ripristina +InternalFrame.closeButtonToolTip=Chiudi + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=Ripristina +InternalFrameTitlePane.moveButton.textAndMnemonic=Sposta +InternalFrameTitlePane.sizeButton.textAndMnemonic=Dimensioni +InternalFrameTitlePane.minimizeButton.textAndMnemonic=Riduci a icona +InternalFrameTitlePane.maximizeButton.textAndMnemonic=Ingrandisci +InternalFrameTitlePane.closeButton.textAndMnemonic=Chiudi + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=Sottometti query +FormView.resetButton.textAndMnemonic=Reimposta +FormView.browseFileButton.textAndMnemonic=Sfoglia... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=modifica di stile +AbstractDocument.addition.textAndMnemonic=aggiunta +AbstractDocument.deletion.textAndMnemonic=eliminazione +AbstractDocument.undo.textAndMnemonic=Annulla +AbstractDocument.redo.textAndMnemonic=Ripeti + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=fare clic + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=Annulla +AbstractUndoableEdit.redo.textAndMnemonic=Ripeti + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=Avanzamento... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=tasto sinistro +SplitPane.rightButton.textAndMnemonic=tasto destro +# Used for Isindex +IsindexView.prompt=Questo \u00E8 un indice di ricerca. Immettere le parole chiave: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=Riduci a icona +InternalFrameTitlePane.maximizeButtonAccessibleName=Ingrandisci +InternalFrameTitlePane.closeButtonAccessibleName=Chiudi + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ja.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ja.properties index 71d1e582e0b..c4f6955830b 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ja.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ja.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=\u6C4E\u7528\u30D5\u30A1\u30A4\u30EB -FileChooser.directoryDescription.textAndMnemonic=\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA -FileChooser.newFolderError.textAndMnemonic=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0\u306E\u4F5C\u6210\u30A8\u30E9\u30FC -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\u30D5\u30A9\u30EB\u30C0\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093 -FileChooser.newFolderParentDoesntExist.textAndMnemonic=\u30D5\u30A9\u30EB\u30C0\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3002\n\n\u6307\u5B9A\u3057\u305F\u30D1\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002 -FileChooser.renameErrorTitle.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u307E\u305F\u306F\u30D5\u30A9\u30EB\u30C0\u306E\u540D\u524D\u5909\u66F4\u30A8\u30E9\u30FC -FileChooser.renameError.textAndMnemonic={0}\u306E\u540D\u524D\u3092\u5909\u66F4\u3067\u304D\u307E\u305B\u3093 -FileChooser.renameErrorFileExists.textAndMnemonic={0}\u306E\u540D\u524D\u3092\u5909\u66F4\u3067\u304D\u307E\u305B\u3093: \u6307\u5B9A\u3057\u305F\u540D\u524D\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u3059\u3067\u306B\u5B58\u5728\u3057\u307E\u3059\u3002\u5225\u306E\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -FileChooser.acceptAllFileFilter.textAndMnemonic=\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB -FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88(&C) -FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58(&S) -FileChooser.openButton.textAndMnemonic=\u958B\u304F(&O) -FileChooser.saveDialogTitle.textAndMnemonic=\u4FDD\u5B58 -FileChooser.openDialogTitle.textAndMnemonic=\u958B\u304F -FileChooser.updateButton.textAndMnemonic=\u66F4\u65B0(&U) -FileChooser.helpButton.textAndMnemonic=\u30D8\u30EB\u30D7(&H) -FileChooser.directoryOpenButton.textAndMnemonic=\u958B\u304F(&O) - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 -FileChooser.win32.newFolder.subsequent=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0({0}) -FileChooser.other.newFolder=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 -FileChooser.other.newFolder.subsequent=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u30FB\u30C1\u30E5\u30FC\u30B6\u30FB\u30C0\u30A4\u30A2\u30ED\u30B0\u3092\u7D42\u4E86\u3057\u307E\u3059 -FileChooser.saveButtonToolTip.textAndMnemonic=\u9078\u629E\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u5B58\u3057\u307E\u3059 -FileChooser.openButtonToolTip.textAndMnemonic=\u9078\u629E\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u958B\u304D\u307E\u3059 -FileChooser.updateButtonToolTip.textAndMnemonic=\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306E\u30EA\u30B9\u30C8\u3092\u66F4\u65B0\u3057\u307E\u3059 -FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser\u306E\u30D8\u30EB\u30D7\u3067\u3059 -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u9078\u629E\u3057\u305F\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u958B\u304D\u307E\u3059 - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=\u30D7\u30EC\u30D3\u30E5\u30FC -ColorChooser.ok.textAndMnemonic=OK -ColorChooser.cancel.textAndMnemonic=\u53D6\u6D88 -ColorChooser.reset.textAndMnemonic=\u30EA\u30BB\u30C3\u30C8(&R) -ColorChooser.sample.textAndMnemonic=\u30B5\u30F3\u30D7\u30EB\u30FB\u30C6\u30AD\u30B9\u30C8 \u30B5\u30F3\u30D7\u30EB\u30FB\u30C6\u30AD\u30B9\u30C8 -ColorChooser.swatches.textAndMnemonic=\u30B5\u30F3\u30D7\u30EB(&S) -ColorChooser.swatchesRecent.textAndMnemonic=\u6700\u65B0: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=\u8272\u76F8 -ColorChooser.hsvSaturation.textAndMnemonic=\u5F69\u5EA6 -ColorChooser.hsvValue.textAndMnemonic=\u5024 -ColorChooser.hsvTransparency.textAndMnemonic=\u900F\u660E\u5EA6 -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=\u8272\u76F8 -ColorChooser.hslSaturation.textAndMnemonic=\u5F69\u5EA6 -ColorChooser.hslLightness.textAndMnemonic=\u660E\u5EA6 -ColorChooser.hslTransparency.textAndMnemonic=\u900F\u660E\u5EA6 -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=\u8D64(&D) -ColorChooser.rgbGreen.textAndMnemonic=\u7DD1(&N) -ColorChooser.rgbBlue.textAndMnemonic=\u9752(&B) -ColorChooser.rgbAlpha.textAndMnemonic=\u30A2\u30EB\u30D5\u30A1 -ColorChooser.rgbHexCode.textAndMnemonic=\u8272\u30B3\u30FC\u30C9(&C) -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=\u30B7\u30A2\u30F3 -ColorChooser.cmykMagenta.textAndMnemonic=\u30DE\u30BC\u30F3\u30BF -ColorChooser.cmykYellow.textAndMnemonic=\u9EC4 -ColorChooser.cmykBlack.textAndMnemonic=\u9ED2 -ColorChooser.cmykAlpha.textAndMnemonic=\u30A2\u30EB\u30D5\u30A1 - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=\u306F\u3044(&Y) -OptionPane.noButton.textAndMnemonic=\u3044\u3044\u3048(&N) -OptionPane.okButton.textAndMnemonic=&OK -OptionPane.cancelButton.textAndMnemonic=\u53D6\u6D88 -OptionPane.title.textAndMnemonic=\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u9078\u629E -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=\u5165\u529B -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=\u30E1\u30C3\u30BB\u30FC\u30B8 - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=\u5370\u5237\u3057\u3066\u3044\u307E\u3059 -PrintingDialog.titleAborting.textAndMnemonic=\u5370\u5237\u3092\u4E2D\u6B62\u3057\u3066\u3044\u307E\u3059 - -PrintingDialog.contentInitial.textAndMnemonic=\u5370\u5237\u4E2D... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=\u30DA\u30FC\u30B8{0}\u3092\u5370\u5237\u3057\u307E\u3057\u305F... - -PrintingDialog.contentAborting.textAndMnemonic=\u5370\u5237\u3092\u4E2D\u6B62\u3057\u3066\u3044\u307E\u3059... - -PrintingDialog.abortButton.textAndMnemonic=\u4E2D\u6B62(&A) -PrintingDialog.abortButtonToolTip.textAndMnemonic=\u5370\u5237\u306E\u4E2D\u6B62 - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=\u6700\u5C0F\u5316 -InternalFrame.maxButtonToolTip=\u6700\u5927\u5316 -InternalFrame.restoreButtonToolTip=\u5FA9\u5143 -InternalFrame.closeButtonToolTip=\u9589\u3058\u308B - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=\u5FA9\u5143 -InternalFrameTitlePane.moveButton.textAndMnemonic=\u79FB\u52D5 -InternalFrameTitlePane.sizeButton.textAndMnemonic=\u30B5\u30A4\u30BA -InternalFrameTitlePane.minimizeButton.textAndMnemonic=\u6700\u5C0F\u5316 -InternalFrameTitlePane.maximizeButton.textAndMnemonic=\u6700\u5927\u5316 -InternalFrameTitlePane.closeButton.textAndMnemonic=\u9589\u3058\u308B - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=\u554F\u5408\u305B\u306E\u5B9F\u884C -FormView.resetButton.textAndMnemonic=\u30EA\u30BB\u30C3\u30C8 -FormView.browseFileButton.textAndMnemonic=\u53C2\u7167... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=\u30B9\u30BF\u30A4\u30EB\u5909\u66F4 -AbstractDocument.addition.textAndMnemonic=\u8FFD\u52A0 -AbstractDocument.deletion.textAndMnemonic=\u524A\u9664 -AbstractDocument.undo.textAndMnemonic=\u5143\u306B\u623B\u3059 -AbstractDocument.redo.textAndMnemonic=\u3084\u308A\u76F4\u3057 - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=\u30AF\u30EA\u30C3\u30AF - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=\u5143\u306B\u623B\u3059 -AbstractUndoableEdit.redo.textAndMnemonic=\u3084\u308A\u76F4\u3057 - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=\u30C8\u30B0\u30EB\u30FB\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7 - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=\u9032\u884C\u4E2D... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=\u5DE6\u30DC\u30BF\u30F3 -SplitPane.rightButton.textAndMnemonic=\u53F3\u30DC\u30BF\u30F3 -# Used for Isindex -IsindexView.prompt=\u691C\u7D22\u7528\u306E\u7D22\u5F15\u3067\u3059\u3002\u691C\u7D22\u3059\u308B\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=\u30A2\u30A4\u30B3\u30F3\u5316 -InternalFrameTitlePane.maximizeButtonAccessibleName=\u6700\u5927\u5316 -InternalFrameTitlePane.closeButtonAccessibleName=\u9589\u3058\u308B - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=\u6C4E\u7528\u30D5\u30A1\u30A4\u30EB +FileChooser.directoryDescription.textAndMnemonic=\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA +FileChooser.newFolderError.textAndMnemonic=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0\u306E\u4F5C\u6210\u30A8\u30E9\u30FC +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\u30D5\u30A9\u30EB\u30C0\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093 +FileChooser.newFolderParentDoesntExist.textAndMnemonic=\u30D5\u30A9\u30EB\u30C0\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3002\n\n\u6307\u5B9A\u3057\u305F\u30D1\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002 +FileChooser.renameErrorTitle.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u307E\u305F\u306F\u30D5\u30A9\u30EB\u30C0\u306E\u540D\u524D\u5909\u66F4\u30A8\u30E9\u30FC +FileChooser.renameError.textAndMnemonic={0}\u306E\u540D\u524D\u3092\u5909\u66F4\u3067\u304D\u307E\u305B\u3093 +FileChooser.renameErrorFileExists.textAndMnemonic={0}\u306E\u540D\u524D\u3092\u5909\u66F4\u3067\u304D\u307E\u305B\u3093: \u6307\u5B9A\u3057\u305F\u540D\u524D\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u3059\u3067\u306B\u5B58\u5728\u3057\u307E\u3059\u3002\u5225\u306E\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002 +FileChooser.acceptAllFileFilter.textAndMnemonic=\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB +FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88 +FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58(&S) +FileChooser.openButton.textAndMnemonic=\u958B\u304F(&O) +FileChooser.saveDialogTitle.textAndMnemonic=\u4FDD\u5B58 +FileChooser.openDialogTitle.textAndMnemonic=\u958B\u304F +FileChooser.updateButton.textAndMnemonic=\u66F4\u65B0(&U) +FileChooser.helpButton.textAndMnemonic=\u30D8\u30EB\u30D7(&H) +FileChooser.directoryOpenButton.textAndMnemonic=\u958B\u304F(&O) + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 +FileChooser.win32.newFolder.subsequent=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0({0}) +FileChooser.other.newFolder=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 +FileChooser.other.newFolder.subsequent=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u30FB\u30C1\u30E5\u30FC\u30B6\u30FB\u30C0\u30A4\u30A2\u30ED\u30B0\u3092\u7D42\u4E86\u3057\u307E\u3059 +FileChooser.saveButtonToolTip.textAndMnemonic=\u9078\u629E\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u5B58\u3057\u307E\u3059 +FileChooser.openButtonToolTip.textAndMnemonic=\u9078\u629E\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u958B\u304D\u307E\u3059 +FileChooser.updateButtonToolTip.textAndMnemonic=\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306E\u30EA\u30B9\u30C8\u3092\u66F4\u65B0\u3057\u307E\u3059 +FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser\u306E\u30D8\u30EB\u30D7\u3067\u3059 +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u9078\u629E\u3057\u305F\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u958B\u304D\u307E\u3059 + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=\u30D7\u30EC\u30D3\u30E5\u30FC +ColorChooser.ok.textAndMnemonic=OK +ColorChooser.cancel.textAndMnemonic=\u53D6\u6D88 +ColorChooser.reset.textAndMnemonic=\u30EA\u30BB\u30C3\u30C8(&R) +ColorChooser.sample.textAndMnemonic=\u30B5\u30F3\u30D7\u30EB\u30FB\u30C6\u30AD\u30B9\u30C8 \u30B5\u30F3\u30D7\u30EB\u30FB\u30C6\u30AD\u30B9\u30C8 +ColorChooser.swatches.textAndMnemonic=\u30B5\u30F3\u30D7\u30EB(&S) +ColorChooser.swatchesRecent.textAndMnemonic=\u6700\u65B0: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=\u8272\u76F8 +ColorChooser.hsvSaturation.textAndMnemonic=\u5F69\u5EA6 +ColorChooser.hsvValue.textAndMnemonic=\u5024 +ColorChooser.hsvTransparency.textAndMnemonic=\u900F\u660E\u5EA6 +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=\u8272\u76F8 +ColorChooser.hslSaturation.textAndMnemonic=\u5F69\u5EA6 +ColorChooser.hslLightness.textAndMnemonic=\u660E\u5EA6 +ColorChooser.hslTransparency.textAndMnemonic=\u900F\u660E\u5EA6 +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=\u8D64(&D) +ColorChooser.rgbGreen.textAndMnemonic=\u7DD1(&N) +ColorChooser.rgbBlue.textAndMnemonic=\u9752(&B) +ColorChooser.rgbAlpha.textAndMnemonic=\u30A2\u30EB\u30D5\u30A1 +ColorChooser.rgbHexCode.textAndMnemonic=\u8272\u30B3\u30FC\u30C9(&C) +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=\u30B7\u30A2\u30F3 +ColorChooser.cmykMagenta.textAndMnemonic=\u30DE\u30BC\u30F3\u30BF +ColorChooser.cmykYellow.textAndMnemonic=\u9EC4 +ColorChooser.cmykBlack.textAndMnemonic=\u9ED2 +ColorChooser.cmykAlpha.textAndMnemonic=\u30A2\u30EB\u30D5\u30A1 + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=\u306F\u3044(&Y) +OptionPane.noButton.textAndMnemonic=\u3044\u3044\u3048(&N) +OptionPane.okButton.textAndMnemonic=&OK +OptionPane.cancelButton.textAndMnemonic=\u53D6\u6D88 +OptionPane.title.textAndMnemonic=\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u9078\u629E +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=\u5165\u529B +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=\u30E1\u30C3\u30BB\u30FC\u30B8 + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=\u5370\u5237\u3057\u3066\u3044\u307E\u3059 +PrintingDialog.titleAborting.textAndMnemonic=\u5370\u5237\u3092\u4E2D\u6B62\u3057\u3066\u3044\u307E\u3059 + +PrintingDialog.contentInitial.textAndMnemonic=\u5370\u5237\u4E2D... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=\u30DA\u30FC\u30B8{0}\u3092\u5370\u5237\u3057\u307E\u3057\u305F... + +PrintingDialog.contentAborting.textAndMnemonic=\u5370\u5237\u3092\u4E2D\u6B62\u3057\u3066\u3044\u307E\u3059... + +PrintingDialog.abortButton.textAndMnemonic=\u4E2D\u6B62(&A) +PrintingDialog.abortButtonToolTip.textAndMnemonic=\u5370\u5237\u306E\u4E2D\u6B62 + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=\u6700\u5C0F\u5316 +InternalFrame.maxButtonToolTip=\u6700\u5927\u5316 +InternalFrame.restoreButtonToolTip=\u5FA9\u5143 +InternalFrame.closeButtonToolTip=\u9589\u3058\u308B + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=\u5FA9\u5143 +InternalFrameTitlePane.moveButton.textAndMnemonic=\u79FB\u52D5 +InternalFrameTitlePane.sizeButton.textAndMnemonic=\u30B5\u30A4\u30BA +InternalFrameTitlePane.minimizeButton.textAndMnemonic=\u6700\u5C0F\u5316 +InternalFrameTitlePane.maximizeButton.textAndMnemonic=\u6700\u5927\u5316 +InternalFrameTitlePane.closeButton.textAndMnemonic=\u9589\u3058\u308B + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=\u554F\u5408\u305B\u306E\u5B9F\u884C +FormView.resetButton.textAndMnemonic=\u30EA\u30BB\u30C3\u30C8 +FormView.browseFileButton.textAndMnemonic=\u53C2\u7167... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=\u30B9\u30BF\u30A4\u30EB\u5909\u66F4 +AbstractDocument.addition.textAndMnemonic=\u8FFD\u52A0 +AbstractDocument.deletion.textAndMnemonic=\u524A\u9664 +AbstractDocument.undo.textAndMnemonic=\u5143\u306B\u623B\u3059 +AbstractDocument.redo.textAndMnemonic=\u3084\u308A\u76F4\u3057 + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=\u30AF\u30EA\u30C3\u30AF + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=\u5143\u306B\u623B\u3059 +AbstractUndoableEdit.redo.textAndMnemonic=\u3084\u308A\u76F4\u3057 + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=\u30C8\u30B0\u30EB\u30FB\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7 + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=\u9032\u884C\u4E2D... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=\u5DE6\u30DC\u30BF\u30F3 +SplitPane.rightButton.textAndMnemonic=\u53F3\u30DC\u30BF\u30F3 +# Used for Isindex +IsindexView.prompt=\u691C\u7D22\u7528\u306E\u7D22\u5F15\u3067\u3059\u3002\u691C\u7D22\u3059\u308B\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=\u30A2\u30A4\u30B3\u30F3\u5316 +InternalFrameTitlePane.maximizeButtonAccessibleName=\u6700\u5927\u5316 +InternalFrameTitlePane.closeButtonAccessibleName=\u9589\u3058\u308B + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ko.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ko.properties index 0a7e2acb9ed..26e36e86a14 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ko.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ko.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=\uC77C\uBC18 \uD30C\uC77C -FileChooser.directoryDescription.textAndMnemonic=\uB514\uB809\uD1A0\uB9AC -FileChooser.newFolderError.textAndMnemonic=\uC0C8 \uD3F4\uB354\uB97C \uC0DD\uC131\uD558\uB294 \uC911 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\uD3F4\uB354\uB97C \uC0DD\uC131\uD560 \uC218 \uC5C6\uC74C -FileChooser.newFolderParentDoesntExist.textAndMnemonic=\uD3F4\uB354\uB97C \uC0DD\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n\n\uC2DC\uC2A4\uD15C\uC5D0\uC11C \uC9C0\uC815\uB41C \uACBD\uB85C\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. -FileChooser.renameErrorTitle.textAndMnemonic=\uD30C\uC77C \uB610\uB294 \uD3F4\uB354 \uC774\uB984 \uBC14\uAFB8\uB294 \uC911 \uC624\uB958 \uBC1C\uC0DD -FileChooser.renameError.textAndMnemonic={0}\uC758 \uC774\uB984\uC744 \uBC14\uAFC0 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. -FileChooser.renameErrorFileExists.textAndMnemonic={0}\uC758 \uC774\uB984\uC744 \uBC14\uAFC0 \uC218 \uC5C6\uC74C: \uC9C0\uC815\uD55C \uC774\uB984\uC744 \uC0AC\uC6A9\uD558\uB294 \uD30C\uC77C\uC774 \uC874\uC7AC\uD569\uB2C8\uB2E4. \uB2E4\uB978 \uD30C\uC77C \uC774\uB984\uC744 \uC9C0\uC815\uD558\uC2ED\uC2DC\uC624. -FileChooser.acceptAllFileFilter.textAndMnemonic=\uBAA8\uB4E0 \uD30C\uC77C -FileChooser.cancelButton.textAndMnemonic=\uCDE8\uC18C(&C) -FileChooser.saveButton.textAndMnemonic=\uC800\uC7A5(&S) -FileChooser.openButton.textAndMnemonic=\uC5F4\uAE30(&O) -FileChooser.saveDialogTitle.textAndMnemonic=\uC800\uC7A5 -FileChooser.openDialogTitle.textAndMnemonic=\uC5F4\uAE30 -FileChooser.updateButton.textAndMnemonic=\uAC31\uC2E0(&U) -FileChooser.helpButton.textAndMnemonic=\uB3C4\uC6C0\uB9D0(&H) -FileChooser.directoryOpenButton.textAndMnemonic=\uC5F4\uAE30(&O) - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=\uC0C8 \uD3F4\uB354 -FileChooser.win32.newFolder.subsequent=\uC0C8 \uD3F4\uB354({0}) -FileChooser.other.newFolder=NewFolder -FileChooser.other.newFolder.subsequent=NewFolder.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=\uD30C\uC77C \uC120\uD0DD\uAE30 \uB300\uD654\uC0C1\uC790 \uC911\uB2E8 -FileChooser.saveButtonToolTip.textAndMnemonic=\uC120\uD0DD\uB41C \uD30C\uC77C \uC800\uC7A5 -FileChooser.openButtonToolTip.textAndMnemonic=\uC120\uD0DD\uB41C \uD30C\uC77C \uC5F4\uAE30 -FileChooser.updateButtonToolTip.textAndMnemonic=\uB514\uB809\uD1A0\uB9AC \uBAA9\uB85D \uAC31\uC2E0 -FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser \uB3C4\uC6C0\uB9D0 -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\uC120\uD0DD\uB41C \uB514\uB809\uD1A0\uB9AC \uC5F4\uAE30 - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=\uBBF8\uB9AC\uBCF4\uAE30 -ColorChooser.ok.textAndMnemonic=\uD655\uC778 -ColorChooser.cancel.textAndMnemonic=\uCDE8\uC18C -ColorChooser.reset.textAndMnemonic=\uC7AC\uC124\uC815(&R) -ColorChooser.sample.textAndMnemonic=\uC0D8\uD50C \uD14D\uC2A4\uD2B8 \uC0D8\uD50C \uD14D\uC2A4\uD2B8 -ColorChooser.swatches.textAndMnemonic=\uACAC\uBCF8(&S) -ColorChooser.swatchesRecent.textAndMnemonic=\uCD5C\uADFC \uBAA9\uB85D: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=\uC0C9\uC870 -ColorChooser.hsvSaturation.textAndMnemonic=\uCC44\uB3C4 -ColorChooser.hsvValue.textAndMnemonic=\uAC12 -ColorChooser.hsvTransparency.textAndMnemonic=\uD22C\uBA85 -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=\uC0C9\uC870 -ColorChooser.hslSaturation.textAndMnemonic=\uCC44\uB3C4 -ColorChooser.hslLightness.textAndMnemonic=\uBC1D\uAE30 -ColorChooser.hslTransparency.textAndMnemonic=\uD22C\uBA85 -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=\uBE68\uAC04\uC0C9(&D) -ColorChooser.rgbGreen.textAndMnemonic=\uB179\uC0C9(&N) -ColorChooser.rgbBlue.textAndMnemonic=\uD30C\uB780\uC0C9(&B) -ColorChooser.rgbAlpha.textAndMnemonic=\uC54C\uD30C -ColorChooser.rgbHexCode.textAndMnemonic=\uC0C9\uC0C1 \uCF54\uB4DC(&C) -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=\uCCAD\uB85D\uC0C9 -ColorChooser.cmykMagenta.textAndMnemonic=\uC9C4\uD64D\uC0C9 -ColorChooser.cmykYellow.textAndMnemonic=\uB178\uB780\uC0C9 -ColorChooser.cmykBlack.textAndMnemonic=\uAC80\uC815\uC0C9 -ColorChooser.cmykAlpha.textAndMnemonic=\uC54C\uD30C - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=\uC608(&Y) -OptionPane.noButton.textAndMnemonic=\uC544\uB2C8\uC624(&N) -OptionPane.okButton.textAndMnemonic=\uD655\uC778(&O) -OptionPane.cancelButton.textAndMnemonic=\uCDE8\uC18C -OptionPane.title.textAndMnemonic=\uC635\uC158 \uC120\uD0DD -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=\uC785\uB825 -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=\uBA54\uC2DC\uC9C0 - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=\uC778\uC1C4 -PrintingDialog.titleAborting.textAndMnemonic=\uC778\uC1C4(\uC911\uB2E8 \uC911) - -PrintingDialog.contentInitial.textAndMnemonic=\uC778\uC1C4 \uC9C4\uD589 \uC911... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=\uC778\uC1C4\uB41C \uD398\uC774\uC9C0 {0}... - -PrintingDialog.contentAborting.textAndMnemonic=\uC778\uC1C4 \uC911\uB2E8 \uC911... - -PrintingDialog.abortButton.textAndMnemonic=\uC911\uB2E8(&A) -PrintingDialog.abortButtonToolTip.textAndMnemonic=\uC778\uC1C4 \uC911\uB2E8 - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=\uCD5C\uC18C\uD654 -InternalFrame.maxButtonToolTip=\uCD5C\uB300\uD654 -InternalFrame.restoreButtonToolTip=\uBCF5\uC6D0 -InternalFrame.closeButtonToolTip=\uB2EB\uAE30 - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=\uBCF5\uC6D0 -InternalFrameTitlePane.moveButton.textAndMnemonic=\uC774\uB3D9 -InternalFrameTitlePane.sizeButton.textAndMnemonic=\uD06C\uAE30 -InternalFrameTitlePane.minimizeButton.textAndMnemonic=\uCD5C\uC18C\uD654 -InternalFrameTitlePane.maximizeButton.textAndMnemonic=\uCD5C\uB300\uD654 -InternalFrameTitlePane.closeButton.textAndMnemonic=\uB2EB\uAE30 - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=\uC9C8\uC758 \uC81C\uCD9C -FormView.resetButton.textAndMnemonic=\uC7AC\uC124\uC815 -FormView.browseFileButton.textAndMnemonic=\uCC3E\uC544\uBCF4\uAE30... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=\uC2A4\uD0C0\uC77C \uBCC0\uACBD -AbstractDocument.addition.textAndMnemonic=\uCD94\uAC00 -AbstractDocument.deletion.textAndMnemonic=\uC0AD\uC81C -AbstractDocument.undo.textAndMnemonic=\uC2E4\uD589 \uCDE8\uC18C -AbstractDocument.redo.textAndMnemonic=\uC7AC\uC2E4\uD589 - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=\uB204\uB974\uAE30 - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=\uC2E4\uD589 \uCDE8\uC18C -AbstractUndoableEdit.redo.textAndMnemonic=\uC7AC\uC2E4\uD589 - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=\uC9C4\uD589... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=\uC67C\uCABD \uB2E8\uCD94 -SplitPane.rightButton.textAndMnemonic=\uC624\uB978\uCABD \uB2E8\uCD94 -# Used for Isindex -IsindexView.prompt=\uB2E4\uC74C\uC740 \uAC80\uC0C9 \uAC00\uB2A5\uD55C \uC778\uB371\uC2A4\uC785\uB2C8\uB2E4. \uAC80\uC0C9 \uD0A4\uC6CC\uB4DC \uC785\uB825: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=\uC544\uC774\uCF58\uD654 -InternalFrameTitlePane.maximizeButtonAccessibleName=\uCD5C\uB300\uD654 -InternalFrameTitlePane.closeButtonAccessibleName=\uB2EB\uAE30 - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=\uC77C\uBC18 \uD30C\uC77C +FileChooser.directoryDescription.textAndMnemonic=\uB514\uB809\uD1A0\uB9AC +FileChooser.newFolderError.textAndMnemonic=\uC0C8 \uD3F4\uB354\uB97C \uC0DD\uC131\uD558\uB294 \uC911 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\uD3F4\uB354\uB97C \uC0DD\uC131\uD560 \uC218 \uC5C6\uC74C +FileChooser.newFolderParentDoesntExist.textAndMnemonic=\uD3F4\uB354\uB97C \uC0DD\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n\n\uC2DC\uC2A4\uD15C\uC5D0\uC11C \uC9C0\uC815\uB41C \uACBD\uB85C\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. +FileChooser.renameErrorTitle.textAndMnemonic=\uD30C\uC77C \uB610\uB294 \uD3F4\uB354 \uC774\uB984 \uBC14\uAFB8\uB294 \uC911 \uC624\uB958 \uBC1C\uC0DD +FileChooser.renameError.textAndMnemonic={0}\uC758 \uC774\uB984\uC744 \uBC14\uAFC0 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. +FileChooser.renameErrorFileExists.textAndMnemonic={0}\uC758 \uC774\uB984\uC744 \uBC14\uAFC0 \uC218 \uC5C6\uC74C: \uC9C0\uC815\uD55C \uC774\uB984\uC744 \uC0AC\uC6A9\uD558\uB294 \uD30C\uC77C\uC774 \uC874\uC7AC\uD569\uB2C8\uB2E4. \uB2E4\uB978 \uD30C\uC77C \uC774\uB984\uC744 \uC9C0\uC815\uD558\uC2ED\uC2DC\uC624. +FileChooser.acceptAllFileFilter.textAndMnemonic=\uBAA8\uB4E0 \uD30C\uC77C +FileChooser.cancelButton.textAndMnemonic=\uCDE8\uC18C +FileChooser.saveButton.textAndMnemonic=\uC800\uC7A5(&S) +FileChooser.openButton.textAndMnemonic=\uC5F4\uAE30(&O) +FileChooser.saveDialogTitle.textAndMnemonic=\uC800\uC7A5 +FileChooser.openDialogTitle.textAndMnemonic=\uC5F4\uAE30 +FileChooser.updateButton.textAndMnemonic=\uAC31\uC2E0(&U) +FileChooser.helpButton.textAndMnemonic=\uB3C4\uC6C0\uB9D0(&H) +FileChooser.directoryOpenButton.textAndMnemonic=\uC5F4\uAE30(&O) + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=\uC0C8 \uD3F4\uB354 +FileChooser.win32.newFolder.subsequent=\uC0C8 \uD3F4\uB354({0}) +FileChooser.other.newFolder=NewFolder +FileChooser.other.newFolder.subsequent=NewFolder.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=\uD30C\uC77C \uC120\uD0DD\uAE30 \uB300\uD654\uC0C1\uC790 \uC911\uB2E8 +FileChooser.saveButtonToolTip.textAndMnemonic=\uC120\uD0DD\uB41C \uD30C\uC77C \uC800\uC7A5 +FileChooser.openButtonToolTip.textAndMnemonic=\uC120\uD0DD\uB41C \uD30C\uC77C \uC5F4\uAE30 +FileChooser.updateButtonToolTip.textAndMnemonic=\uB514\uB809\uD1A0\uB9AC \uBAA9\uB85D \uAC31\uC2E0 +FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser \uB3C4\uC6C0\uB9D0 +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\uC120\uD0DD\uB41C \uB514\uB809\uD1A0\uB9AC \uC5F4\uAE30 + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=\uBBF8\uB9AC\uBCF4\uAE30 +ColorChooser.ok.textAndMnemonic=\uD655\uC778 +ColorChooser.cancel.textAndMnemonic=\uCDE8\uC18C +ColorChooser.reset.textAndMnemonic=\uC7AC\uC124\uC815(&R) +ColorChooser.sample.textAndMnemonic=\uC0D8\uD50C \uD14D\uC2A4\uD2B8 \uC0D8\uD50C \uD14D\uC2A4\uD2B8 +ColorChooser.swatches.textAndMnemonic=\uACAC\uBCF8(&S) +ColorChooser.swatchesRecent.textAndMnemonic=\uCD5C\uADFC \uBAA9\uB85D: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=\uC0C9\uC870 +ColorChooser.hsvSaturation.textAndMnemonic=\uCC44\uB3C4 +ColorChooser.hsvValue.textAndMnemonic=\uAC12 +ColorChooser.hsvTransparency.textAndMnemonic=\uD22C\uBA85 +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=\uC0C9\uC870 +ColorChooser.hslSaturation.textAndMnemonic=\uCC44\uB3C4 +ColorChooser.hslLightness.textAndMnemonic=\uBC1D\uAE30 +ColorChooser.hslTransparency.textAndMnemonic=\uD22C\uBA85 +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=\uBE68\uAC04\uC0C9(&D) +ColorChooser.rgbGreen.textAndMnemonic=\uB179\uC0C9(&N) +ColorChooser.rgbBlue.textAndMnemonic=\uD30C\uB780\uC0C9(&B) +ColorChooser.rgbAlpha.textAndMnemonic=\uC54C\uD30C +ColorChooser.rgbHexCode.textAndMnemonic=\uC0C9\uC0C1 \uCF54\uB4DC(&C) +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=\uCCAD\uB85D\uC0C9 +ColorChooser.cmykMagenta.textAndMnemonic=\uC9C4\uD64D\uC0C9 +ColorChooser.cmykYellow.textAndMnemonic=\uB178\uB780\uC0C9 +ColorChooser.cmykBlack.textAndMnemonic=\uAC80\uC815\uC0C9 +ColorChooser.cmykAlpha.textAndMnemonic=\uC54C\uD30C + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=\uC608(&Y) +OptionPane.noButton.textAndMnemonic=\uC544\uB2C8\uC624(&N) +OptionPane.okButton.textAndMnemonic=\uD655\uC778(&O) +OptionPane.cancelButton.textAndMnemonic=\uCDE8\uC18C +OptionPane.title.textAndMnemonic=\uC635\uC158 \uC120\uD0DD +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=\uC785\uB825 +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=\uBA54\uC2DC\uC9C0 + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=\uC778\uC1C4 +PrintingDialog.titleAborting.textAndMnemonic=\uC778\uC1C4(\uC911\uB2E8 \uC911) + +PrintingDialog.contentInitial.textAndMnemonic=\uC778\uC1C4 \uC9C4\uD589 \uC911... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=\uC778\uC1C4\uB41C \uD398\uC774\uC9C0 {0}... + +PrintingDialog.contentAborting.textAndMnemonic=\uC778\uC1C4 \uC911\uB2E8 \uC911... + +PrintingDialog.abortButton.textAndMnemonic=\uC911\uB2E8(&A) +PrintingDialog.abortButtonToolTip.textAndMnemonic=\uC778\uC1C4 \uC911\uB2E8 + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=\uCD5C\uC18C\uD654 +InternalFrame.maxButtonToolTip=\uCD5C\uB300\uD654 +InternalFrame.restoreButtonToolTip=\uBCF5\uC6D0 +InternalFrame.closeButtonToolTip=\uB2EB\uAE30 + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=\uBCF5\uC6D0 +InternalFrameTitlePane.moveButton.textAndMnemonic=\uC774\uB3D9 +InternalFrameTitlePane.sizeButton.textAndMnemonic=\uD06C\uAE30 +InternalFrameTitlePane.minimizeButton.textAndMnemonic=\uCD5C\uC18C\uD654 +InternalFrameTitlePane.maximizeButton.textAndMnemonic=\uCD5C\uB300\uD654 +InternalFrameTitlePane.closeButton.textAndMnemonic=\uB2EB\uAE30 + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=\uC9C8\uC758 \uC81C\uCD9C +FormView.resetButton.textAndMnemonic=\uC7AC\uC124\uC815 +FormView.browseFileButton.textAndMnemonic=\uCC3E\uC544\uBCF4\uAE30... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=\uC2A4\uD0C0\uC77C \uBCC0\uACBD +AbstractDocument.addition.textAndMnemonic=\uCD94\uAC00 +AbstractDocument.deletion.textAndMnemonic=\uC0AD\uC81C +AbstractDocument.undo.textAndMnemonic=\uC2E4\uD589 \uCDE8\uC18C +AbstractDocument.redo.textAndMnemonic=\uC7AC\uC2E4\uD589 + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=\uB204\uB974\uAE30 + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=\uC2E4\uD589 \uCDE8\uC18C +AbstractUndoableEdit.redo.textAndMnemonic=\uC7AC\uC2E4\uD589 + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=\uC9C4\uD589... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=\uC67C\uCABD \uB2E8\uCD94 +SplitPane.rightButton.textAndMnemonic=\uC624\uB978\uCABD \uB2E8\uCD94 +# Used for Isindex +IsindexView.prompt=\uB2E4\uC74C\uC740 \uAC80\uC0C9 \uAC00\uB2A5\uD55C \uC778\uB371\uC2A4\uC785\uB2C8\uB2E4. \uAC80\uC0C9 \uD0A4\uC6CC\uB4DC \uC785\uB825: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=\uC544\uC774\uCF58\uD654 +InternalFrameTitlePane.maximizeButtonAccessibleName=\uCD5C\uB300\uD654 +InternalFrameTitlePane.closeButtonAccessibleName=\uB2EB\uAE30 + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_pt_BR.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_pt_BR.properties index c90eeaafde2..d50aaa50b5f 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_pt_BR.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_pt_BR.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=Arquivo Gen\u00E9rico -FileChooser.directoryDescription.textAndMnemonic=Diret\u00F3rio -FileChooser.newFolderError.textAndMnemonic=Erro ao criar nova pasta -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel criar a pasta -FileChooser.newFolderParentDoesntExist.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel criar a pasta.\n\nO sistema n\u00E3o pode localizar o caminho especificado. -FileChooser.renameErrorTitle.textAndMnemonic=Erro ao Renomear o Arquivo ou a Pasta -FileChooser.renameError.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel renomear {0} -FileChooser.renameErrorFileExists.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel renomear {0}: Um arquivo com o nome especificado j\u00E1 existe. Especifique outro nome de arquivo. -FileChooser.acceptAllFileFilter.textAndMnemonic=Todos os Arquivos -FileChooser.cancelButton.textAndMnemonic=&Cancelar -FileChooser.saveButton.textAndMnemonic=&Salvar -FileChooser.openButton.textAndMnemonic=A&brir -FileChooser.saveDialogTitle.textAndMnemonic=Salvar -FileChooser.openDialogTitle.textAndMnemonic=Abrir -FileChooser.updateButton.textAndMnemonic=At&ualizar -FileChooser.helpButton.textAndMnemonic=Aj&uda -FileChooser.directoryOpenButton.textAndMnemonic=A&brir - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=Nova Pasta -FileChooser.win32.newFolder.subsequent=Nova Pasta ({0}) -FileChooser.other.newFolder=NewFolder -FileChooser.other.newFolder.subsequent=NewFolder.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=Abortar caixa de di\u00E1logo do seletor de arquivos -FileChooser.saveButtonToolTip.textAndMnemonic=Salvar arquivo selecionado -FileChooser.openButtonToolTip.textAndMnemonic=Abrir arquivo selecionado -FileChooser.updateButtonToolTip.textAndMnemonic=Atualizar lista de diret\u00F3rios -FileChooser.helpButtonToolTip.textAndMnemonic=Ajuda do FileChooser -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Abrir diret\u00F3rio selecionado - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=Visualizar -ColorChooser.ok.textAndMnemonic=OK -ColorChooser.cancel.textAndMnemonic=Cancelar -ColorChooser.reset.textAndMnemonic=&Redefinir -ColorChooser.sample.textAndMnemonic=Texto de Amostra Texto de Amostra -ColorChooser.swatches.textAndMnemonic=Amo&stras -ColorChooser.swatchesRecent.textAndMnemonic=Recente: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=Matiz -ColorChooser.hsvSaturation.textAndMnemonic=Satura\u00E7\u00E3o -ColorChooser.hsvValue.textAndMnemonic=Valor -ColorChooser.hsvTransparency.textAndMnemonic=Transpar\u00EAncia -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=Matiz -ColorChooser.hslSaturation.textAndMnemonic=Satura\u00E7\u00E3o -ColorChooser.hslLightness.textAndMnemonic=Clareza -ColorChooser.hslTransparency.textAndMnemonic=Transpar\u00EAncia -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=&Vermelho -ColorChooser.rgbGreen.textAndMnemonic=&Verde -ColorChooser.rgbBlue.textAndMnemonic=&Azul -ColorChooser.rgbAlpha.textAndMnemonic=Alfa -ColorChooser.rgbHexCode.textAndMnemonic=C\u00F3digo da Cor(&C) -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=Ciano -ColorChooser.cmykMagenta.textAndMnemonic=Magenta -ColorChooser.cmykYellow.textAndMnemonic=Amarelo -ColorChooser.cmykBlack.textAndMnemonic=Preto -ColorChooser.cmykAlpha.textAndMnemonic=Alfa - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=&Sim -OptionPane.noButton.textAndMnemonic=N\u00E3o(&N) -OptionPane.okButton.textAndMnemonic=&OK -OptionPane.cancelButton.textAndMnemonic=&Cancelar -OptionPane.title.textAndMnemonic=Selecionar uma Op\u00E7\u00E3o -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=Entrada -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=Mensagem - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=Impress\u00E3o -PrintingDialog.titleAborting.textAndMnemonic=Impress\u00E3o (Abortando) - -PrintingDialog.contentInitial.textAndMnemonic=Impress\u00E3o em andamento... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=P\u00E1gina impressa {0}... - -PrintingDialog.contentAborting.textAndMnemonic=Abortando impress\u00E3o... - -PrintingDialog.abortButton.textAndMnemonic=&Abortar -PrintingDialog.abortButtonToolTip.textAndMnemonic=Abortar Impress\u00E3o - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=Minimizar -InternalFrame.maxButtonToolTip=Maximizar -InternalFrame.restoreButtonToolTip=Restaurar -InternalFrame.closeButtonToolTip=Fechar - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=Restaurar -InternalFrameTitlePane.moveButton.textAndMnemonic=Mover -InternalFrameTitlePane.sizeButton.textAndMnemonic=Tamanho -InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimizar -InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximizar -InternalFrameTitlePane.closeButton.textAndMnemonic=Fechar - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=Submeter Consulta -FormView.resetButton.textAndMnemonic=Redefinir -FormView.browseFileButton.textAndMnemonic=Procurar... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=altera\u00E7\u00E3o de estilo -AbstractDocument.addition.textAndMnemonic=adi\u00E7\u00E3o -AbstractDocument.deletion.textAndMnemonic=dele\u00E7\u00E3o -AbstractDocument.undo.textAndMnemonic=Desfazer -AbstractDocument.redo.textAndMnemonic=Refazer - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=clicar - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=Desfazer -AbstractUndoableEdit.redo.textAndMnemonic=Refazer - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=Progresso... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=bot\u00E3o esquerdo -SplitPane.rightButton.textAndMnemonic=bot\u00E3o direito -# Used for Isindex -IsindexView.prompt=Trata-se de um \u00EDndice pesquis\u00E1vel. Informe as palavras-chave de pesquisa: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=Iconify -InternalFrameTitlePane.maximizeButtonAccessibleName=Maximizar -InternalFrameTitlePane.closeButtonAccessibleName=Fechar - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=Arquivo Gen\u00E9rico +FileChooser.directoryDescription.textAndMnemonic=Diret\u00F3rio +FileChooser.newFolderError.textAndMnemonic=Erro ao criar nova pasta +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel criar a pasta +FileChooser.newFolderParentDoesntExist.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel criar a pasta.\n\nO sistema n\u00E3o pode localizar o caminho especificado. +FileChooser.renameErrorTitle.textAndMnemonic=Erro ao Renomear o Arquivo ou a Pasta +FileChooser.renameError.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel renomear {0} +FileChooser.renameErrorFileExists.textAndMnemonic=N\u00E3o \u00E9 poss\u00EDvel renomear {0}: Um arquivo com o nome especificado j\u00E1 existe. Especifique outro nome de arquivo. +FileChooser.acceptAllFileFilter.textAndMnemonic=Todos os Arquivos +FileChooser.cancelButton.textAndMnemonic=Cancelar +FileChooser.saveButton.textAndMnemonic=&Salvar +FileChooser.openButton.textAndMnemonic=A&brir +FileChooser.saveDialogTitle.textAndMnemonic=Salvar +FileChooser.openDialogTitle.textAndMnemonic=Abrir +FileChooser.updateButton.textAndMnemonic=At&ualizar +FileChooser.helpButton.textAndMnemonic=Aj&uda +FileChooser.directoryOpenButton.textAndMnemonic=A&brir + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=Nova Pasta +FileChooser.win32.newFolder.subsequent=Nova Pasta ({0}) +FileChooser.other.newFolder=NewFolder +FileChooser.other.newFolder.subsequent=NewFolder.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=Abortar caixa de di\u00E1logo do seletor de arquivos +FileChooser.saveButtonToolTip.textAndMnemonic=Salvar arquivo selecionado +FileChooser.openButtonToolTip.textAndMnemonic=Abrir arquivo selecionado +FileChooser.updateButtonToolTip.textAndMnemonic=Atualizar lista de diret\u00F3rios +FileChooser.helpButtonToolTip.textAndMnemonic=Ajuda do FileChooser +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=Abrir diret\u00F3rio selecionado + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=Visualizar +ColorChooser.ok.textAndMnemonic=OK +ColorChooser.cancel.textAndMnemonic=Cancelar +ColorChooser.reset.textAndMnemonic=&Redefinir +ColorChooser.sample.textAndMnemonic=Texto de Amostra Texto de Amostra +ColorChooser.swatches.textAndMnemonic=Amo&stras +ColorChooser.swatchesRecent.textAndMnemonic=Recente: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=Matiz +ColorChooser.hsvSaturation.textAndMnemonic=Satura\u00E7\u00E3o +ColorChooser.hsvValue.textAndMnemonic=Valor +ColorChooser.hsvTransparency.textAndMnemonic=Transpar\u00EAncia +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=Matiz +ColorChooser.hslSaturation.textAndMnemonic=Satura\u00E7\u00E3o +ColorChooser.hslLightness.textAndMnemonic=Clareza +ColorChooser.hslTransparency.textAndMnemonic=Transpar\u00EAncia +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=&Vermelho +ColorChooser.rgbGreen.textAndMnemonic=&Verde +ColorChooser.rgbBlue.textAndMnemonic=&Azul +ColorChooser.rgbAlpha.textAndMnemonic=Alfa +ColorChooser.rgbHexCode.textAndMnemonic=C\u00F3digo da Cor(&C) +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=Ciano +ColorChooser.cmykMagenta.textAndMnemonic=Magenta +ColorChooser.cmykYellow.textAndMnemonic=Amarelo +ColorChooser.cmykBlack.textAndMnemonic=Preto +ColorChooser.cmykAlpha.textAndMnemonic=Alfa + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=&Sim +OptionPane.noButton.textAndMnemonic=N\u00E3o(&N) +OptionPane.okButton.textAndMnemonic=&OK +OptionPane.cancelButton.textAndMnemonic=&Cancelar +OptionPane.title.textAndMnemonic=Selecionar uma Op\u00E7\u00E3o +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=Entrada +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=Mensagem + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=Impress\u00E3o +PrintingDialog.titleAborting.textAndMnemonic=Impress\u00E3o (Abortando) + +PrintingDialog.contentInitial.textAndMnemonic=Impress\u00E3o em andamento... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=P\u00E1gina impressa {0}... + +PrintingDialog.contentAborting.textAndMnemonic=Abortando impress\u00E3o... + +PrintingDialog.abortButton.textAndMnemonic=&Abortar +PrintingDialog.abortButtonToolTip.textAndMnemonic=Abortar Impress\u00E3o + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=Minimizar +InternalFrame.maxButtonToolTip=Maximizar +InternalFrame.restoreButtonToolTip=Restaurar +InternalFrame.closeButtonToolTip=Fechar + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=Restaurar +InternalFrameTitlePane.moveButton.textAndMnemonic=Mover +InternalFrameTitlePane.sizeButton.textAndMnemonic=Tamanho +InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimizar +InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximizar +InternalFrameTitlePane.closeButton.textAndMnemonic=Fechar + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=Submeter Consulta +FormView.resetButton.textAndMnemonic=Redefinir +FormView.browseFileButton.textAndMnemonic=Procurar... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=altera\u00E7\u00E3o de estilo +AbstractDocument.addition.textAndMnemonic=adi\u00E7\u00E3o +AbstractDocument.deletion.textAndMnemonic=dele\u00E7\u00E3o +AbstractDocument.undo.textAndMnemonic=Desfazer +AbstractDocument.redo.textAndMnemonic=Refazer + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=clicar + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=Desfazer +AbstractUndoableEdit.redo.textAndMnemonic=Refazer + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=Progresso... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=bot\u00E3o esquerdo +SplitPane.rightButton.textAndMnemonic=bot\u00E3o direito +# Used for Isindex +IsindexView.prompt=Trata-se de um \u00EDndice pesquis\u00E1vel. Informe as palavras-chave de pesquisa: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=Iconify +InternalFrameTitlePane.maximizeButtonAccessibleName=Maximizar +InternalFrameTitlePane.closeButtonAccessibleName=Fechar + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_sv.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_sv.properties index 195aaead4c9..ca288617fdb 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_sv.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_sv.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=Generisk fil -FileChooser.directoryDescription.textAndMnemonic=Katalog -FileChooser.newFolderError.textAndMnemonic=Fel uppstod n\u00E4r ny mapp skapades -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Kan inte skapa mappen -FileChooser.newFolderParentDoesntExist.textAndMnemonic=Kan inte skapa mappen.\n\nSystemet kan inte hitta angiven s\u00F6kv\u00E4g. -FileChooser.renameErrorTitle.textAndMnemonic=Ett fel intr\u00E4ffade vid f\u00F6rs\u00F6k att \u00E4ndra namn p\u00E5 fil eller mapp -FileChooser.renameError.textAndMnemonic=Kan inte namn\u00E4ndra {0} -FileChooser.renameErrorFileExists.textAndMnemonic=Kan inte namn\u00E4ndra {0}: En fil med angivet namn finns redan. Ange ett annat filnamn. -FileChooser.acceptAllFileFilter.textAndMnemonic=Alla filer -FileChooser.cancelButton.textAndMnemonic=&Avbryt -FileChooser.saveButton.textAndMnemonic=&Spara -FileChooser.openButton.textAndMnemonic=\u00D6ppna(&P) -FileChooser.saveDialogTitle.textAndMnemonic=Spara -FileChooser.openDialogTitle.textAndMnemonic=\u00D6ppna -FileChooser.updateButton.textAndMnemonic=Upp&datera -FileChooser.helpButton.textAndMnemonic=Hj\u00E4lp(&H) -FileChooser.directoryOpenButton.textAndMnemonic=\u00D6ppna(&P) - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=Ny mapp -FileChooser.win32.newFolder.subsequent=Ny mapp ({0}) -FileChooser.other.newFolder=Ny mapp -FileChooser.other.newFolder.subsequent=Ny mapp.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=Avbryt filvalsdialogruta -FileChooser.saveButtonToolTip.textAndMnemonic=Spara vald fil -FileChooser.openButtonToolTip.textAndMnemonic=\u00D6ppna vald fil -FileChooser.updateButtonToolTip.textAndMnemonic=Uppdatera kataloglistan -FileChooser.helpButtonToolTip.textAndMnemonic=Hj\u00E4lp - Filv\u00E4ljare -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u00D6ppna vald katalog - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=Granska -ColorChooser.ok.textAndMnemonic=OK -ColorChooser.cancel.textAndMnemonic=Avbryt -ColorChooser.reset.textAndMnemonic=\u00C5terst\u00E4ll(&T) -ColorChooser.sample.textAndMnemonic=Exempeltext Exempeltext -ColorChooser.swatches.textAndMnemonic=&Prov -ColorChooser.swatchesRecent.textAndMnemonic=Senaste: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=Nyans -ColorChooser.hsvSaturation.textAndMnemonic=M\u00E4ttnad -ColorChooser.hsvValue.textAndMnemonic=V\u00E4rde -ColorChooser.hsvTransparency.textAndMnemonic=Transparens -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=Nyans -ColorChooser.hslSaturation.textAndMnemonic=M\u00E4ttnad -ColorChooser.hslLightness.textAndMnemonic=Ljusstyrka -ColorChooser.hslTransparency.textAndMnemonic=Transparens -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=R\u00F6d(&D) -ColorChooser.rgbGreen.textAndMnemonic=Gr\u00F6n(&N) -ColorChooser.rgbBlue.textAndMnemonic=Bl\u00E5(&B) -ColorChooser.rgbAlpha.textAndMnemonic=Alfa -ColorChooser.rgbHexCode.textAndMnemonic=F\u00E4rgkod(&F) -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=Cyan -ColorChooser.cmykMagenta.textAndMnemonic=Magenta -ColorChooser.cmykYellow.textAndMnemonic=Gul -ColorChooser.cmykBlack.textAndMnemonic=Svart -ColorChooser.cmykAlpha.textAndMnemonic=Alfa - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=&Ja -OptionPane.noButton.textAndMnemonic=&Nej -OptionPane.okButton.textAndMnemonic=&OK -OptionPane.cancelButton.textAndMnemonic=&Avbryt -OptionPane.title.textAndMnemonic=V\u00E4lj ett alternativ -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=Indata -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=Meddelande - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=Skriver ut -PrintingDialog.titleAborting.textAndMnemonic=Skriver ut (avbryter) - -PrintingDialog.contentInitial.textAndMnemonic=Utskrift p\u00E5g\u00E5r... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=Utskriven sida {0}... - -PrintingDialog.contentAborting.textAndMnemonic=Utskriften avbryts... - -PrintingDialog.abortButton.textAndMnemonic=&Avbryt -PrintingDialog.abortButtonToolTip.textAndMnemonic=Avbryt utskrift - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=Minimera -InternalFrame.maxButtonToolTip=Maximera -InternalFrame.restoreButtonToolTip=\u00C5terst\u00E4ll -InternalFrame.closeButtonToolTip=St\u00E4ng - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=\u00C5terst\u00E4ll -InternalFrameTitlePane.moveButton.textAndMnemonic=Flytta -InternalFrameTitlePane.sizeButton.textAndMnemonic=Storlek -InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimera -InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximera -InternalFrameTitlePane.closeButton.textAndMnemonic=St\u00E4ng - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=Skicka fr\u00E5ga -FormView.resetButton.textAndMnemonic=\u00C5terst\u00E4ll -FormView.browseFileButton.textAndMnemonic=Bl\u00E4ddra... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=format\u00E4ndring -AbstractDocument.addition.textAndMnemonic=till\u00E4gg -AbstractDocument.deletion.textAndMnemonic=borttagning -AbstractDocument.undo.textAndMnemonic=\u00C5ngra -AbstractDocument.redo.textAndMnemonic=G\u00F6r om - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=klicka - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=\u00C5ngra -AbstractUndoableEdit.redo.textAndMnemonic=G\u00F6r om - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=v\u00E4xlaPopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=P\u00E5g\u00E5r... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=v\u00E4nster knapp -SplitPane.rightButton.textAndMnemonic=h\u00F6ger knapp -# Used for Isindex -IsindexView.prompt=Detta \u00E4r ett s\u00F6kbart index. Ange s\u00F6kord: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=Minimera -InternalFrameTitlePane.maximizeButtonAccessibleName=Maximera -InternalFrameTitlePane.closeButtonAccessibleName=St\u00E4ng - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=Generisk fil +FileChooser.directoryDescription.textAndMnemonic=Katalog +FileChooser.newFolderError.textAndMnemonic=Fel uppstod n\u00E4r ny mapp skapades +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=Kan inte skapa mappen +FileChooser.newFolderParentDoesntExist.textAndMnemonic=Kan inte skapa mappen.\n\nSystemet kan inte hitta angiven s\u00F6kv\u00E4g. +FileChooser.renameErrorTitle.textAndMnemonic=Ett fel intr\u00E4ffade vid f\u00F6rs\u00F6k att \u00E4ndra namn p\u00E5 fil eller mapp +FileChooser.renameError.textAndMnemonic=Kan inte namn\u00E4ndra {0} +FileChooser.renameErrorFileExists.textAndMnemonic=Kan inte namn\u00E4ndra {0}: En fil med angivet namn finns redan. Ange ett annat filnamn. +FileChooser.acceptAllFileFilter.textAndMnemonic=Alla filer +FileChooser.cancelButton.textAndMnemonic=Avbryt +FileChooser.saveButton.textAndMnemonic=&Spara +FileChooser.openButton.textAndMnemonic=\u00D6ppna(&P) +FileChooser.saveDialogTitle.textAndMnemonic=Spara +FileChooser.openDialogTitle.textAndMnemonic=\u00D6ppna +FileChooser.updateButton.textAndMnemonic=Upp&datera +FileChooser.helpButton.textAndMnemonic=Hj\u00E4lp(&H) +FileChooser.directoryOpenButton.textAndMnemonic=\u00D6ppna(&P) + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=Ny mapp +FileChooser.win32.newFolder.subsequent=Ny mapp ({0}) +FileChooser.other.newFolder=Ny mapp +FileChooser.other.newFolder.subsequent=Ny mapp.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=Avbryt filvalsdialogruta +FileChooser.saveButtonToolTip.textAndMnemonic=Spara vald fil +FileChooser.openButtonToolTip.textAndMnemonic=\u00D6ppna vald fil +FileChooser.updateButtonToolTip.textAndMnemonic=Uppdatera kataloglistan +FileChooser.helpButtonToolTip.textAndMnemonic=Hj\u00E4lp - Filv\u00E4ljare +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u00D6ppna vald katalog + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=Granska +ColorChooser.ok.textAndMnemonic=OK +ColorChooser.cancel.textAndMnemonic=Avbryt +ColorChooser.reset.textAndMnemonic=\u00C5terst\u00E4ll(&T) +ColorChooser.sample.textAndMnemonic=Exempeltext Exempeltext +ColorChooser.swatches.textAndMnemonic=&Prov +ColorChooser.swatchesRecent.textAndMnemonic=Senaste: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=Nyans +ColorChooser.hsvSaturation.textAndMnemonic=M\u00E4ttnad +ColorChooser.hsvValue.textAndMnemonic=V\u00E4rde +ColorChooser.hsvTransparency.textAndMnemonic=Transparens +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=Nyans +ColorChooser.hslSaturation.textAndMnemonic=M\u00E4ttnad +ColorChooser.hslLightness.textAndMnemonic=Ljusstyrka +ColorChooser.hslTransparency.textAndMnemonic=Transparens +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=R\u00F6d(&D) +ColorChooser.rgbGreen.textAndMnemonic=Gr\u00F6n(&N) +ColorChooser.rgbBlue.textAndMnemonic=Bl\u00E5(&B) +ColorChooser.rgbAlpha.textAndMnemonic=Alfa +ColorChooser.rgbHexCode.textAndMnemonic=F\u00E4rgkod(&F) +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=Cyan +ColorChooser.cmykMagenta.textAndMnemonic=Magenta +ColorChooser.cmykYellow.textAndMnemonic=Gul +ColorChooser.cmykBlack.textAndMnemonic=Svart +ColorChooser.cmykAlpha.textAndMnemonic=Alfa + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=&Ja +OptionPane.noButton.textAndMnemonic=&Nej +OptionPane.okButton.textAndMnemonic=&OK +OptionPane.cancelButton.textAndMnemonic=&Avbryt +OptionPane.title.textAndMnemonic=V\u00E4lj ett alternativ +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=Indata +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=Meddelande + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=Skriver ut +PrintingDialog.titleAborting.textAndMnemonic=Skriver ut (avbryter) + +PrintingDialog.contentInitial.textAndMnemonic=Utskrift p\u00E5g\u00E5r... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=Utskriven sida {0}... + +PrintingDialog.contentAborting.textAndMnemonic=Utskriften avbryts... + +PrintingDialog.abortButton.textAndMnemonic=&Avbryt +PrintingDialog.abortButtonToolTip.textAndMnemonic=Avbryt utskrift + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=Minimera +InternalFrame.maxButtonToolTip=Maximera +InternalFrame.restoreButtonToolTip=\u00C5terst\u00E4ll +InternalFrame.closeButtonToolTip=St\u00E4ng + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=\u00C5terst\u00E4ll +InternalFrameTitlePane.moveButton.textAndMnemonic=Flytta +InternalFrameTitlePane.sizeButton.textAndMnemonic=Storlek +InternalFrameTitlePane.minimizeButton.textAndMnemonic=Minimera +InternalFrameTitlePane.maximizeButton.textAndMnemonic=Maximera +InternalFrameTitlePane.closeButton.textAndMnemonic=St\u00E4ng + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=Skicka fr\u00E5ga +FormView.resetButton.textAndMnemonic=\u00C5terst\u00E4ll +FormView.browseFileButton.textAndMnemonic=Bl\u00E4ddra... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=format\u00E4ndring +AbstractDocument.addition.textAndMnemonic=till\u00E4gg +AbstractDocument.deletion.textAndMnemonic=borttagning +AbstractDocument.undo.textAndMnemonic=\u00C5ngra +AbstractDocument.redo.textAndMnemonic=G\u00F6r om + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=klicka + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=\u00C5ngra +AbstractUndoableEdit.redo.textAndMnemonic=G\u00F6r om + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=v\u00E4xlaPopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=P\u00E5g\u00E5r... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=v\u00E4nster knapp +SplitPane.rightButton.textAndMnemonic=h\u00F6ger knapp +# Used for Isindex +IsindexView.prompt=Detta \u00E4r ett s\u00F6kbart index. Ange s\u00F6kord: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=Minimera +InternalFrameTitlePane.maximizeButtonAccessibleName=Maximera +InternalFrameTitlePane.closeButtonAccessibleName=St\u00E4ng + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_CN.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_CN.properties index 1c6d27c1ed0..a9d0077d641 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_CN.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_CN.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=\u666E\u901A\u7684\u6587\u4EF6 -FileChooser.directoryDescription.textAndMnemonic=\u76EE\u5F55 -FileChooser.newFolderError.textAndMnemonic=\u521B\u5EFA\u65B0\u7684\u6587\u4EF6\u5939\u65F6\u51FA\u9519 -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\u65E0\u6CD5\u521B\u5EFA\u6587\u4EF6\u5939 -FileChooser.newFolderParentDoesntExist.textAndMnemonic=\u65E0\u6CD5\u521B\u5EFA\u6587\u4EF6\u5939\u3002\n\n\u7CFB\u7EDF\u627E\u4E0D\u5230\u6307\u5B9A\u7684\u8DEF\u5F84\u3002 -FileChooser.renameErrorTitle.textAndMnemonic=\u91CD\u547D\u540D\u6587\u4EF6\u6216\u6587\u4EF6\u5939\u65F6\u51FA\u9519 -FileChooser.renameError.textAndMnemonic=\u65E0\u6CD5\u91CD\u547D\u540D{0} -FileChooser.renameErrorFileExists.textAndMnemonic=\u65E0\u6CD5\u91CD\u547D\u540D{0}: \u5DF2\u5B58\u5728\u5177\u6709\u6240\u6307\u5B9A\u540D\u79F0\u7684\u6587\u4EF6\u3002\u8BF7\u6307\u5B9A\u5176\u4ED6\u6587\u4EF6\u540D\u3002 -FileChooser.acceptAllFileFilter.textAndMnemonic=\u6240\u6709\u6587\u4EF6 -FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88(&C) -FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58(&S) -FileChooser.openButton.textAndMnemonic=\u6253\u5F00(&O) -FileChooser.saveDialogTitle.textAndMnemonic=\u4FDD\u5B58 -FileChooser.openDialogTitle.textAndMnemonic=\u6253\u5F00 -FileChooser.updateButton.textAndMnemonic=\u66F4\u65B0(&U) -FileChooser.helpButton.textAndMnemonic=\u5E2E\u52A9(&H) -FileChooser.directoryOpenButton.textAndMnemonic=\u6253\u5F00(&O) - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=\u65B0\u5EFA\u6587\u4EF6\u5939 -FileChooser.win32.newFolder.subsequent=\u65B0\u5EFA\u6587\u4EF6\u5939 ({0}) -FileChooser.other.newFolder=NewFolder -FileChooser.other.newFolder.subsequent=NewFolder.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u6587\u4EF6\u9009\u62E9\u5668\u5BF9\u8BDD\u6846 -FileChooser.saveButtonToolTip.textAndMnemonic=\u4FDD\u5B58\u6240\u9009\u6587\u4EF6 -FileChooser.openButtonToolTip.textAndMnemonic=\u6253\u5F00\u6240\u9009\u6587\u4EF6 -FileChooser.updateButtonToolTip.textAndMnemonic=\u66F4\u65B0\u76EE\u5F55\u5217\u8868 -FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser \u5E2E\u52A9 -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u6253\u5F00\u9009\u62E9\u7684\u76EE\u5F55 - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=\u9884\u89C8 -ColorChooser.ok.textAndMnemonic=\u786E\u5B9A -ColorChooser.cancel.textAndMnemonic=\u53D6\u6D88 -ColorChooser.reset.textAndMnemonic=\u91CD\u7F6E(&R) -ColorChooser.sample.textAndMnemonic=\u793A\u4F8B\u6587\u672C \u793A\u4F8B\u6587\u672C -ColorChooser.swatches.textAndMnemonic=\u793A\u4F8B(&S) -ColorChooser.swatchesRecent.textAndMnemonic=\u6700\u8FD1: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=\u8272\u8C03 -ColorChooser.hsvSaturation.textAndMnemonic=\u9971\u548C\u5EA6 -ColorChooser.hsvValue.textAndMnemonic=\u503C -ColorChooser.hsvTransparency.textAndMnemonic=\u900F\u660E\u5EA6 -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=\u8272\u8C03 -ColorChooser.hslSaturation.textAndMnemonic=\u9971\u548C\u5EA6 -ColorChooser.hslLightness.textAndMnemonic=\u4EAE\u5EA6 -ColorChooser.hslTransparency.textAndMnemonic=\u900F\u660E\u5EA6 -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=\u7EA2\u8272(&D) -ColorChooser.rgbGreen.textAndMnemonic=\u7EFF\u8272(&N) -ColorChooser.rgbBlue.textAndMnemonic=\u84DD\u8272(&B) -ColorChooser.rgbAlpha.textAndMnemonic=Alpha -ColorChooser.rgbHexCode.textAndMnemonic=\u989C\u8272\u4EE3\u7801(&C) -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=\u9752\u8272 -ColorChooser.cmykMagenta.textAndMnemonic=\u7D2B\u7EA2\u8272 -ColorChooser.cmykYellow.textAndMnemonic=\u9EC4\u8272 -ColorChooser.cmykBlack.textAndMnemonic=\u9ED1\u8272 -ColorChooser.cmykAlpha.textAndMnemonic=Alpha - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=\u662F(&Y) -OptionPane.noButton.textAndMnemonic=\u5426(&N) -OptionPane.okButton.textAndMnemonic=\u786E\u5B9A(&O) -OptionPane.cancelButton.textAndMnemonic=\u53D6\u6D88 -OptionPane.title.textAndMnemonic=\u9009\u62E9\u4E00\u4E2A\u9009\u9879 -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=\u8F93\u5165 -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=\u6D88\u606F - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=\u6253\u5370 -PrintingDialog.titleAborting.textAndMnemonic=\u6253\u5370 (\u6B63\u5728\u4E2D\u6B62) - -PrintingDialog.contentInitial.textAndMnemonic=\u6B63\u5728\u8FDB\u884C\u6253\u5370... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=\u5DF2\u6253\u5370\u9875 {0}... - -PrintingDialog.contentAborting.textAndMnemonic=\u6B63\u5728\u4E2D\u6B62\u6253\u5370... - -PrintingDialog.abortButton.textAndMnemonic=\u4E2D\u6B62(&A) -PrintingDialog.abortButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u6253\u5370 - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=\u6700\u5C0F\u5316 -InternalFrame.maxButtonToolTip=\u6700\u5927\u5316 -InternalFrame.restoreButtonToolTip=\u8FD8\u539F -InternalFrame.closeButtonToolTip=\u5173\u95ED - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=\u8FD8\u539F -InternalFrameTitlePane.moveButton.textAndMnemonic=\u79FB\u52A8 -InternalFrameTitlePane.sizeButton.textAndMnemonic=\u5927\u5C0F -InternalFrameTitlePane.minimizeButton.textAndMnemonic=\u6700\u5C0F\u5316 -InternalFrameTitlePane.maximizeButton.textAndMnemonic=\u6700\u5927\u5316 -InternalFrameTitlePane.closeButton.textAndMnemonic=\u5173\u95ED - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=\u63D0\u4EA4\u67E5\u8BE2 -FormView.resetButton.textAndMnemonic=\u91CD\u8BBE -FormView.browseFileButton.textAndMnemonic=\u6D4F\u89C8... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=\u6837\u5F0F\u66F4\u6539 -AbstractDocument.addition.textAndMnemonic=\u6DFB\u52A0 -AbstractDocument.deletion.textAndMnemonic=\u5220\u9664 -AbstractDocument.undo.textAndMnemonic=\u64A4\u6D88 -AbstractDocument.redo.textAndMnemonic=\u91CD\u505A - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=\u5355\u51FB - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=\u64A4\u6D88 -AbstractUndoableEdit.redo.textAndMnemonic=\u91CD\u505A - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=togglePopup - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=\u8FDB\u5EA6... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=\u5DE6\u952E -SplitPane.rightButton.textAndMnemonic=\u53F3\u952E -# Used for Isindex -IsindexView.prompt=\u8FD9\u662F\u53EF\u641C\u7D22\u7D22\u5F15\u3002\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=\u56FE\u6807\u5316 -InternalFrameTitlePane.maximizeButtonAccessibleName=\u6700\u5927\u5316 -InternalFrameTitlePane.closeButtonAccessibleName=\u5173\u95ED - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=\u666E\u901A\u7684\u6587\u4EF6 +FileChooser.directoryDescription.textAndMnemonic=\u76EE\u5F55 +FileChooser.newFolderError.textAndMnemonic=\u521B\u5EFA\u65B0\u7684\u6587\u4EF6\u5939\u65F6\u51FA\u9519 +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\u65E0\u6CD5\u521B\u5EFA\u6587\u4EF6\u5939 +FileChooser.newFolderParentDoesntExist.textAndMnemonic=\u65E0\u6CD5\u521B\u5EFA\u6587\u4EF6\u5939\u3002\n\n\u7CFB\u7EDF\u627E\u4E0D\u5230\u6307\u5B9A\u7684\u8DEF\u5F84\u3002 +FileChooser.renameErrorTitle.textAndMnemonic=\u91CD\u547D\u540D\u6587\u4EF6\u6216\u6587\u4EF6\u5939\u65F6\u51FA\u9519 +FileChooser.renameError.textAndMnemonic=\u65E0\u6CD5\u91CD\u547D\u540D{0} +FileChooser.renameErrorFileExists.textAndMnemonic=\u65E0\u6CD5\u91CD\u547D\u540D{0}: \u5DF2\u5B58\u5728\u5177\u6709\u6240\u6307\u5B9A\u540D\u79F0\u7684\u6587\u4EF6\u3002\u8BF7\u6307\u5B9A\u5176\u4ED6\u6587\u4EF6\u540D\u3002 +FileChooser.acceptAllFileFilter.textAndMnemonic=\u6240\u6709\u6587\u4EF6 +FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88 +FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58(&S) +FileChooser.openButton.textAndMnemonic=\u6253\u5F00(&O) +FileChooser.saveDialogTitle.textAndMnemonic=\u4FDD\u5B58 +FileChooser.openDialogTitle.textAndMnemonic=\u6253\u5F00 +FileChooser.updateButton.textAndMnemonic=\u66F4\u65B0(&U) +FileChooser.helpButton.textAndMnemonic=\u5E2E\u52A9(&H) +FileChooser.directoryOpenButton.textAndMnemonic=\u6253\u5F00(&O) + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=\u65B0\u5EFA\u6587\u4EF6\u5939 +FileChooser.win32.newFolder.subsequent=\u65B0\u5EFA\u6587\u4EF6\u5939 ({0}) +FileChooser.other.newFolder=NewFolder +FileChooser.other.newFolder.subsequent=NewFolder.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u6587\u4EF6\u9009\u62E9\u5668\u5BF9\u8BDD\u6846 +FileChooser.saveButtonToolTip.textAndMnemonic=\u4FDD\u5B58\u6240\u9009\u6587\u4EF6 +FileChooser.openButtonToolTip.textAndMnemonic=\u6253\u5F00\u6240\u9009\u6587\u4EF6 +FileChooser.updateButtonToolTip.textAndMnemonic=\u66F4\u65B0\u76EE\u5F55\u5217\u8868 +FileChooser.helpButtonToolTip.textAndMnemonic=FileChooser \u5E2E\u52A9 +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u6253\u5F00\u9009\u62E9\u7684\u76EE\u5F55 + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=\u9884\u89C8 +ColorChooser.ok.textAndMnemonic=\u786E\u5B9A +ColorChooser.cancel.textAndMnemonic=\u53D6\u6D88 +ColorChooser.reset.textAndMnemonic=\u91CD\u7F6E(&R) +ColorChooser.sample.textAndMnemonic=\u793A\u4F8B\u6587\u672C \u793A\u4F8B\u6587\u672C +ColorChooser.swatches.textAndMnemonic=\u793A\u4F8B(&S) +ColorChooser.swatchesRecent.textAndMnemonic=\u6700\u8FD1: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=\u8272\u8C03 +ColorChooser.hsvSaturation.textAndMnemonic=\u9971\u548C\u5EA6 +ColorChooser.hsvValue.textAndMnemonic=\u503C +ColorChooser.hsvTransparency.textAndMnemonic=\u900F\u660E\u5EA6 +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=\u8272\u8C03 +ColorChooser.hslSaturation.textAndMnemonic=\u9971\u548C\u5EA6 +ColorChooser.hslLightness.textAndMnemonic=\u4EAE\u5EA6 +ColorChooser.hslTransparency.textAndMnemonic=\u900F\u660E\u5EA6 +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=\u7EA2\u8272(&D) +ColorChooser.rgbGreen.textAndMnemonic=\u7EFF\u8272(&N) +ColorChooser.rgbBlue.textAndMnemonic=\u84DD\u8272(&B) +ColorChooser.rgbAlpha.textAndMnemonic=Alpha +ColorChooser.rgbHexCode.textAndMnemonic=\u989C\u8272\u4EE3\u7801(&C) +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=\u9752\u8272 +ColorChooser.cmykMagenta.textAndMnemonic=\u7D2B\u7EA2\u8272 +ColorChooser.cmykYellow.textAndMnemonic=\u9EC4\u8272 +ColorChooser.cmykBlack.textAndMnemonic=\u9ED1\u8272 +ColorChooser.cmykAlpha.textAndMnemonic=Alpha + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=\u662F(&Y) +OptionPane.noButton.textAndMnemonic=\u5426(&N) +OptionPane.okButton.textAndMnemonic=\u786E\u5B9A(&O) +OptionPane.cancelButton.textAndMnemonic=\u53D6\u6D88 +OptionPane.title.textAndMnemonic=\u9009\u62E9\u4E00\u4E2A\u9009\u9879 +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=\u8F93\u5165 +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=\u6D88\u606F + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=\u6253\u5370 +PrintingDialog.titleAborting.textAndMnemonic=\u6253\u5370 (\u6B63\u5728\u4E2D\u6B62) + +PrintingDialog.contentInitial.textAndMnemonic=\u6B63\u5728\u8FDB\u884C\u6253\u5370... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=\u5DF2\u6253\u5370\u9875 {0}... + +PrintingDialog.contentAborting.textAndMnemonic=\u6B63\u5728\u4E2D\u6B62\u6253\u5370... + +PrintingDialog.abortButton.textAndMnemonic=\u4E2D\u6B62(&A) +PrintingDialog.abortButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u6253\u5370 + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=\u6700\u5C0F\u5316 +InternalFrame.maxButtonToolTip=\u6700\u5927\u5316 +InternalFrame.restoreButtonToolTip=\u8FD8\u539F +InternalFrame.closeButtonToolTip=\u5173\u95ED + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=\u8FD8\u539F +InternalFrameTitlePane.moveButton.textAndMnemonic=\u79FB\u52A8 +InternalFrameTitlePane.sizeButton.textAndMnemonic=\u5927\u5C0F +InternalFrameTitlePane.minimizeButton.textAndMnemonic=\u6700\u5C0F\u5316 +InternalFrameTitlePane.maximizeButton.textAndMnemonic=\u6700\u5927\u5316 +InternalFrameTitlePane.closeButton.textAndMnemonic=\u5173\u95ED + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=\u63D0\u4EA4\u67E5\u8BE2 +FormView.resetButton.textAndMnemonic=\u91CD\u8BBE +FormView.browseFileButton.textAndMnemonic=\u6D4F\u89C8... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=\u6837\u5F0F\u66F4\u6539 +AbstractDocument.addition.textAndMnemonic=\u6DFB\u52A0 +AbstractDocument.deletion.textAndMnemonic=\u5220\u9664 +AbstractDocument.undo.textAndMnemonic=\u64A4\u6D88 +AbstractDocument.redo.textAndMnemonic=\u91CD\u505A + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=\u5355\u51FB + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=\u64A4\u6D88 +AbstractUndoableEdit.redo.textAndMnemonic=\u91CD\u505A + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=togglePopup + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=\u8FDB\u5EA6... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=\u5DE6\u952E +SplitPane.rightButton.textAndMnemonic=\u53F3\u952E +# Used for Isindex +IsindexView.prompt=\u8FD9\u662F\u53EF\u641C\u7D22\u7D22\u5F15\u3002\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=\u56FE\u6807\u5316 +InternalFrameTitlePane.maximizeButtonAccessibleName=\u6700\u5927\u5316 +InternalFrameTitlePane.closeButtonAccessibleName=\u5173\u95ED + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_TW.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_TW.properties index bfcd7424788..9f54436a033 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_TW.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_zh_TW.properties @@ -1,186 +1,186 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used in Swing -# Currently, the following components need this for support: -# -# ColorChooser -# FileChooser -# OptionPane -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# MNEMONIC NOTE: -# Many of strings in this file are used by widgets that have a -# mnemonic, for example: -# ColorChooser.rgbNameTextAndMnemonic=R&GB -# Indicates that the tab in the ColorChooser for RGB colors will have -# the text 'RGB', further the mnemonic character will be 'g' and that -# a decoration will be provided under the 'G'. This will typically -# look like: RGB -# - -# -# One important thing to remember is that the mnemonic MUST exist in -# the String, if it does not exist you should add text that makes it -# exist. This will typically take the form 'XXXX (M)' where M is the -# character for the mnemonic. -# -# @author Steve Wilson - -############ FILE CHOOSER STRINGS ############# -FileChooser.fileDescription.textAndMnemonic=\u4E00\u822C\u6A94\u6848 -FileChooser.directoryDescription.textAndMnemonic=\u76EE\u9304 -FileChooser.newFolderError.textAndMnemonic=\u5EFA\u7ACB\u65B0\u8CC7\u6599\u593E\u6642\u767C\u751F\u932F\u8AA4 -FileChooser.newFolderErrorSeparator= : -FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\u7121\u6CD5\u5EFA\u7ACB\u8CC7\u6599\u593E -FileChooser.newFolderParentDoesntExist.textAndMnemonic=\u7121\u6CD5\u5EFA\u7ACB\u8CC7\u6599\u593E\u3002\n\n\u7CFB\u7D71\u627E\u4E0D\u5230\u6307\u5B9A\u7684\u8DEF\u5F91\u3002 -FileChooser.renameErrorTitle.textAndMnemonic=\u91CD\u65B0\u547D\u540D\u6A94\u6848\u6216\u8CC7\u6599\u593E\u6642\u767C\u751F\u932F\u8AA4\u3002 -FileChooser.renameError.textAndMnemonic=\u7121\u6CD5\u91CD\u65B0\u547D\u540D {0} -FileChooser.renameErrorFileExists.textAndMnemonic=\u7121\u6CD5\u91CD\u65B0\u547D\u540D {0}: \u5DF2\u7D93\u5B58\u5728\u60A8\u6240\u6307\u5B9A\u540D\u7A31\u7684\u6A94\u6848\u3002\u8ACB\u6307\u5B9A\u4E0D\u540C\u7684\u540D\u7A31\u3002 -FileChooser.acceptAllFileFilter.textAndMnemonic=\u6240\u6709\u6A94\u6848 -FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88(&C) -FileChooser.saveButton.textAndMnemonic=\u5132\u5B58(&S) -FileChooser.openButton.textAndMnemonic=\u958B\u555F(&O) -FileChooser.saveDialogTitle.textAndMnemonic=\u5132\u5B58 -FileChooser.openDialogTitle.textAndMnemonic=\u958B\u555F -FileChooser.updateButton.textAndMnemonic=\u66F4\u65B0(&U) -FileChooser.helpButton.textAndMnemonic=\u8AAA\u660E(&H) -FileChooser.directoryOpenButton.textAndMnemonic=\u958B\u555F(&O) - -# File Size Units -FileChooser.fileSizeKiloBytes={0} KB -FileChooser.fileSizeMegaBytes={0} MB -FileChooser.fileSizeGigaBytes={0} GB - -# These strings are platform dependent not look and feel dependent. -FileChooser.win32.newFolder=\u65B0\u8CC7\u6599\u593E -FileChooser.win32.newFolder.subsequent=\u65B0\u8CC7\u6599\u593E ({0}) -FileChooser.other.newFolder=\u65B0\u8CC7\u6599\u593E -FileChooser.other.newFolder.subsequent=\u65B0\u8CC7\u6599\u593E.{0} - - -## file chooser tooltips ### -FileChooser.cancelButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u6A94\u6848\u9078\u64C7\u5668\u5C0D\u8A71\u65B9\u584A -FileChooser.saveButtonToolTip.textAndMnemonic=\u5132\u5B58\u9078\u53D6\u7684\u6A94\u6848 -FileChooser.openButtonToolTip.textAndMnemonic=\u958B\u555F\u9078\u53D6\u7684\u6A94\u6848 -FileChooser.updateButtonToolTip.textAndMnemonic=\u66F4\u65B0\u76EE\u9304\u6E05\u55AE -FileChooser.helpButtonToolTip.textAndMnemonic=\u300C\u6A94\u6848\u9078\u64C7\u5668\u300D\u8AAA\u660E -FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u958B\u555F\u9078\u53D6\u7684\u76EE\u9304 - -FileChooser.filesListAccessibleName=Files List -FileChooser.filesDetailsAccessibleName=Files Details - -############ COLOR CHOOSER STRINGS ############# -ColorChooser.preview.textAndMnemonic=\u9810\u89BD -ColorChooser.ok.textAndMnemonic=\u78BA\u5B9A -ColorChooser.cancel.textAndMnemonic=\u53D6\u6D88 -ColorChooser.reset.textAndMnemonic=\u91CD\u8A2D(&R) -ColorChooser.sample.textAndMnemonic=\u7BC4\u4F8B\u6587\u5B57 \u7BC4\u4F8B\u6587\u5B57 -ColorChooser.swatches.textAndMnemonic=\u8ABF\u8272\u677F(&S) -ColorChooser.swatchesRecent.textAndMnemonic=\u6700\u65B0\u9078\u64C7: -ColorChooser.hsv.textAndMnemonic=&HSV -ColorChooser.hsvHue.textAndMnemonic=\u8272\u8ABF -ColorChooser.hsvSaturation.textAndMnemonic=\u5F69\u5EA6 -ColorChooser.hsvValue.textAndMnemonic=\u6578\u503C -ColorChooser.hsvTransparency.textAndMnemonic=\u900F\u660E\u5EA6 -ColorChooser.hsl.textAndMnemonic=HS&L -ColorChooser.hslHue.textAndMnemonic=\u8272\u8ABF -ColorChooser.hslSaturation.textAndMnemonic=\u5F69\u5EA6 -ColorChooser.hslLightness.textAndMnemonic=\u4EAE\u5EA6 -ColorChooser.hslTransparency.textAndMnemonic=\u900F\u660E\u5EA6 -ColorChooser.rgb.textAndMnemonic=R&GB -ColorChooser.rgbRed.textAndMnemonic=\u7D05(&D) -ColorChooser.rgbGreen.textAndMnemonic=\u7DA0(&N) -ColorChooser.rgbBlue.textAndMnemonic=\u85CD(&B) -ColorChooser.rgbAlpha.textAndMnemonic=Alpha -ColorChooser.rgbHexCode.textAndMnemonic=\u984F\u8272\u4EE3\u78BC(&C) -ColorChooser.cmyk.textAndMnemonic=C&MYK -ColorChooser.cmykCyan.textAndMnemonic=\u85CD\u7DA0\u8272 -ColorChooser.cmykMagenta.textAndMnemonic=\u7D2B\u7D05\u8272 -ColorChooser.cmykYellow.textAndMnemonic=\u9EC3\u8272 -ColorChooser.cmykBlack.textAndMnemonic=\u9ED1\u8272 -ColorChooser.cmykAlpha.textAndMnemonic=Alpha - -############ OPTION PANE STRINGS ############# -# We only define mnemonics for YES/NO, but for completeness you can -# define mnemonics for any of the buttons. -OptionPane.yesButton.textAndMnemonic=\u662F(&Y) -OptionPane.noButton.textAndMnemonic=\u5426(&N) -OptionPane.okButton.textAndMnemonic=\u78BA\u5B9A(&O) -OptionPane.cancelButton.textAndMnemonic=\u53D6\u6D88 -OptionPane.title.textAndMnemonic=\u9078\u53D6\u4E00\u500B\u9078\u9805 -# Title for the dialog for the showInputDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.inputDialog.titleAndMnemonic=\u8F38\u5165 -# Title for the dialog for the showMessageDialog methods. Only used if -# the developer uses one of the variants that doesn't take a title. -OptionPane.messageDialog.titleAndMnemonic=\u8A0A\u606F - -############ Printing Dialog Strings ############ -PrintingDialog.titleProgress.textAndMnemonic=\u5217\u5370 -PrintingDialog.titleAborting.textAndMnemonic=\u5217\u5370 (\u4E2D\u6B62) - -PrintingDialog.contentInitial.textAndMnemonic=\u6B63\u5728\u5217\u5370... - -# The following string will be formatted by a MessageFormat -# and {0} will be replaced by page number being printed -PrintingDialog.contentProgress.textAndMnemonic=\u5DF2\u5217\u5370\u7684\u9801\u9762 {0}... - -PrintingDialog.contentAborting.textAndMnemonic=\u6B63\u5728\u4E2D\u6B62\u5217\u5370... - -PrintingDialog.abortButton.textAndMnemonic=\u4E2D\u6B62(&A) -PrintingDialog.abortButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u5217\u5370 - -############ Internal Frame Strings ############ -InternalFrame.iconButtonToolTip=\u6700\u5C0F\u5316 -InternalFrame.maxButtonToolTip=\u6700\u5927\u5316 -InternalFrame.restoreButtonToolTip=\u5FA9\u539F -InternalFrame.closeButtonToolTip=\u95DC\u9589 - -############ Internal Frame Title Pane Strings ############ -InternalFrameTitlePane.restoreButton.textAndMnemonic=\u5FA9\u539F -InternalFrameTitlePane.moveButton.textAndMnemonic=\u79FB\u52D5 -InternalFrameTitlePane.sizeButton.textAndMnemonic=\u5927\u5C0F -InternalFrameTitlePane.minimizeButton.textAndMnemonic=\u6700\u5C0F\u5316 -InternalFrameTitlePane.maximizeButton.textAndMnemonic=\u6700\u5927\u5316 -InternalFrameTitlePane.closeButton.textAndMnemonic=\u95DC\u9589 - -############ Text strings ############# -# Used for html forms -FormView.submitButton.textAndMnemonic=\u9001\u51FA\u67E5\u8A62 -FormView.resetButton.textAndMnemonic=\u91CD\u8A2D -FormView.browseFileButton.textAndMnemonic=\u700F\u89BD... - -############ Abstract Document Strings ############ -AbstractDocument.styleChange.textAndMnemonic=\u6A23\u5F0F\u8B8A\u66F4 -AbstractDocument.addition.textAndMnemonic=\u9644\u52A0 -AbstractDocument.deletion.textAndMnemonic=\u522A\u9664 -AbstractDocument.undo.textAndMnemonic=\u9084\u539F -AbstractDocument.redo.textAndMnemonic=\u91CD\u505A - -############ Abstract Button Strings ############ -AbstractButton.click.textAndMnemonic=\u6309\u4E00\u4E0B - -############ Abstract Undoable Edit Strings ############ -AbstractUndoableEdit.undo.textAndMnemonic=\u9084\u539F -AbstractUndoableEdit.redo.textAndMnemonic=\u91CD\u505A - -############ Combo Box Strings ############ -ComboBox.togglePopup.textAndMnemonic=\u5207\u63DB\u5373\u73FE\u5F0F\u8996\u7A97 - -############ Progress Monitor Strings ############ -ProgressMonitor.progress.textAndMnemonic=\u9032\u5EA6... - -############ Split Pane Strings ############ -SplitPane.leftButton.textAndMnemonic=\u5DE6\u6309\u9215 -SplitPane.rightButton.textAndMnemonic=\u53F3\u6309\u9215 -# Used for Isindex -IsindexView.prompt=\u9019\u662F\u4E00\u500B\u53EF\u641C\u5C0B\u7684\u7D22\u5F15\u3002\u8F38\u5165\u641C\u5C0B\u95DC\u9375\u5B57: - -############ InternalFrameTitlePane Strings ############ -InternalFrameTitlePane.iconifyButtonAccessibleName=\u5716\u793A\u5316 -InternalFrameTitlePane.maximizeButtonAccessibleName=\u6700\u5927\u5316 -InternalFrameTitlePane.closeButtonAccessibleName=\u95DC\u9589 - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used in Swing +# Currently, the following components need this for support: +# +# ColorChooser +# FileChooser +# OptionPane +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# MNEMONIC NOTE: +# Many of strings in this file are used by widgets that have a +# mnemonic, for example: +# ColorChooser.rgbNameTextAndMnemonic=R&GB +# Indicates that the tab in the ColorChooser for RGB colors will have +# the text 'RGB', further the mnemonic character will be 'g' and that +# a decoration will be provided under the 'G'. This will typically +# look like: RGB +# - +# +# One important thing to remember is that the mnemonic MUST exist in +# the String, if it does not exist you should add text that makes it +# exist. This will typically take the form 'XXXX (M)' where M is the +# character for the mnemonic. +# +# @author Steve Wilson + +############ FILE CHOOSER STRINGS ############# +FileChooser.fileDescription.textAndMnemonic=\u4E00\u822C\u6A94\u6848 +FileChooser.directoryDescription.textAndMnemonic=\u76EE\u9304 +FileChooser.newFolderError.textAndMnemonic=\u5EFA\u7ACB\u65B0\u8CC7\u6599\u593E\u6642\u767C\u751F\u932F\u8AA4 +FileChooser.newFolderErrorSeparator= : +FileChooser.newFolderParentDoesntExistTitle.textAndMnemonic=\u7121\u6CD5\u5EFA\u7ACB\u8CC7\u6599\u593E +FileChooser.newFolderParentDoesntExist.textAndMnemonic=\u7121\u6CD5\u5EFA\u7ACB\u8CC7\u6599\u593E\u3002\n\n\u7CFB\u7D71\u627E\u4E0D\u5230\u6307\u5B9A\u7684\u8DEF\u5F91\u3002 +FileChooser.renameErrorTitle.textAndMnemonic=\u91CD\u65B0\u547D\u540D\u6A94\u6848\u6216\u8CC7\u6599\u593E\u6642\u767C\u751F\u932F\u8AA4\u3002 +FileChooser.renameError.textAndMnemonic=\u7121\u6CD5\u91CD\u65B0\u547D\u540D {0} +FileChooser.renameErrorFileExists.textAndMnemonic=\u7121\u6CD5\u91CD\u65B0\u547D\u540D {0}: \u5DF2\u7D93\u5B58\u5728\u60A8\u6240\u6307\u5B9A\u540D\u7A31\u7684\u6A94\u6848\u3002\u8ACB\u6307\u5B9A\u4E0D\u540C\u7684\u540D\u7A31\u3002 +FileChooser.acceptAllFileFilter.textAndMnemonic=\u6240\u6709\u6A94\u6848 +FileChooser.cancelButton.textAndMnemonic=\u53D6\u6D88 +FileChooser.saveButton.textAndMnemonic=\u5132\u5B58(&S) +FileChooser.openButton.textAndMnemonic=\u958B\u555F(&O) +FileChooser.saveDialogTitle.textAndMnemonic=\u5132\u5B58 +FileChooser.openDialogTitle.textAndMnemonic=\u958B\u555F +FileChooser.updateButton.textAndMnemonic=\u66F4\u65B0(&U) +FileChooser.helpButton.textAndMnemonic=\u8AAA\u660E(&H) +FileChooser.directoryOpenButton.textAndMnemonic=\u958B\u555F(&O) + +# File Size Units +FileChooser.fileSizeKiloBytes={0} KB +FileChooser.fileSizeMegaBytes={0} MB +FileChooser.fileSizeGigaBytes={0} GB + +# These strings are platform dependent not look and feel dependent. +FileChooser.win32.newFolder=\u65B0\u8CC7\u6599\u593E +FileChooser.win32.newFolder.subsequent=\u65B0\u8CC7\u6599\u593E ({0}) +FileChooser.other.newFolder=\u65B0\u8CC7\u6599\u593E +FileChooser.other.newFolder.subsequent=\u65B0\u8CC7\u6599\u593E.{0} + + +## file chooser tooltips ### +FileChooser.cancelButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u6A94\u6848\u9078\u64C7\u5668\u5C0D\u8A71\u65B9\u584A +FileChooser.saveButtonToolTip.textAndMnemonic=\u5132\u5B58\u9078\u53D6\u7684\u6A94\u6848 +FileChooser.openButtonToolTip.textAndMnemonic=\u958B\u555F\u9078\u53D6\u7684\u6A94\u6848 +FileChooser.updateButtonToolTip.textAndMnemonic=\u66F4\u65B0\u76EE\u9304\u6E05\u55AE +FileChooser.helpButtonToolTip.textAndMnemonic=\u300C\u6A94\u6848\u9078\u64C7\u5668\u300D\u8AAA\u660E +FileChooser.directoryOpenButtonToolTip.textAndMnemonic=\u958B\u555F\u9078\u53D6\u7684\u76EE\u9304 + +FileChooser.filesListAccessibleName=Files List +FileChooser.filesDetailsAccessibleName=Files Details + +############ COLOR CHOOSER STRINGS ############# +ColorChooser.preview.textAndMnemonic=\u9810\u89BD +ColorChooser.ok.textAndMnemonic=\u78BA\u5B9A +ColorChooser.cancel.textAndMnemonic=\u53D6\u6D88 +ColorChooser.reset.textAndMnemonic=\u91CD\u8A2D(&R) +ColorChooser.sample.textAndMnemonic=\u7BC4\u4F8B\u6587\u5B57 \u7BC4\u4F8B\u6587\u5B57 +ColorChooser.swatches.textAndMnemonic=\u8ABF\u8272\u677F(&S) +ColorChooser.swatchesRecent.textAndMnemonic=\u6700\u65B0\u9078\u64C7: +ColorChooser.hsv.textAndMnemonic=&HSV +ColorChooser.hsvHue.textAndMnemonic=\u8272\u8ABF +ColorChooser.hsvSaturation.textAndMnemonic=\u5F69\u5EA6 +ColorChooser.hsvValue.textAndMnemonic=\u6578\u503C +ColorChooser.hsvTransparency.textAndMnemonic=\u900F\u660E\u5EA6 +ColorChooser.hsl.textAndMnemonic=HS&L +ColorChooser.hslHue.textAndMnemonic=\u8272\u8ABF +ColorChooser.hslSaturation.textAndMnemonic=\u5F69\u5EA6 +ColorChooser.hslLightness.textAndMnemonic=\u4EAE\u5EA6 +ColorChooser.hslTransparency.textAndMnemonic=\u900F\u660E\u5EA6 +ColorChooser.rgb.textAndMnemonic=R&GB +ColorChooser.rgbRed.textAndMnemonic=\u7D05(&D) +ColorChooser.rgbGreen.textAndMnemonic=\u7DA0(&N) +ColorChooser.rgbBlue.textAndMnemonic=\u85CD(&B) +ColorChooser.rgbAlpha.textAndMnemonic=Alpha +ColorChooser.rgbHexCode.textAndMnemonic=\u984F\u8272\u4EE3\u78BC(&C) +ColorChooser.cmyk.textAndMnemonic=C&MYK +ColorChooser.cmykCyan.textAndMnemonic=\u85CD\u7DA0\u8272 +ColorChooser.cmykMagenta.textAndMnemonic=\u7D2B\u7D05\u8272 +ColorChooser.cmykYellow.textAndMnemonic=\u9EC3\u8272 +ColorChooser.cmykBlack.textAndMnemonic=\u9ED1\u8272 +ColorChooser.cmykAlpha.textAndMnemonic=Alpha + +############ OPTION PANE STRINGS ############# +# We only define mnemonics for YES/NO, but for completeness you can +# define mnemonics for any of the buttons. +OptionPane.yesButton.textAndMnemonic=\u662F(&Y) +OptionPane.noButton.textAndMnemonic=\u5426(&N) +OptionPane.okButton.textAndMnemonic=\u78BA\u5B9A(&O) +OptionPane.cancelButton.textAndMnemonic=\u53D6\u6D88 +OptionPane.title.textAndMnemonic=\u9078\u53D6\u4E00\u500B\u9078\u9805 +# Title for the dialog for the showInputDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.inputDialog.titleAndMnemonic=\u8F38\u5165 +# Title for the dialog for the showMessageDialog methods. Only used if +# the developer uses one of the variants that doesn't take a title. +OptionPane.messageDialog.titleAndMnemonic=\u8A0A\u606F + +############ Printing Dialog Strings ############ +PrintingDialog.titleProgress.textAndMnemonic=\u5217\u5370 +PrintingDialog.titleAborting.textAndMnemonic=\u5217\u5370 (\u4E2D\u6B62) + +PrintingDialog.contentInitial.textAndMnemonic=\u6B63\u5728\u5217\u5370... + +# The following string will be formatted by a MessageFormat +# and {0} will be replaced by page number being printed +PrintingDialog.contentProgress.textAndMnemonic=\u5DF2\u5217\u5370\u7684\u9801\u9762 {0}... + +PrintingDialog.contentAborting.textAndMnemonic=\u6B63\u5728\u4E2D\u6B62\u5217\u5370... + +PrintingDialog.abortButton.textAndMnemonic=\u4E2D\u6B62(&A) +PrintingDialog.abortButtonToolTip.textAndMnemonic=\u4E2D\u6B62\u5217\u5370 + +############ Internal Frame Strings ############ +InternalFrame.iconButtonToolTip=\u6700\u5C0F\u5316 +InternalFrame.maxButtonToolTip=\u6700\u5927\u5316 +InternalFrame.restoreButtonToolTip=\u5FA9\u539F +InternalFrame.closeButtonToolTip=\u95DC\u9589 + +############ Internal Frame Title Pane Strings ############ +InternalFrameTitlePane.restoreButton.textAndMnemonic=\u5FA9\u539F +InternalFrameTitlePane.moveButton.textAndMnemonic=\u79FB\u52D5 +InternalFrameTitlePane.sizeButton.textAndMnemonic=\u5927\u5C0F +InternalFrameTitlePane.minimizeButton.textAndMnemonic=\u6700\u5C0F\u5316 +InternalFrameTitlePane.maximizeButton.textAndMnemonic=\u6700\u5927\u5316 +InternalFrameTitlePane.closeButton.textAndMnemonic=\u95DC\u9589 + +############ Text strings ############# +# Used for html forms +FormView.submitButton.textAndMnemonic=\u9001\u51FA\u67E5\u8A62 +FormView.resetButton.textAndMnemonic=\u91CD\u8A2D +FormView.browseFileButton.textAndMnemonic=\u700F\u89BD... + +############ Abstract Document Strings ############ +AbstractDocument.styleChange.textAndMnemonic=\u6A23\u5F0F\u8B8A\u66F4 +AbstractDocument.addition.textAndMnemonic=\u9644\u52A0 +AbstractDocument.deletion.textAndMnemonic=\u522A\u9664 +AbstractDocument.undo.textAndMnemonic=\u9084\u539F +AbstractDocument.redo.textAndMnemonic=\u91CD\u505A + +############ Abstract Button Strings ############ +AbstractButton.click.textAndMnemonic=\u6309\u4E00\u4E0B + +############ Abstract Undoable Edit Strings ############ +AbstractUndoableEdit.undo.textAndMnemonic=\u9084\u539F +AbstractUndoableEdit.redo.textAndMnemonic=\u91CD\u505A + +############ Combo Box Strings ############ +ComboBox.togglePopup.textAndMnemonic=\u5207\u63DB\u5373\u73FE\u5F0F\u8996\u7A97 + +############ Progress Monitor Strings ############ +ProgressMonitor.progress.textAndMnemonic=\u9032\u5EA6... + +############ Split Pane Strings ############ +SplitPane.leftButton.textAndMnemonic=\u5DE6\u6309\u9215 +SplitPane.rightButton.textAndMnemonic=\u53F3\u6309\u9215 +# Used for Isindex +IsindexView.prompt=\u9019\u662F\u4E00\u500B\u53EF\u641C\u5C0B\u7684\u7D22\u5F15\u3002\u8F38\u5165\u641C\u5C0B\u95DC\u9375\u5B57: + +############ InternalFrameTitlePane Strings ############ +InternalFrameTitlePane.iconifyButtonAccessibleName=\u5716\u793A\u5316 +InternalFrameTitlePane.maximizeButtonAccessibleName=\u6700\u5927\u5316 +InternalFrameTitlePane.closeButtonAccessibleName=\u95DC\u9589 + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal.properties index eceaa608636..431d7124fac 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal.properties @@ -1,51 +1,53 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=Look &In: -FileChooser.saveInLabel.textAndMnemonic=Save In: -FileChooser.fileNameLabel.textAndMnemonic=File &Name: -FileChooser.folderNameLabel.textAndMnemonic=Folder &name: -FileChooser.filesOfTypeLabel.textAndMnemonic=Files of &Type: -FileChooser.upFolderToolTip.textAndMnemonic=Up One Level -FileChooser.upFolderAccessibleName=Up -FileChooser.homeFolderToolTip.textAndMnemonic=Home -FileChooser.homeFolderAccessibleName=Home -FileChooser.newFolderToolTip.textAndMnemonic=Create New Folder -FileChooser.newFolderAccessibleName=New Folder -FileChooser.newFolderActionLabel.textAndMnemonic=New Folder -FileChooser.listViewButtonToolTip.textAndMnemonic=List -FileChooser.listViewButtonAccessibleName=List -FileChooser.listViewActionLabel.textAndMnemonic=List -FileChooser.detailsViewButtonToolTip.textAndMnemonic=Details -FileChooser.detailsViewButtonAccessibleName=Details -FileChooser.detailsViewActionLabel.textAndMnemonic=Details -FileChooser.refreshActionLabel.textAndMnemonic=Refresh -FileChooser.viewMenuLabel.textAndMnemonic=View -FileChooser.fileNameHeader.textAndMnemonic=Name -FileChooser.fileSizeHeader.textAndMnemonic=Size -FileChooser.fileTypeHeader.textAndMnemonic=Type -FileChooser.fileDateHeader.textAndMnemonic=Modified -FileChooser.fileAttrHeader.textAndMnemonic=Attributes - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=&Restore -MetalTitlePane.iconify.titleAndMnemonic=Minimiz&e -MetalTitlePane.maximize.titleAndMnemonic=Ma&ximize -MetalTitlePane.close.titleAndMnemonic=&Close +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=Look &In: +FileChooser.saveInLabel.textAndMnemonic=Save In: +FileChooser.fileNameLabel.textAndMnemonic=File &Name: +FileChooser.folderNameLabel.textAndMnemonic=Folder &name: +FileChooser.filesOfTypeLabel.textAndMnemonic=Files of &Type: +FileChooser.upFolderToolTip.textAndMnemonic=Up One Level +FileChooser.upFolderAccessibleName=Up +FileChooser.homeFolderToolTip.textAndMnemonic=Home +FileChooser.homeFolderAccessibleName=Home +FileChooser.newFolderToolTip.textAndMnemonic=Create New Folder +FileChooser.newFolderAccessibleName=New Folder +FileChooser.newFolderActionLabel.textAndMnemonic=New Folder +FileChooser.listViewButtonToolTip.textAndMnemonic=List +FileChooser.listViewButtonAccessibleName=List +FileChooser.listViewActionLabel.textAndMnemonic=List +FileChooser.detailsViewButtonToolTip.textAndMnemonic=Details +FileChooser.detailsViewButtonAccessibleName=Details +FileChooser.detailsViewActionLabel.textAndMnemonic=Details +FileChooser.refreshActionLabel.textAndMnemonic=Refresh +FileChooser.viewMenuLabel.textAndMnemonic=View +FileChooser.fileNameHeader.textAndMnemonic=Name +FileChooser.fileSizeHeader.textAndMnemonic=Size +FileChooser.fileTypeHeader.textAndMnemonic=Type +FileChooser.fileDateHeader.textAndMnemonic=Modified +FileChooser.fileAttrHeader.textAndMnemonic=Attributes +FileChooser.saveButton.textAndMnemonic=Save +FileChooser.openButton.textAndMnemonic=Open + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=&Restore +MetalTitlePane.iconify.titleAndMnemonic=Minimiz&e +MetalTitlePane.maximize.titleAndMnemonic=Ma&ximize +MetalTitlePane.close.titleAndMnemonic=&Close diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_de.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_de.properties index cb8f07ee55c..f82eb79cecd 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_de.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_de.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=Suchen &in: -FileChooser.saveInLabel.textAndMnemonic=Speichern in: -FileChooser.fileNameLabel.textAndMnemonic=Datei&name: -FileChooser.folderNameLabel.textAndMnemonic=Ord&nername: -FileChooser.filesOfTypeLabel.textAndMnemonic=Da&teityp: -FileChooser.upFolderToolTip.textAndMnemonic=Eine Ebene h\u00F6her -FileChooser.upFolderAccessibleName=Nach oben -FileChooser.homeFolderToolTip.textAndMnemonic=Home -FileChooser.homeFolderAccessibleName=Home -FileChooser.newFolderToolTip.textAndMnemonic=Neuen Ordner erstellen -FileChooser.newFolderAccessibleName=Neuer Ordner -FileChooser.newFolderActionLabel.textAndMnemonic=Neuer Ordner -FileChooser.listViewButtonToolTip.textAndMnemonic=Liste -FileChooser.listViewButtonAccessibleName=Liste -FileChooser.listViewActionLabel.textAndMnemonic=Liste -FileChooser.detailsViewButtonToolTip.textAndMnemonic=Details -FileChooser.detailsViewButtonAccessibleName=Details -FileChooser.detailsViewActionLabel.textAndMnemonic=Details -FileChooser.refreshActionLabel.textAndMnemonic=Aktualisieren -FileChooser.viewMenuLabel.textAndMnemonic=Ansicht -FileChooser.fileNameHeader.textAndMnemonic=Name -FileChooser.fileSizeHeader.textAndMnemonic=Gr\u00F6\u00DFe -FileChooser.fileTypeHeader.textAndMnemonic=Typ -FileChooser.fileDateHeader.textAndMnemonic=Ge\u00E4ndert -FileChooser.fileAttrHeader.textAndMnemonic=Attribute - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=&Wiederherstellen -MetalTitlePane.iconify.titleAndMnemonic=Minimie&ren -MetalTitlePane.maximize.titleAndMnemonic=Ma&ximieren -MetalTitlePane.close.titleAndMnemonic=Schlie\u00DFen(&S) - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=Suchen &in: +FileChooser.saveInLabel.textAndMnemonic=Speichern in: +FileChooser.fileNameLabel.textAndMnemonic=Datei&name: +FileChooser.folderNameLabel.textAndMnemonic=Ord&nername: +FileChooser.filesOfTypeLabel.textAndMnemonic=Da&teityp: +FileChooser.upFolderToolTip.textAndMnemonic=Eine Ebene h\u00F6her +FileChooser.upFolderAccessibleName=Nach oben +FileChooser.homeFolderToolTip.textAndMnemonic=Home +FileChooser.homeFolderAccessibleName=Home +FileChooser.newFolderToolTip.textAndMnemonic=Neuen Ordner erstellen +FileChooser.newFolderAccessibleName=Neuer Ordner +FileChooser.newFolderActionLabel.textAndMnemonic=Neuer Ordner +FileChooser.listViewButtonToolTip.textAndMnemonic=Liste +FileChooser.listViewButtonAccessibleName=Liste +FileChooser.listViewActionLabel.textAndMnemonic=Liste +FileChooser.detailsViewButtonToolTip.textAndMnemonic=Details +FileChooser.detailsViewButtonAccessibleName=Details +FileChooser.detailsViewActionLabel.textAndMnemonic=Details +FileChooser.refreshActionLabel.textAndMnemonic=Aktualisieren +FileChooser.viewMenuLabel.textAndMnemonic=Ansicht +FileChooser.fileNameHeader.textAndMnemonic=Name +FileChooser.fileSizeHeader.textAndMnemonic=Gr\u00F6\u00DFe +FileChooser.fileTypeHeader.textAndMnemonic=Typ +FileChooser.fileDateHeader.textAndMnemonic=Ge\u00E4ndert +FileChooser.fileAttrHeader.textAndMnemonic=Attribute +FileChooser.saveButton.textAndMnemonic=Speichern +FileChooser.openButton.textAndMnemonic=\u00D6ffnen + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=&Wiederherstellen +MetalTitlePane.iconify.titleAndMnemonic=Minimie&ren +MetalTitlePane.maximize.titleAndMnemonic=Ma&ximieren +MetalTitlePane.close.titleAndMnemonic=Schlie\u00DFen(&S) + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_es.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_es.properties index 16d3a3db0f3..d555de1274d 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_es.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_es.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=Buscar en(&I): -FileChooser.saveInLabel.textAndMnemonic=Guardar en: -FileChooser.fileNameLabel.textAndMnemonic=&Nombre de Archivo: -FileChooser.folderNameLabel.textAndMnemonic=&Nombre de la Carpeta: -FileChooser.filesOfTypeLabel.textAndMnemonic=Archivos de &Tipo: -FileChooser.upFolderToolTip.textAndMnemonic=Subir un Nivel -FileChooser.upFolderAccessibleName=Arriba -FileChooser.homeFolderToolTip.textAndMnemonic=Inicio -FileChooser.homeFolderAccessibleName=Inicio -FileChooser.newFolderToolTip.textAndMnemonic=Crear Nueva Carpeta -FileChooser.newFolderAccessibleName=Nueva Carpeta -FileChooser.newFolderActionLabel.textAndMnemonic=Nueva Carpeta -FileChooser.listViewButtonToolTip.textAndMnemonic=Lista -FileChooser.listViewButtonAccessibleName=Lista -FileChooser.listViewActionLabel.textAndMnemonic=Lista -FileChooser.detailsViewButtonToolTip.textAndMnemonic=Detalles -FileChooser.detailsViewButtonAccessibleName=Detalles -FileChooser.detailsViewActionLabel.textAndMnemonic=Detalles -FileChooser.refreshActionLabel.textAndMnemonic=Refrescar -FileChooser.viewMenuLabel.textAndMnemonic=Ver -FileChooser.fileNameHeader.textAndMnemonic=Nombre -FileChooser.fileSizeHeader.textAndMnemonic=Tama\u00F1o -FileChooser.fileTypeHeader.textAndMnemonic=Tipo -FileChooser.fileDateHeader.textAndMnemonic=Modificado -FileChooser.fileAttrHeader.textAndMnemonic=Atributos - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=&Restaurar -MetalTitlePane.iconify.titleAndMnemonic=Minimi&zar -MetalTitlePane.maximize.titleAndMnemonic=Ma&ximizar -MetalTitlePane.close.titleAndMnemonic=&Cerrar - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=Buscar en(&I): +FileChooser.saveInLabel.textAndMnemonic=Guardar en: +FileChooser.fileNameLabel.textAndMnemonic=&Nombre de Archivo: +FileChooser.folderNameLabel.textAndMnemonic=&Nombre de la Carpeta: +FileChooser.filesOfTypeLabel.textAndMnemonic=Archivos de &Tipo: +FileChooser.upFolderToolTip.textAndMnemonic=Subir un Nivel +FileChooser.upFolderAccessibleName=Arriba +FileChooser.homeFolderToolTip.textAndMnemonic=Inicio +FileChooser.homeFolderAccessibleName=Inicio +FileChooser.newFolderToolTip.textAndMnemonic=Crear Nueva Carpeta +FileChooser.newFolderAccessibleName=Nueva Carpeta +FileChooser.newFolderActionLabel.textAndMnemonic=Nueva Carpeta +FileChooser.listViewButtonToolTip.textAndMnemonic=Lista +FileChooser.listViewButtonAccessibleName=Lista +FileChooser.listViewActionLabel.textAndMnemonic=Lista +FileChooser.detailsViewButtonToolTip.textAndMnemonic=Detalles +FileChooser.detailsViewButtonAccessibleName=Detalles +FileChooser.detailsViewActionLabel.textAndMnemonic=Detalles +FileChooser.refreshActionLabel.textAndMnemonic=Refrescar +FileChooser.viewMenuLabel.textAndMnemonic=Ver +FileChooser.fileNameHeader.textAndMnemonic=Nombre +FileChooser.fileSizeHeader.textAndMnemonic=Tama\u00F1o +FileChooser.fileTypeHeader.textAndMnemonic=Tipo +FileChooser.fileDateHeader.textAndMnemonic=Modificado +FileChooser.fileAttrHeader.textAndMnemonic=Atributos +FileChooser.saveButton.textAndMnemonic=Guardar +FileChooser.openButton.textAndMnemonic=Abrir + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=&Restaurar +MetalTitlePane.iconify.titleAndMnemonic=Minimi&zar +MetalTitlePane.maximize.titleAndMnemonic=Ma&ximizar +MetalTitlePane.close.titleAndMnemonic=&Cerrar + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_fr.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_fr.properties index aed395ef647..9f9267be76c 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_fr.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_fr.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=Rechercher dans (&I): -FileChooser.saveInLabel.textAndMnemonic=Enregistrer dans : -FileChooser.fileNameLabel.textAndMnemonic=&Nom du fichier : -FileChooser.folderNameLabel.textAndMnemonic=&Nom du dossier : -FileChooser.filesOfTypeLabel.textAndMnemonic=Fichiers de &type : -FileChooser.upFolderToolTip.textAndMnemonic=Remonte d'un niveau. -FileChooser.upFolderAccessibleName=Monter -FileChooser.homeFolderToolTip.textAndMnemonic=R\u00E9pertoire d'origine -FileChooser.homeFolderAccessibleName=R\u00E9pertoire d'origine -FileChooser.newFolderToolTip.textAndMnemonic=Cr\u00E9e un dossier. -FileChooser.newFolderAccessibleName=Nouveau dossier -FileChooser.newFolderActionLabel.textAndMnemonic=Nouveau dossier -FileChooser.listViewButtonToolTip.textAndMnemonic=Liste -FileChooser.listViewButtonAccessibleName=Liste -FileChooser.listViewActionLabel.textAndMnemonic=Liste -FileChooser.detailsViewButtonToolTip.textAndMnemonic=D\u00E9tails -FileChooser.detailsViewButtonAccessibleName=D\u00E9tails -FileChooser.detailsViewActionLabel.textAndMnemonic=D\u00E9tails -FileChooser.refreshActionLabel.textAndMnemonic=Actualiser -FileChooser.viewMenuLabel.textAndMnemonic=Affichage -FileChooser.fileNameHeader.textAndMnemonic=Nom -FileChooser.fileSizeHeader.textAndMnemonic=Taille -FileChooser.fileTypeHeader.textAndMnemonic=Type -FileChooser.fileDateHeader.textAndMnemonic=Modifi\u00E9 -FileChooser.fileAttrHeader.textAndMnemonic=Attributs - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=&Restaurer -MetalTitlePane.iconify.titleAndMnemonic=R\u00E9duire(&D) -MetalTitlePane.maximize.titleAndMnemonic=&Agrandir -MetalTitlePane.close.titleAndMnemonic=&Fermer - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=Rechercher dans (&I): +FileChooser.saveInLabel.textAndMnemonic=Enregistrer dans : +FileChooser.fileNameLabel.textAndMnemonic=&Nom du fichier : +FileChooser.folderNameLabel.textAndMnemonic=&Nom du dossier : +FileChooser.filesOfTypeLabel.textAndMnemonic=Fichiers de &type : +FileChooser.upFolderToolTip.textAndMnemonic=Remonte d'un niveau. +FileChooser.upFolderAccessibleName=Monter +FileChooser.homeFolderToolTip.textAndMnemonic=R\u00E9pertoire d'origine +FileChooser.homeFolderAccessibleName=R\u00E9pertoire d'origine +FileChooser.newFolderToolTip.textAndMnemonic=Cr\u00E9e un dossier. +FileChooser.newFolderAccessibleName=Nouveau dossier +FileChooser.newFolderActionLabel.textAndMnemonic=Nouveau dossier +FileChooser.listViewButtonToolTip.textAndMnemonic=Liste +FileChooser.listViewButtonAccessibleName=Liste +FileChooser.listViewActionLabel.textAndMnemonic=Liste +FileChooser.detailsViewButtonToolTip.textAndMnemonic=D\u00E9tails +FileChooser.detailsViewButtonAccessibleName=D\u00E9tails +FileChooser.detailsViewActionLabel.textAndMnemonic=D\u00E9tails +FileChooser.refreshActionLabel.textAndMnemonic=Actualiser +FileChooser.viewMenuLabel.textAndMnemonic=Affichage +FileChooser.fileNameHeader.textAndMnemonic=Nom +FileChooser.fileSizeHeader.textAndMnemonic=Taille +FileChooser.fileTypeHeader.textAndMnemonic=Type +FileChooser.fileDateHeader.textAndMnemonic=Modifi\u00E9 +FileChooser.fileAttrHeader.textAndMnemonic=Attributs +FileChooser.saveButton.textAndMnemonic=Enregistrer +FileChooser.openButton.textAndMnemonic=Ouvrir + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=&Restaurer +MetalTitlePane.iconify.titleAndMnemonic=R\u00E9duire(&D) +MetalTitlePane.maximize.titleAndMnemonic=&Agrandir +MetalTitlePane.close.titleAndMnemonic=&Fermer + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_it.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_it.properties index 83dadeae3b9..35b605fcd81 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_it.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_it.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=Cerca &in: -FileChooser.saveInLabel.textAndMnemonic=Salva in: -FileChooser.fileNameLabel.textAndMnemonic=&Nome file: -FileChooser.folderNameLabel.textAndMnemonic=&Nome della cartella: -FileChooser.filesOfTypeLabel.textAndMnemonic=&Tipo file: -FileChooser.upFolderToolTip.textAndMnemonic=Cartella superiore -FileChooser.upFolderAccessibleName=Superiore -FileChooser.homeFolderToolTip.textAndMnemonic=Home -FileChooser.homeFolderAccessibleName=Home -FileChooser.newFolderToolTip.textAndMnemonic=Crea nuova cartella -FileChooser.newFolderAccessibleName=Nuova cartella -FileChooser.newFolderActionLabel.textAndMnemonic=Nuova cartella -FileChooser.listViewButtonToolTip.textAndMnemonic=Lista -FileChooser.listViewButtonAccessibleName=Lista -FileChooser.listViewActionLabel.textAndMnemonic=Lista -FileChooser.detailsViewButtonToolTip.textAndMnemonic=Dettagli -FileChooser.detailsViewButtonAccessibleName=Dettagli -FileChooser.detailsViewActionLabel.textAndMnemonic=Dettagli -FileChooser.refreshActionLabel.textAndMnemonic=Aggiorna -FileChooser.viewMenuLabel.textAndMnemonic=Visualizza -FileChooser.fileNameHeader.textAndMnemonic=Nome -FileChooser.fileSizeHeader.textAndMnemonic=Dimensioni -FileChooser.fileTypeHeader.textAndMnemonic=Tipo -FileChooser.fileDateHeader.textAndMnemonic=Modificato -FileChooser.fileAttrHeader.textAndMnemonic=Attributi - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=&Ripristina -MetalTitlePane.iconify.titleAndMnemonic=Rid&uci a icona -MetalTitlePane.maximize.titleAndMnemonic=In&grandisci -MetalTitlePane.close.titleAndMnemonic=&Chiudi - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=Cerca &in: +FileChooser.saveInLabel.textAndMnemonic=Salva in: +FileChooser.fileNameLabel.textAndMnemonic=&Nome file: +FileChooser.folderNameLabel.textAndMnemonic=&Nome della cartella: +FileChooser.filesOfTypeLabel.textAndMnemonic=&Tipo file: +FileChooser.upFolderToolTip.textAndMnemonic=Cartella superiore +FileChooser.upFolderAccessibleName=Superiore +FileChooser.homeFolderToolTip.textAndMnemonic=Home +FileChooser.homeFolderAccessibleName=Home +FileChooser.newFolderToolTip.textAndMnemonic=Crea nuova cartella +FileChooser.newFolderAccessibleName=Nuova cartella +FileChooser.newFolderActionLabel.textAndMnemonic=Nuova cartella +FileChooser.listViewButtonToolTip.textAndMnemonic=Lista +FileChooser.listViewButtonAccessibleName=Lista +FileChooser.listViewActionLabel.textAndMnemonic=Lista +FileChooser.detailsViewButtonToolTip.textAndMnemonic=Dettagli +FileChooser.detailsViewButtonAccessibleName=Dettagli +FileChooser.detailsViewActionLabel.textAndMnemonic=Dettagli +FileChooser.refreshActionLabel.textAndMnemonic=Aggiorna +FileChooser.viewMenuLabel.textAndMnemonic=Visualizza +FileChooser.fileNameHeader.textAndMnemonic=Nome +FileChooser.fileSizeHeader.textAndMnemonic=Dimensioni +FileChooser.fileTypeHeader.textAndMnemonic=Tipo +FileChooser.fileDateHeader.textAndMnemonic=Modificato +FileChooser.fileAttrHeader.textAndMnemonic=Attributi +FileChooser.saveButton.textAndMnemonic=Salva +FileChooser.openButton.textAndMnemonic=Apri + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=&Ripristina +MetalTitlePane.iconify.titleAndMnemonic=Rid&uci a icona +MetalTitlePane.maximize.titleAndMnemonic=In&grandisci +MetalTitlePane.close.titleAndMnemonic=&Chiudi + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ja.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ja.properties index 51e2a47b5f7..7a8f6b9f774 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ja.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ja.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=\u53C2\u7167(&I): -FileChooser.saveInLabel.textAndMnemonic=\u4FDD\u5B58: -FileChooser.fileNameLabel.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u540D(&N): -FileChooser.folderNameLabel.textAndMnemonic=\u30D5\u30A9\u30EB\u30C0\u540D(&N): -FileChooser.filesOfTypeLabel.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u306E\u30BF\u30A4\u30D7(&T): -FileChooser.upFolderToolTip.textAndMnemonic=1\u30EC\u30D9\u30EB\u4E0A\u3078 -FileChooser.upFolderAccessibleName=\u4E0A\u3078 -FileChooser.homeFolderToolTip.textAndMnemonic=\u30DB\u30FC\u30E0 -FileChooser.homeFolderAccessibleName=\u30DB\u30FC\u30E0 -FileChooser.newFolderToolTip.textAndMnemonic=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0\u306E\u4F5C\u6210 -FileChooser.newFolderAccessibleName=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 -FileChooser.newFolderActionLabel.textAndMnemonic=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 -FileChooser.listViewButtonToolTip.textAndMnemonic=\u30EA\u30B9\u30C8 -FileChooser.listViewButtonAccessibleName=\u30EA\u30B9\u30C8 -FileChooser.listViewActionLabel.textAndMnemonic=\u30EA\u30B9\u30C8 -FileChooser.detailsViewButtonToolTip.textAndMnemonic=\u8A73\u7D30 -FileChooser.detailsViewButtonAccessibleName=\u8A73\u7D30 -FileChooser.detailsViewActionLabel.textAndMnemonic=\u8A73\u7D30 -FileChooser.refreshActionLabel.textAndMnemonic=\u30EA\u30D5\u30EC\u30C3\u30B7\u30E5 -FileChooser.viewMenuLabel.textAndMnemonic=\u8868\u793A -FileChooser.fileNameHeader.textAndMnemonic=\u540D\u524D -FileChooser.fileSizeHeader.textAndMnemonic=\u30B5\u30A4\u30BA -FileChooser.fileTypeHeader.textAndMnemonic=\u30BF\u30A4\u30D7 -FileChooser.fileDateHeader.textAndMnemonic=\u4FEE\u6B63\u65E5 -FileChooser.fileAttrHeader.textAndMnemonic=\u5C5E\u6027 - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=\u5FA9\u5143(&R) -MetalTitlePane.iconify.titleAndMnemonic=\u6700\u5C0F\u5316(&E) -MetalTitlePane.maximize.titleAndMnemonic=\u6700\u5927\u5316(&X) -MetalTitlePane.close.titleAndMnemonic=\u9589\u3058\u308B(&C) - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=\u53C2\u7167(&I): +FileChooser.saveInLabel.textAndMnemonic=\u4FDD\u5B58: +FileChooser.fileNameLabel.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u540D(&N): +FileChooser.folderNameLabel.textAndMnemonic=\u30D5\u30A9\u30EB\u30C0\u540D(&N): +FileChooser.filesOfTypeLabel.textAndMnemonic=\u30D5\u30A1\u30A4\u30EB\u306E\u30BF\u30A4\u30D7(&T): +FileChooser.upFolderToolTip.textAndMnemonic=1\u30EC\u30D9\u30EB\u4E0A\u3078 +FileChooser.upFolderAccessibleName=\u4E0A\u3078 +FileChooser.homeFolderToolTip.textAndMnemonic=\u30DB\u30FC\u30E0 +FileChooser.homeFolderAccessibleName=\u30DB\u30FC\u30E0 +FileChooser.newFolderToolTip.textAndMnemonic=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0\u306E\u4F5C\u6210 +FileChooser.newFolderAccessibleName=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 +FileChooser.newFolderActionLabel.textAndMnemonic=\u65B0\u898F\u30D5\u30A9\u30EB\u30C0 +FileChooser.listViewButtonToolTip.textAndMnemonic=\u30EA\u30B9\u30C8 +FileChooser.listViewButtonAccessibleName=\u30EA\u30B9\u30C8 +FileChooser.listViewActionLabel.textAndMnemonic=\u30EA\u30B9\u30C8 +FileChooser.detailsViewButtonToolTip.textAndMnemonic=\u8A73\u7D30 +FileChooser.detailsViewButtonAccessibleName=\u8A73\u7D30 +FileChooser.detailsViewActionLabel.textAndMnemonic=\u8A73\u7D30 +FileChooser.refreshActionLabel.textAndMnemonic=\u30EA\u30D5\u30EC\u30C3\u30B7\u30E5 +FileChooser.viewMenuLabel.textAndMnemonic=\u8868\u793A +FileChooser.fileNameHeader.textAndMnemonic=\u540D\u524D +FileChooser.fileSizeHeader.textAndMnemonic=\u30B5\u30A4\u30BA +FileChooser.fileTypeHeader.textAndMnemonic=\u30BF\u30A4\u30D7 +FileChooser.fileDateHeader.textAndMnemonic=\u4FEE\u6B63\u65E5 +FileChooser.fileAttrHeader.textAndMnemonic=\u5C5E\u6027 +FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58 +FileChooser.openButton.textAndMnemonic=\u958B\u304F + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=\u5FA9\u5143(&R) +MetalTitlePane.iconify.titleAndMnemonic=\u6700\u5C0F\u5316(&E) +MetalTitlePane.maximize.titleAndMnemonic=\u6700\u5927\u5316(&X) +MetalTitlePane.close.titleAndMnemonic=\u9589\u3058\u308B(&C) + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ko.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ko.properties index af433f5401b..cf8e9bd2361 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ko.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_ko.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=\uAC80\uC0C9 \uC704\uCE58(&I): -FileChooser.saveInLabel.textAndMnemonic=\uC800\uC7A5 \uC704\uCE58: -FileChooser.fileNameLabel.textAndMnemonic=\uD30C\uC77C \uC774\uB984(&N): -FileChooser.folderNameLabel.textAndMnemonic=\uD3F4\uB354 \uC774\uB984(&N): -FileChooser.filesOfTypeLabel.textAndMnemonic=\uD30C\uC77C \uC720\uD615(&T): -FileChooser.upFolderToolTip.textAndMnemonic=\uD55C \uB808\uBCA8 \uC704\uB85C -FileChooser.upFolderAccessibleName=\uC704\uB85C -FileChooser.homeFolderToolTip.textAndMnemonic=\uD648 -FileChooser.homeFolderAccessibleName=\uD648 -FileChooser.newFolderToolTip.textAndMnemonic=\uC0C8 \uD3F4\uB354 \uC0DD\uC131 -FileChooser.newFolderAccessibleName=\uC0C8 \uD3F4\uB354 -FileChooser.newFolderActionLabel.textAndMnemonic=\uC0C8 \uD3F4\uB354 -FileChooser.listViewButtonToolTip.textAndMnemonic=\uBAA9\uB85D -FileChooser.listViewButtonAccessibleName=\uBAA9\uB85D -FileChooser.listViewActionLabel.textAndMnemonic=\uBAA9\uB85D -FileChooser.detailsViewButtonToolTip.textAndMnemonic=\uC138\uBD80 \uC815\uBCF4 -FileChooser.detailsViewButtonAccessibleName=\uC138\uBD80 \uC815\uBCF4 -FileChooser.detailsViewActionLabel.textAndMnemonic=\uC138\uBD80 \uC815\uBCF4 -FileChooser.refreshActionLabel.textAndMnemonic=\uC0C8\uB85C \uACE0\uCE68 -FileChooser.viewMenuLabel.textAndMnemonic=\uBCF4\uAE30 -FileChooser.fileNameHeader.textAndMnemonic=\uC774\uB984 -FileChooser.fileSizeHeader.textAndMnemonic=\uD06C\uAE30 -FileChooser.fileTypeHeader.textAndMnemonic=\uC720\uD615 -FileChooser.fileDateHeader.textAndMnemonic=\uC218\uC815 \uB0A0\uC9DC -FileChooser.fileAttrHeader.textAndMnemonic=\uC18D\uC131 - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=\uBCF5\uC6D0(&R) -MetalTitlePane.iconify.titleAndMnemonic=\uCD5C\uC18C\uD654(&E) -MetalTitlePane.maximize.titleAndMnemonic=\uCD5C\uB300\uD654(&X) -MetalTitlePane.close.titleAndMnemonic=\uB2EB\uAE30(&C) - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=\uAC80\uC0C9 \uC704\uCE58(&I): +FileChooser.saveInLabel.textAndMnemonic=\uC800\uC7A5 \uC704\uCE58: +FileChooser.fileNameLabel.textAndMnemonic=\uD30C\uC77C \uC774\uB984(&N): +FileChooser.folderNameLabel.textAndMnemonic=\uD3F4\uB354 \uC774\uB984(&N): +FileChooser.filesOfTypeLabel.textAndMnemonic=\uD30C\uC77C \uC720\uD615(&T): +FileChooser.upFolderToolTip.textAndMnemonic=\uD55C \uB808\uBCA8 \uC704\uB85C +FileChooser.upFolderAccessibleName=\uC704\uB85C +FileChooser.homeFolderToolTip.textAndMnemonic=\uD648 +FileChooser.homeFolderAccessibleName=\uD648 +FileChooser.newFolderToolTip.textAndMnemonic=\uC0C8 \uD3F4\uB354 \uC0DD\uC131 +FileChooser.newFolderAccessibleName=\uC0C8 \uD3F4\uB354 +FileChooser.newFolderActionLabel.textAndMnemonic=\uC0C8 \uD3F4\uB354 +FileChooser.listViewButtonToolTip.textAndMnemonic=\uBAA9\uB85D +FileChooser.listViewButtonAccessibleName=\uBAA9\uB85D +FileChooser.listViewActionLabel.textAndMnemonic=\uBAA9\uB85D +FileChooser.detailsViewButtonToolTip.textAndMnemonic=\uC138\uBD80 \uC815\uBCF4 +FileChooser.detailsViewButtonAccessibleName=\uC138\uBD80 \uC815\uBCF4 +FileChooser.detailsViewActionLabel.textAndMnemonic=\uC138\uBD80 \uC815\uBCF4 +FileChooser.refreshActionLabel.textAndMnemonic=\uC0C8\uB85C \uACE0\uCE68 +FileChooser.viewMenuLabel.textAndMnemonic=\uBCF4\uAE30 +FileChooser.fileNameHeader.textAndMnemonic=\uC774\uB984 +FileChooser.fileSizeHeader.textAndMnemonic=\uD06C\uAE30 +FileChooser.fileTypeHeader.textAndMnemonic=\uC720\uD615 +FileChooser.fileDateHeader.textAndMnemonic=\uC218\uC815 \uB0A0\uC9DC +FileChooser.fileAttrHeader.textAndMnemonic=\uC18D\uC131 +FileChooser.saveButton.textAndMnemonic=\uC800\uC7A5 +FileChooser.openButton.textAndMnemonic=\uC5F4\uAE30 + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=\uBCF5\uC6D0(&R) +MetalTitlePane.iconify.titleAndMnemonic=\uCD5C\uC18C\uD654(&E) +MetalTitlePane.maximize.titleAndMnemonic=\uCD5C\uB300\uD654(&X) +MetalTitlePane.close.titleAndMnemonic=\uB2EB\uAE30(&C) + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_pt_BR.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_pt_BR.properties index 81d1813dea5..40525c82c8f 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_pt_BR.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_pt_BR.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=Consultar Em(&I): -FileChooser.saveInLabel.textAndMnemonic=Salvar Em: -FileChooser.fileNameLabel.textAndMnemonic=&Nome do Arquivo: -FileChooser.folderNameLabel.textAndMnemonic=&Nome da pasta: -FileChooser.filesOfTypeLabel.textAndMnemonic=Arquivos do &Tipo: -FileChooser.upFolderToolTip.textAndMnemonic=Um N\u00EDvel Acima -FileChooser.upFolderAccessibleName=Acima -FileChooser.homeFolderToolTip.textAndMnemonic=In\u00EDcio -FileChooser.homeFolderAccessibleName=In\u00EDcio -FileChooser.newFolderToolTip.textAndMnemonic=Criar Nova Pasta -FileChooser.newFolderAccessibleName=Nova Pasta -FileChooser.newFolderActionLabel.textAndMnemonic=Nova Pasta -FileChooser.listViewButtonToolTip.textAndMnemonic=Lista -FileChooser.listViewButtonAccessibleName=Lista -FileChooser.listViewActionLabel.textAndMnemonic=Lista -FileChooser.detailsViewButtonToolTip.textAndMnemonic=Detalhes -FileChooser.detailsViewButtonAccessibleName=Detalhes -FileChooser.detailsViewActionLabel.textAndMnemonic=Detalhes -FileChooser.refreshActionLabel.textAndMnemonic=Atualizar -FileChooser.viewMenuLabel.textAndMnemonic=Exibir -FileChooser.fileNameHeader.textAndMnemonic=Nome -FileChooser.fileSizeHeader.textAndMnemonic=Tamanho -FileChooser.fileTypeHeader.textAndMnemonic=Tipo -FileChooser.fileDateHeader.textAndMnemonic=Modificado -FileChooser.fileAttrHeader.textAndMnemonic=Atributos - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=&Restaurar -MetalTitlePane.iconify.titleAndMnemonic=&Minimizar -MetalTitlePane.maximize.titleAndMnemonic=Ma&ximizar -MetalTitlePane.close.titleAndMnemonic=&Fechar - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=Consultar Em(&I): +FileChooser.saveInLabel.textAndMnemonic=Salvar Em: +FileChooser.fileNameLabel.textAndMnemonic=&Nome do Arquivo: +FileChooser.folderNameLabel.textAndMnemonic=&Nome da pasta: +FileChooser.filesOfTypeLabel.textAndMnemonic=Arquivos do &Tipo: +FileChooser.upFolderToolTip.textAndMnemonic=Um N\u00EDvel Acima +FileChooser.upFolderAccessibleName=Acima +FileChooser.homeFolderToolTip.textAndMnemonic=In\u00EDcio +FileChooser.homeFolderAccessibleName=In\u00EDcio +FileChooser.newFolderToolTip.textAndMnemonic=Criar Nova Pasta +FileChooser.newFolderAccessibleName=Nova Pasta +FileChooser.newFolderActionLabel.textAndMnemonic=Nova Pasta +FileChooser.listViewButtonToolTip.textAndMnemonic=Lista +FileChooser.listViewButtonAccessibleName=Lista +FileChooser.listViewActionLabel.textAndMnemonic=Lista +FileChooser.detailsViewButtonToolTip.textAndMnemonic=Detalhes +FileChooser.detailsViewButtonAccessibleName=Detalhes +FileChooser.detailsViewActionLabel.textAndMnemonic=Detalhes +FileChooser.refreshActionLabel.textAndMnemonic=Atualizar +FileChooser.viewMenuLabel.textAndMnemonic=Exibir +FileChooser.fileNameHeader.textAndMnemonic=Nome +FileChooser.fileSizeHeader.textAndMnemonic=Tamanho +FileChooser.fileTypeHeader.textAndMnemonic=Tipo +FileChooser.fileDateHeader.textAndMnemonic=Modificado +FileChooser.fileAttrHeader.textAndMnemonic=Atributos +FileChooser.saveButton.textAndMnemonic=Salvar +FileChooser.openButton.textAndMnemonic=Abrir + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=&Restaurar +MetalTitlePane.iconify.titleAndMnemonic=&Minimizar +MetalTitlePane.maximize.titleAndMnemonic=Ma&ximizar +MetalTitlePane.close.titleAndMnemonic=&Fechar + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_sv.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_sv.properties index 9caa9619969..0326f0558b5 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_sv.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_sv.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=Leta &i: -FileChooser.saveInLabel.textAndMnemonic=Spara i: -FileChooser.fileNameLabel.textAndMnemonic=Fil&namn: -FileChooser.folderNameLabel.textAndMnemonic=Mapp(&N): -FileChooser.filesOfTypeLabel.textAndMnemonic=Filforma&t: -FileChooser.upFolderToolTip.textAndMnemonic=Upp en niv\u00E5 -FileChooser.upFolderAccessibleName=Upp -FileChooser.homeFolderToolTip.textAndMnemonic=Hem -FileChooser.homeFolderAccessibleName=Hem -FileChooser.newFolderToolTip.textAndMnemonic=Skapa ny mapp -FileChooser.newFolderAccessibleName=Ny mapp -FileChooser.newFolderActionLabel.textAndMnemonic=Ny mapp -FileChooser.listViewButtonToolTip.textAndMnemonic=Lista -FileChooser.listViewButtonAccessibleName=Lista -FileChooser.listViewActionLabel.textAndMnemonic=Lista -FileChooser.detailsViewButtonToolTip.textAndMnemonic=Detaljer -FileChooser.detailsViewButtonAccessibleName=Detaljer -FileChooser.detailsViewActionLabel.textAndMnemonic=Detaljer -FileChooser.refreshActionLabel.textAndMnemonic=F\u00F6rnya -FileChooser.viewMenuLabel.textAndMnemonic=Vy -FileChooser.fileNameHeader.textAndMnemonic=Namn -FileChooser.fileSizeHeader.textAndMnemonic=Storlek -FileChooser.fileTypeHeader.textAndMnemonic=Typ -FileChooser.fileDateHeader.textAndMnemonic=\u00C4ndrad -FileChooser.fileAttrHeader.textAndMnemonic=Attribut - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=\u00C5terst\u00E4ll(&R) -MetalTitlePane.iconify.titleAndMnemonic=Minim&era -MetalTitlePane.maximize.titleAndMnemonic=Ma&ximera -MetalTitlePane.close.titleAndMnemonic=St\u00E4ng(&S) - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=Leta &i: +FileChooser.saveInLabel.textAndMnemonic=Spara i: +FileChooser.fileNameLabel.textAndMnemonic=Fil&namn: +FileChooser.folderNameLabel.textAndMnemonic=Mapp(&N): +FileChooser.filesOfTypeLabel.textAndMnemonic=Filforma&t: +FileChooser.upFolderToolTip.textAndMnemonic=Upp en niv\u00E5 +FileChooser.upFolderAccessibleName=Upp +FileChooser.homeFolderToolTip.textAndMnemonic=Hem +FileChooser.homeFolderAccessibleName=Hem +FileChooser.newFolderToolTip.textAndMnemonic=Skapa ny mapp +FileChooser.newFolderAccessibleName=Ny mapp +FileChooser.newFolderActionLabel.textAndMnemonic=Ny mapp +FileChooser.listViewButtonToolTip.textAndMnemonic=Lista +FileChooser.listViewButtonAccessibleName=Lista +FileChooser.listViewActionLabel.textAndMnemonic=Lista +FileChooser.detailsViewButtonToolTip.textAndMnemonic=Detaljer +FileChooser.detailsViewButtonAccessibleName=Detaljer +FileChooser.detailsViewActionLabel.textAndMnemonic=Detaljer +FileChooser.refreshActionLabel.textAndMnemonic=F\u00F6rnya +FileChooser.viewMenuLabel.textAndMnemonic=Vy +FileChooser.fileNameHeader.textAndMnemonic=Namn +FileChooser.fileSizeHeader.textAndMnemonic=Storlek +FileChooser.fileTypeHeader.textAndMnemonic=Typ +FileChooser.fileDateHeader.textAndMnemonic=\u00C4ndrad +FileChooser.fileAttrHeader.textAndMnemonic=Attribut +FileChooser.saveButton.textAndMnemonic=Spara +FileChooser.openButton.textAndMnemonic=\u00D6ppna + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=\u00C5terst\u00E4ll(&R) +MetalTitlePane.iconify.titleAndMnemonic=Minim&era +MetalTitlePane.maximize.titleAndMnemonic=Ma&ximera +MetalTitlePane.close.titleAndMnemonic=St\u00E4ng(&S) + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_CN.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_CN.properties index c4aad838863..87db8aeb46c 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_CN.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_CN.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=\u67E5\u770B(&I): -FileChooser.saveInLabel.textAndMnemonic=\u4FDD\u5B58: -FileChooser.fileNameLabel.textAndMnemonic=\u6587\u4EF6\u540D(&N): -FileChooser.folderNameLabel.textAndMnemonic=\u6587\u4EF6\u5939\u540D(&N): -FileChooser.filesOfTypeLabel.textAndMnemonic=\u6587\u4EF6\u7C7B\u578B(&T): -FileChooser.upFolderToolTip.textAndMnemonic=\u5411\u4E0A\u4E00\u7EA7 -FileChooser.upFolderAccessibleName=\u5411\u4E0A -FileChooser.homeFolderToolTip.textAndMnemonic=\u4E3B\u76EE\u5F55 -FileChooser.homeFolderAccessibleName=\u4E3B\u76EE\u5F55 -FileChooser.newFolderToolTip.textAndMnemonic=\u521B\u5EFA\u65B0\u6587\u4EF6\u5939 -FileChooser.newFolderAccessibleName=\u65B0\u5EFA\u6587\u4EF6\u5939 -FileChooser.newFolderActionLabel.textAndMnemonic=\u65B0\u5EFA\u6587\u4EF6\u5939 -FileChooser.listViewButtonToolTip.textAndMnemonic=\u5217\u8868 -FileChooser.listViewButtonAccessibleName=\u5217\u8868 -FileChooser.listViewActionLabel.textAndMnemonic=\u5217\u8868 -FileChooser.detailsViewButtonToolTip.textAndMnemonic=\u8BE6\u7EC6\u8D44\u6599 -FileChooser.detailsViewButtonAccessibleName=\u8BE6\u7EC6\u8D44\u6599 -FileChooser.detailsViewActionLabel.textAndMnemonic=\u8BE6\u7EC6\u8D44\u6599 -FileChooser.refreshActionLabel.textAndMnemonic=\u5237\u65B0 -FileChooser.viewMenuLabel.textAndMnemonic=\u89C6\u56FE -FileChooser.fileNameHeader.textAndMnemonic=\u540D\u79F0 -FileChooser.fileSizeHeader.textAndMnemonic=\u5927\u5C0F -FileChooser.fileTypeHeader.textAndMnemonic=\u7C7B\u578B -FileChooser.fileDateHeader.textAndMnemonic=\u4FEE\u6539\u65E5\u671F -FileChooser.fileAttrHeader.textAndMnemonic=\u5C5E\u6027 - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=\u8FD8\u539F(&R) -MetalTitlePane.iconify.titleAndMnemonic=\u6700\u5C0F\u5316(&E) -MetalTitlePane.maximize.titleAndMnemonic=\u6700\u5927\u5316(&X) -MetalTitlePane.close.titleAndMnemonic=\u5173\u95ED(&C) - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=\u67E5\u770B(&I): +FileChooser.saveInLabel.textAndMnemonic=\u4FDD\u5B58: +FileChooser.fileNameLabel.textAndMnemonic=\u6587\u4EF6\u540D(&N): +FileChooser.folderNameLabel.textAndMnemonic=\u6587\u4EF6\u5939\u540D(&N): +FileChooser.filesOfTypeLabel.textAndMnemonic=\u6587\u4EF6\u7C7B\u578B(&T): +FileChooser.upFolderToolTip.textAndMnemonic=\u5411\u4E0A\u4E00\u7EA7 +FileChooser.upFolderAccessibleName=\u5411\u4E0A +FileChooser.homeFolderToolTip.textAndMnemonic=\u4E3B\u76EE\u5F55 +FileChooser.homeFolderAccessibleName=\u4E3B\u76EE\u5F55 +FileChooser.newFolderToolTip.textAndMnemonic=\u521B\u5EFA\u65B0\u6587\u4EF6\u5939 +FileChooser.newFolderAccessibleName=\u65B0\u5EFA\u6587\u4EF6\u5939 +FileChooser.newFolderActionLabel.textAndMnemonic=\u65B0\u5EFA\u6587\u4EF6\u5939 +FileChooser.listViewButtonToolTip.textAndMnemonic=\u5217\u8868 +FileChooser.listViewButtonAccessibleName=\u5217\u8868 +FileChooser.listViewActionLabel.textAndMnemonic=\u5217\u8868 +FileChooser.detailsViewButtonToolTip.textAndMnemonic=\u8BE6\u7EC6\u8D44\u6599 +FileChooser.detailsViewButtonAccessibleName=\u8BE6\u7EC6\u8D44\u6599 +FileChooser.detailsViewActionLabel.textAndMnemonic=\u8BE6\u7EC6\u8D44\u6599 +FileChooser.refreshActionLabel.textAndMnemonic=\u5237\u65B0 +FileChooser.viewMenuLabel.textAndMnemonic=\u89C6\u56FE +FileChooser.fileNameHeader.textAndMnemonic=\u540D\u79F0 +FileChooser.fileSizeHeader.textAndMnemonic=\u5927\u5C0F +FileChooser.fileTypeHeader.textAndMnemonic=\u7C7B\u578B +FileChooser.fileDateHeader.textAndMnemonic=\u4FEE\u6539\u65E5\u671F +FileChooser.fileAttrHeader.textAndMnemonic=\u5C5E\u6027 +FileChooser.saveButton.textAndMnemonic=\u4FDD\u5B58 +FileChooser.openButton.textAndMnemonic=\u6253\u5F00 + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=\u8FD8\u539F(&R) +MetalTitlePane.iconify.titleAndMnemonic=\u6700\u5C0F\u5316(&E) +MetalTitlePane.maximize.titleAndMnemonic=\u6700\u5927\u5316(&X) +MetalTitlePane.close.titleAndMnemonic=\u5173\u95ED(&C) + diff --git a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_TW.properties b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_TW.properties index a1df8894e4f..a0e84f898c0 100644 --- a/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_TW.properties +++ b/jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_zh_TW.properties @@ -1,52 +1,54 @@ -# This properties file is used to create a PropertyResourceBundle -# It contains Locale specific strings used be the Metal Look and Feel. -# Currently, the following components need this for support: -# -# FileChooser -# -# When this file is read in, the strings are put into the -# defaults table. This is an implementation detail of the current -# workings of Swing. DO NOT DEPEND ON THIS. -# This may change in future versions of Swing as we improve localization -# support. -# -# Refer to the note in basic.properties for a description as to what -# the mnemonics correspond to and how to calculate them. -# -# @author Steve Wilson - - -############ FILE CHOOSER STRINGS ############# - -FileChooser.lookInLabel.textAndMnemonic=\u67E5\u8A62(&I): -FileChooser.saveInLabel.textAndMnemonic=\u5132\u5B58\u65BC: -FileChooser.fileNameLabel.textAndMnemonic=\u6A94\u6848\u540D\u7A31(&N): -FileChooser.folderNameLabel.textAndMnemonic=\u8CC7\u6599\u593E\u540D\u7A31(&N): -FileChooser.filesOfTypeLabel.textAndMnemonic=\u6A94\u6848\u985E\u578B(&T): -FileChooser.upFolderToolTip.textAndMnemonic=\u5F80\u4E0A\u4E00\u5C64 -FileChooser.upFolderAccessibleName=\u5F80\u4E0A -FileChooser.homeFolderToolTip.textAndMnemonic=\u4E3B\u76EE\u9304 -FileChooser.homeFolderAccessibleName=\u4E3B\u76EE\u9304 -FileChooser.newFolderToolTip.textAndMnemonic=\u5EFA\u7ACB\u65B0\u8CC7\u6599\u593E -FileChooser.newFolderAccessibleName=\u65B0\u8CC7\u6599\u593E -FileChooser.newFolderActionLabel.textAndMnemonic=\u65B0\u8CC7\u6599\u593E -FileChooser.listViewButtonToolTip.textAndMnemonic=\u6E05\u55AE -FileChooser.listViewButtonAccessibleName=\u6E05\u55AE -FileChooser.listViewActionLabel.textAndMnemonic=\u6E05\u55AE -FileChooser.detailsViewButtonToolTip.textAndMnemonic=\u8A73\u7D30\u8CC7\u8A0A -FileChooser.detailsViewButtonAccessibleName=\u8A73\u7D30\u8CC7\u8A0A -FileChooser.detailsViewActionLabel.textAndMnemonic=\u8A73\u7D30\u8CC7\u8A0A -FileChooser.refreshActionLabel.textAndMnemonic=\u91CD\u65B0\u6574\u7406 -FileChooser.viewMenuLabel.textAndMnemonic=\u6AA2\u8996 -FileChooser.fileNameHeader.textAndMnemonic=\u540D\u7A31 -FileChooser.fileSizeHeader.textAndMnemonic=\u5927\u5C0F -FileChooser.fileTypeHeader.textAndMnemonic=\u985E\u578B -FileChooser.fileDateHeader.textAndMnemonic=\u4FEE\u6539\u65E5\u671F -FileChooser.fileAttrHeader.textAndMnemonic=\u5C6C\u6027 - -############ Used by MetalTitlePane if rendering window decorations############ -MetalTitlePane.restore.titleAndMnemonic=\u56DE\u5FA9(&R) -MetalTitlePane.iconify.titleAndMnemonic=\u6700\u5C0F\u5316(&E) -MetalTitlePane.maximize.titleAndMnemonic=\u6700\u5927\u5316(&X) -MetalTitlePane.close.titleAndMnemonic=\u95DC\u9589(&C) - +# This properties file is used to create a PropertyResourceBundle +# It contains Locale specific strings used be the Metal Look and Feel. +# Currently, the following components need this for support: +# +# FileChooser +# +# When this file is read in, the strings are put into the +# defaults table. This is an implementation detail of the current +# workings of Swing. DO NOT DEPEND ON THIS. +# This may change in future versions of Swing as we improve localization +# support. +# +# Refer to the note in basic.properties for a description as to what +# the mnemonics correspond to and how to calculate them. +# +# @author Steve Wilson + + +############ FILE CHOOSER STRINGS ############# + +FileChooser.lookInLabel.textAndMnemonic=\u67E5\u8A62(&I): +FileChooser.saveInLabel.textAndMnemonic=\u5132\u5B58\u65BC: +FileChooser.fileNameLabel.textAndMnemonic=\u6A94\u6848\u540D\u7A31(&N): +FileChooser.folderNameLabel.textAndMnemonic=\u8CC7\u6599\u593E\u540D\u7A31(&N): +FileChooser.filesOfTypeLabel.textAndMnemonic=\u6A94\u6848\u985E\u578B(&T): +FileChooser.upFolderToolTip.textAndMnemonic=\u5F80\u4E0A\u4E00\u5C64 +FileChooser.upFolderAccessibleName=\u5F80\u4E0A +FileChooser.homeFolderToolTip.textAndMnemonic=\u4E3B\u76EE\u9304 +FileChooser.homeFolderAccessibleName=\u4E3B\u76EE\u9304 +FileChooser.newFolderToolTip.textAndMnemonic=\u5EFA\u7ACB\u65B0\u8CC7\u6599\u593E +FileChooser.newFolderAccessibleName=\u65B0\u8CC7\u6599\u593E +FileChooser.newFolderActionLabel.textAndMnemonic=\u65B0\u8CC7\u6599\u593E +FileChooser.listViewButtonToolTip.textAndMnemonic=\u6E05\u55AE +FileChooser.listViewButtonAccessibleName=\u6E05\u55AE +FileChooser.listViewActionLabel.textAndMnemonic=\u6E05\u55AE +FileChooser.detailsViewButtonToolTip.textAndMnemonic=\u8A73\u7D30\u8CC7\u8A0A +FileChooser.detailsViewButtonAccessibleName=\u8A73\u7D30\u8CC7\u8A0A +FileChooser.detailsViewActionLabel.textAndMnemonic=\u8A73\u7D30\u8CC7\u8A0A +FileChooser.refreshActionLabel.textAndMnemonic=\u91CD\u65B0\u6574\u7406 +FileChooser.viewMenuLabel.textAndMnemonic=\u6AA2\u8996 +FileChooser.fileNameHeader.textAndMnemonic=\u540D\u7A31 +FileChooser.fileSizeHeader.textAndMnemonic=\u5927\u5C0F +FileChooser.fileTypeHeader.textAndMnemonic=\u985E\u578B +FileChooser.fileDateHeader.textAndMnemonic=\u4FEE\u6539\u65E5\u671F +FileChooser.fileAttrHeader.textAndMnemonic=\u5C6C\u6027 +FileChooser.saveButton.textAndMnemonic=\u5132\u5B58 +FileChooser.openButton.textAndMnemonic=\u958B\u555F + +############ Used by MetalTitlePane if rendering window decorations############ +MetalTitlePane.restore.titleAndMnemonic=\u56DE\u5FA9(&R) +MetalTitlePane.iconify.titleAndMnemonic=\u6700\u5C0F\u5316(&E) +MetalTitlePane.maximize.titleAndMnemonic=\u6700\u5927\u5316(&X) +MetalTitlePane.close.titleAndMnemonic=\u95DC\u9589(&C) + From 288480e312a153076d225f45d5c8a19a766e64f2 Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Tue, 19 Jun 2012 13:25:58 +0100 Subject: [PATCH 31/46] 7177701: error: Filling jar message during javax/imageio/metadata/IIOMetadataFormatImpl compilation Recent JDK hash changes affected order in which files are returned from JavacFileManager.list() Reviewed-by: jjg --- .../classes/com/sun/tools/javac/file/ZipFileIndex.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/langtools/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java b/langtools/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java index 1bee909914f..468e97c4627 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java +++ b/langtools/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java @@ -36,6 +36,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Collections; +import java.util.LinkedHashMap; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -284,7 +285,7 @@ public class ZipFileIndex { try { checkIndex(); if (allDirs == Collections.EMPTY_SET) { - allDirs = new HashSet(directories.keySet()); + allDirs = new java.util.LinkedHashSet(directories.keySet()); } return allDirs; @@ -572,7 +573,7 @@ public class ZipFileIndex { // Add each of the files if (entryCount > 0) { - directories = new HashMap(); + directories = new LinkedHashMap(); ArrayList entryList = new ArrayList(); int pos = 2; for (int i = 0; i < entryCount; i++) { @@ -867,7 +868,7 @@ public class ZipFileIndex { if (zipFile.lastModified() != fileStamp) { ret = false; } else { - directories = new HashMap(); + directories = new LinkedHashMap(); int numDirs = raf.readInt(); for (int nDirs = 0; nDirs < numDirs; nDirs++) { int dirNameBytesLen = raf.readInt(); From cc6e343055fc73a41ee8b81b17f229449e679304 Mon Sep 17 00:00:00 2001 From: Phil Race Date: Tue, 19 Jun 2012 09:07:31 -0700 Subject: [PATCH 32/46] 7124536: [macosx] PrintServiceLookup.lookupDefaultPrintService() return null Reviewed-by: bae, igor --- .../solaris/classes/sun/print/CUPSPrinter.java | 16 ++++++++++++++-- .../sun/print/UnixPrintServiceLookup.java | 12 ++++++++---- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/jdk/src/solaris/classes/sun/print/CUPSPrinter.java b/jdk/src/solaris/classes/sun/print/CUPSPrinter.java index c64ea8b1122..34a131317ac 100644 --- a/jdk/src/solaris/classes/sun/print/CUPSPrinter.java +++ b/jdk/src/solaris/classes/sun/print/CUPSPrinter.java @@ -278,14 +278,26 @@ public class CUPSPrinter { is); is.close(); - if (responseMap.length > 0) { + if (responseMap != null && responseMap.length > 0) { defaultMap = responseMap[0]; } if (defaultMap == null) { os.close(); urlConnection.disconnect(); - return null; + + /* CUPS on OS X, as initially configured, considers the + * default printer to be the last one used that's + * presently available. So if no default was + * reported, exec lpstat -d which has all the Apple + * special behaviour for this built in. + */ + if (UnixPrintServiceLookup.isMac()) { + return UnixPrintServiceLookup. + getDefaultPrinterNameSysV(); + } else { + return null; + } } AttributeClass attribClass = (AttributeClass) diff --git a/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java b/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java index 7f402865d2b..086a482e729 100644 --- a/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java +++ b/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java @@ -114,6 +114,10 @@ public class UnixPrintServiceLookup extends PrintServiceLookup new sun.security.action.GetPropertyAction("os.name")); } + static boolean isMac() { + return osname.startsWith("Mac"); + } + static boolean isSysV() { return osname.equals("SunOS"); } @@ -212,7 +216,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup } } } else { - if (isSysV()) { + if (isMac() || isSysV()) { printers = getAllPrinterNamesSysV(); } else { //BSD printers = getAllPrinterNamesBSD(); @@ -361,7 +365,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup if (name == null || name.equals("") || !checkPrinterName(name)) { return null; } - if (isSysV()) { + if (isMac() || isSysV()) { printer = getNamedPrinterNameSysV(name); } else { printer = getNamedPrinterNameBSD(name); @@ -523,7 +527,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup if (CUPSPrinter.isCupsRunning()) { defaultPrinter = CUPSPrinter.getDefaultPrinter(); } else { - if (isSysV()) { + if (isMac() || isSysV()) { defaultPrinter = getDefaultPrinterNameSysV(); } else { defaultPrinter = getDefaultPrinterNameBSD(); @@ -644,7 +648,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup return names; } - private String getDefaultPrinterNameSysV() { + static String getDefaultPrinterNameSysV() { String defaultPrinter = "lp"; String command = "/usr/bin/lpstat -d"; From 0930b183d68afbe869dd34947b7a9499b8a9d841 Mon Sep 17 00:00:00 2001 From: Alexander Zuev Date: Tue, 19 Jun 2012 21:09:03 +0400 Subject: [PATCH 33/46] 7172430: [macosx] debug message in non debug jdk build Reviewed-by: anthony, serb --- jdk/src/macosx/native/sun/awt/AWTView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jdk/src/macosx/native/sun/awt/AWTView.m b/jdk/src/macosx/native/sun/awt/AWTView.m index f46714c9ee9..b4cb30aa13c 100644 --- a/jdk/src/macosx/native/sun/awt/AWTView.m +++ b/jdk/src/macosx/native/sun/awt/AWTView.m @@ -188,7 +188,9 @@ AWT_ASSERT_APPKIT_THREAD; #endif } } else { +#if IM_DEBUG NSLog(@"-> IM does not want to handle event"); +#endif [self deliverJavaMouseEvent: event]; } } From f2cefcbfad34450be16a9ef322e6872a048657a6 Mon Sep 17 00:00:00 2001 From: Jonathan Gibbons Date: Wed, 20 Jun 2012 13:23:26 -0700 Subject: [PATCH 34/46] 7174143: encapsulate doc comment table Reviewed-by: ksrini, mcimadamore --- .../com/sun/tools/javac/api/JavacTrees.java | 7 +- .../com/sun/tools/javac/comp/Enter.java | 4 +- .../com/sun/tools/javac/comp/Lower.java | 4 +- .../com/sun/tools/javac/jvm/CRTable.java | 4 +- .../classes/com/sun/tools/javac/jvm/Gen.java | 4 +- .../sun/tools/javac/model/JavacElements.java | 9 +-- .../sun/tools/javac/parser/JavaTokenizer.java | 14 ++-- .../sun/tools/javac/parser/JavacParser.java | 45 +++++++------ .../javac/parser/SimpleDocCommentTable.java | 67 +++++++++++++++++++ .../com/sun/tools/javac/parser/Tokens.java | 22 +++--- .../sun/tools/javac/tree/DocCommentTable.java | 57 ++++++++++++++++ .../javac/{parser => tree}/EndPosTable.java | 5 +- .../com/sun/tools/javac/tree/JCTree.java | 22 +++--- .../com/sun/tools/javac/tree/Pretty.java | 20 +++--- .../com/sun/tools/javac/tree/TreeInfo.java | 14 ++-- .../tools/javac/util/DiagnosticSource.java | 4 +- .../sun/tools/javac/util/JCDiagnostic.java | 4 +- .../classes/com/sun/tools/javac/util/Log.java | 4 +- .../com/sun/tools/javadoc/JavadocEnter.java | 17 +++-- .../sun/tools/javadoc/JavadocMemberEnter.java | 13 ++-- .../test/tools/javac/6304921/TestLog.java | 4 +- .../javac/failover/CheckAttributedTree.java | 4 +- .../javac/tree/DocCommentToplevelTest.java | 13 ++-- .../test/tools/javac/tree/TreePosTest.java | 4 +- 24 files changed, 252 insertions(+), 113 deletions(-) create mode 100644 langtools/src/share/classes/com/sun/tools/javac/parser/SimpleDocCommentTable.java create mode 100644 langtools/src/share/classes/com/sun/tools/javac/tree/DocCommentTable.java rename langtools/src/share/classes/com/sun/tools/javac/{parser => tree}/EndPosTable.java (93%) diff --git a/langtools/src/share/classes/com/sun/tools/javac/api/JavacTrees.java b/langtools/src/share/classes/com/sun/tools/javac/api/JavacTrees.java index 6abb947e2fb..a52fb87329d 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/api/JavacTrees.java +++ b/langtools/src/share/classes/com/sun/tools/javac/api/JavacTrees.java @@ -60,7 +60,7 @@ import com.sun.tools.javac.comp.Env; import com.sun.tools.javac.comp.MemberEnter; import com.sun.tools.javac.comp.Resolve; import com.sun.tools.javac.model.JavacElements; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.processing.JavacProcessingEnvironment; import com.sun.tools.javac.tree.JCTree; import com.sun.tools.javac.tree.JCTree.*; @@ -240,10 +240,11 @@ public class JavacTrees extends Trees { public String getDocComment(TreePath path) { CompilationUnitTree t = path.getCompilationUnit(); - if (t instanceof JCTree.JCCompilationUnit) { + Tree leaf = path.getLeaf(); + if (t instanceof JCTree.JCCompilationUnit && leaf instanceof JCTree) { JCCompilationUnit cu = (JCCompilationUnit) t; if (cu.docComments != null) { - return cu.docComments.get(path.getLeaf()); + return cu.docComments.getCommentText((JCTree) leaf); } } return null; diff --git a/langtools/src/share/classes/com/sun/tools/javac/comp/Enter.java b/langtools/src/share/classes/com/sun/tools/javac/comp/Enter.java index c767fc18618..514d651be93 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/comp/Enter.java +++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Enter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -312,7 +312,7 @@ public class Enter extends JCTree.Visitor { tree.packge); if (addEnv || (tree0.packageAnnotations.isEmpty() && tree.docComments != null && - tree.docComments.get(tree) != null)) { + tree.docComments.hasComment(tree))) { typeEnvs.put(tree.packge, topEnv); } } diff --git a/langtools/src/share/classes/com/sun/tools/javac/comp/Lower.java b/langtools/src/share/classes/com/sun/tools/javac/comp/Lower.java index 07e0c7184cb..00f5cd7f625 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/comp/Lower.java +++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Lower.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -40,7 +40,7 @@ import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.code.Type.*; import com.sun.tools.javac.jvm.Target; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import static com.sun.tools.javac.code.Flags.*; import static com.sun.tools.javac.code.Flags.BLOCK; diff --git a/langtools/src/share/classes/com/sun/tools/javac/jvm/CRTable.java b/langtools/src/share/classes/com/sun/tools/javac/jvm/CRTable.java index e39c9348cdc..2fb1c038390 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/jvm/CRTable.java +++ b/langtools/src/share/classes/com/sun/tools/javac/jvm/CRTable.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -31,7 +31,7 @@ import com.sun.tools.javac.tree.*; import com.sun.tools.javac.util.*; import com.sun.tools.javac.util.List; import com.sun.tools.javac.tree.JCTree.*; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; /** This class contains the CharacterRangeTable for some method * and the hashtable for mapping trees or lists of trees to their diff --git a/langtools/src/share/classes/com/sun/tools/javac/jvm/Gen.java b/langtools/src/share/classes/com/sun/tools/javac/jvm/Gen.java index 07aacc42226..5759ec605d7 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/jvm/Gen.java +++ b/langtools/src/share/classes/com/sun/tools/javac/jvm/Gen.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -37,7 +37,7 @@ import com.sun.tools.javac.code.Symbol.*; import com.sun.tools.javac.code.Type.*; import com.sun.tools.javac.jvm.Code.*; import com.sun.tools.javac.jvm.Items.*; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.tree.JCTree.*; import static com.sun.tools.javac.code.Flags.*; diff --git a/langtools/src/share/classes/com/sun/tools/javac/model/JavacElements.java b/langtools/src/share/classes/com/sun/tools/javac/model/JavacElements.java index cb9c1650863..4f036bd9d17 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/model/JavacElements.java +++ b/langtools/src/share/classes/com/sun/tools/javac/model/JavacElements.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,11 +28,14 @@ package com.sun.tools.javac.model; import java.lang.annotation.Annotation; import java.lang.annotation.Inherited; import java.util.Map; + import javax.lang.model.SourceVersion; import javax.lang.model.element.*; import javax.lang.model.type.DeclaredType; import javax.lang.model.util.Elements; import javax.tools.JavaFileObject; +import static javax.lang.model.util.ElementFilter.methodsIn; + import com.sun.tools.javac.code.*; import com.sun.tools.javac.code.Symbol.*; import com.sun.tools.javac.code.TypeTags; @@ -47,9 +50,7 @@ import com.sun.tools.javac.tree.TreeInfo; import com.sun.tools.javac.tree.TreeScanner; import com.sun.tools.javac.util.*; import com.sun.tools.javac.util.Name; - import static com.sun.tools.javac.tree.JCTree.Tag.*; -import static javax.lang.model.util.ElementFilter.methodsIn; /** * Utility methods for operating on program elements. @@ -361,7 +362,7 @@ public class JavacElements implements Elements { JCCompilationUnit toplevel = treeTop.snd; if (toplevel.docComments == null) return null; - return toplevel.docComments.get(tree); + return toplevel.docComments.getCommentText(tree); } public PackageElement getPackageOf(Element e) { diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java b/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java index b46070b9ebb..c6a5bb991c1 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -571,7 +571,7 @@ public class JavaTokenizer { reader.scanCommentChar(); } while (reader.ch != CR && reader.ch != LF && reader.bp < reader.buflen); if (reader.bp < reader.buflen) { - comments = addDocReader(comments, processComment(pos, reader.bp, CommentStyle.LINE)); + comments = addComment(comments, processComment(pos, reader.bp, CommentStyle.LINE)); } break; } else if (reader.ch == '*') { @@ -597,7 +597,7 @@ public class JavaTokenizer { } if (reader.ch == '/') { reader.scanChar(); - comments = addDocReader(comments, processComment(pos, reader.bp, style)); + comments = addComment(comments, processComment(pos, reader.bp, style)); break; } else { lexError(pos, "unclosed.comment"); @@ -693,10 +693,10 @@ public class JavaTokenizer { } } //where - List addDocReader(List docReaders, Comment docReader) { - return docReaders == null ? - List.of(docReader) : - docReaders.prepend(docReader); + List addComment(List comments, Comment comment) { + return comments == null ? + List.of(comment) : + comments.prepend(comment); } /** Return the position where a lexical error occurred; diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java b/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java index dfde7b19bd3..13d5e81debd 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java @@ -117,7 +117,7 @@ public class JavacParser implements Parser { this.allowMethodReferences = source.allowMethodReferences() && fac.options.isSet("allowMethodReferences"); this.keepDocComments = keepDocComments; - docComments = keepDocComments ? new HashMap() : null; + docComments = newDocCommentTable(keepDocComments); this.keepLineMap = keepLineMap; this.errorTree = F.Erroneous(); endPosTable = newEndPosTable(keepEndPositions); @@ -128,6 +128,11 @@ public class JavacParser implements Parser { ? new SimpleEndPosTable() : new EmptyEndPosTable(); } + + protected DocCommentTable newDocCommentTable(boolean keepDocComments) { + return keepDocComments ? new SimpleDocCommentTable() : null; + } + /** Switch: Should generics be recognized? */ boolean allowGenerics; @@ -417,21 +422,21 @@ public class JavacParser implements Parser { /* ---------- doc comments --------- */ - /** A hashtable to store all documentation comments + /** A table to store all documentation comments * indexed by the tree nodes they refer to. * defined only if option flag keepDocComment is set. */ - private final Map docComments; + private final DocCommentTable docComments; /** Make an entry into docComments hashtable, * provided flag keepDocComments is set and given doc comment is non-null. * @param tree The tree to be used as index in the hashtable * @param dc The doc comment to associate with the tree, or null. */ - void attach(JCTree tree, String dc) { + void attach(JCTree tree, Comment dc) { if (keepDocComments && dc != null) { // System.out.println("doc comment = ");System.out.println(dc);//DEBUG - docComments.put(tree, dc); + docComments.putComment(tree, dc); } } @@ -1858,7 +1863,7 @@ public class JavacParser implements Parser { return List.of(parseStatement()); case MONKEYS_AT: case FINAL: { - String dc = token.comment(CommentStyle.JAVADOC); + Comment dc = token.comment(CommentStyle.JAVADOC); JCModifiers mods = modifiersOpt(); if (token.kind == INTERFACE || token.kind == CLASS || @@ -1875,13 +1880,13 @@ public class JavacParser implements Parser { } } case ABSTRACT: case STRICTFP: { - String dc = token.comment(CommentStyle.JAVADOC); + Comment dc = token.comment(CommentStyle.JAVADOC); JCModifiers mods = modifiersOpt(); return List.of(classOrInterfaceOrEnumDeclaration(mods, dc)); } case INTERFACE: case CLASS: - String dc = token.comment(CommentStyle.JAVADOC); + Comment dc = token.comment(CommentStyle.JAVADOC); return List.of(classOrInterfaceOrEnumDeclaration(modifiersOpt(), dc)); case ENUM: case ASSERT: @@ -2418,7 +2423,7 @@ public class JavacParser implements Parser { JCExpression type, Name name, boolean reqInit, - String dc, + Comment dc, T vdefs) { vdefs.append(variableDeclaratorRest(pos, mods, type, name, reqInit, dc)); @@ -2434,7 +2439,7 @@ public class JavacParser implements Parser { /** VariableDeclarator = Ident VariableDeclaratorRest * ConstantDeclarator = Ident ConstantDeclaratorRest */ - JCVariableDecl variableDeclarator(JCModifiers mods, JCExpression type, boolean reqInit, String dc) { + JCVariableDecl variableDeclarator(JCModifiers mods, JCExpression type, boolean reqInit, Comment dc) { return variableDeclaratorRest(token.pos, mods, type, ident(), reqInit, dc); } @@ -2445,7 +2450,7 @@ public class JavacParser implements Parser { * @param dc The documentation comment for the variable declarations, or null. */ JCVariableDecl variableDeclaratorRest(int pos, JCModifiers mods, JCExpression type, Name name, - boolean reqInit, String dc) { + boolean reqInit, Comment dc) { type = bracketsOpt(type); JCExpression init = null; if (token.kind == EQ) { @@ -2539,7 +2544,7 @@ public class JavacParser implements Parser { seenImport = true; defs.append(importDeclaration()); } else { - String docComment = token.comment(CommentStyle.JAVADOC); + Comment docComment = token.comment(CommentStyle.JAVADOC); if (firstTypeDecl && !seenImport && !seenPackage) { docComment = firstToken.comment(CommentStyle.JAVADOC); consumedToplevelDoc = true; @@ -2597,7 +2602,7 @@ public class JavacParser implements Parser { /** TypeDeclaration = ClassOrInterfaceOrEnumDeclaration * | ";" */ - JCTree typeDeclaration(JCModifiers mods, String docComment) { + JCTree typeDeclaration(JCModifiers mods, Comment docComment) { int pos = token.pos; if (mods == null && token.kind == SEMI) { nextToken(); @@ -2612,7 +2617,7 @@ public class JavacParser implements Parser { * @param mods Any modifiers starting the class or interface declaration * @param dc The documentation comment for the class, or null. */ - JCStatement classOrInterfaceOrEnumDeclaration(JCModifiers mods, String dc) { + JCStatement classOrInterfaceOrEnumDeclaration(JCModifiers mods, Comment dc) { if (token.kind == CLASS) { return classDeclaration(mods, dc); } else if (token.kind == INTERFACE) { @@ -2656,7 +2661,7 @@ public class JavacParser implements Parser { * @param mods The modifiers starting the class declaration * @param dc The documentation comment for the class, or null. */ - protected JCClassDecl classDeclaration(JCModifiers mods, String dc) { + protected JCClassDecl classDeclaration(JCModifiers mods, Comment dc) { int pos = token.pos; accept(CLASS); Name name = ident(); @@ -2685,7 +2690,7 @@ public class JavacParser implements Parser { * @param mods The modifiers starting the interface declaration * @param dc The documentation comment for the interface, or null. */ - protected JCClassDecl interfaceDeclaration(JCModifiers mods, String dc) { + protected JCClassDecl interfaceDeclaration(JCModifiers mods, Comment dc) { int pos = token.pos; accept(INTERFACE); Name name = ident(); @@ -2708,7 +2713,7 @@ public class JavacParser implements Parser { * @param mods The modifiers starting the enum declaration * @param dc The documentation comment for the enum, or null. */ - protected JCClassDecl enumDeclaration(JCModifiers mods, String dc) { + protected JCClassDecl enumDeclaration(JCModifiers mods, Comment dc) { int pos = token.pos; accept(ENUM); Name name = ident(); @@ -2767,7 +2772,7 @@ public class JavacParser implements Parser { /** EnumeratorDeclaration = AnnotationsOpt [TypeArguments] IDENTIFIER [ Arguments ] [ "{" ClassBody "}" ] */ JCTree enumeratorDeclaration(Name enumName) { - String dc = token.comment(CommentStyle.JAVADOC); + Comment dc = token.comment(CommentStyle.JAVADOC); int flags = Flags.PUBLIC|Flags.STATIC|Flags.FINAL|Flags.ENUM; if (token.deprecatedFlag()) { flags |= Flags.DEPRECATED; @@ -2856,7 +2861,7 @@ public class JavacParser implements Parser { nextToken(); return List.nil(); } else { - String dc = token.comment(CommentStyle.JAVADOC); + Comment dc = token.comment(CommentStyle.JAVADOC); int pos = token.pos; JCModifiers mods = modifiersOpt(); if (token.kind == CLASS || @@ -2936,7 +2941,7 @@ public class JavacParser implements Parser { Name name, List typarams, boolean isInterface, boolean isVoid, - String dc) { + Comment dc) { List params = formalParameters(); if (!isVoid) type = bracketsOpt(type); List thrown = List.nil(); diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/SimpleDocCommentTable.java b/langtools/src/share/classes/com/sun/tools/javac/parser/SimpleDocCommentTable.java new file mode 100644 index 00000000000..3f6019ee906 --- /dev/null +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/SimpleDocCommentTable.java @@ -0,0 +1,67 @@ +/* + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package com.sun.tools.javac.parser; + +import java.util.HashMap; +import java.util.Map; + +import com.sun.tools.javac.parser.Tokens.Comment; +import com.sun.tools.javac.tree.DocCommentTable; +import com.sun.tools.javac.tree.JCTree; + + +/** + * + *

This is NOT part of any supported API. + * If you write code that depends on this, you do so at your own risk. + * This code and its internal interfaces are subject to change or + * deletion without notice. + */ +public class SimpleDocCommentTable implements DocCommentTable { + Map table; + + SimpleDocCommentTable() { + table = new HashMap(); + } + + public boolean hasComment(JCTree tree) { + return table.containsKey(tree); + } + + public Comment getComment(JCTree tree) { + return table.get(tree); + } + + public String getCommentText(JCTree tree) { + Comment c = getComment(tree); + return (c == null) ? null : c.getText(); + } + + public void putComment(JCTree tree, Comment c) { + table.put(tree, c); + } + +} diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java b/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java index 402e6db0eca..0b08fc8e523 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -371,11 +371,11 @@ public class Tokens { * Preserve classic semantics - if multiple javadocs are found on the token * the last one is returned */ - public String comment(Comment.CommentStyle style) { - List readers = getReaders(Comment.CommentStyle.JAVADOC); - return readers.isEmpty() ? + public Comment comment(Comment.CommentStyle style) { + List comments = getComments(Comment.CommentStyle.JAVADOC); + return comments.isEmpty() ? null : - readers.head.getText(); + comments.head; } /** @@ -383,22 +383,22 @@ public class Tokens { * javadoc comment attached to this token contains the '@deprecated' string */ public boolean deprecatedFlag() { - for (Comment r : getReaders(Comment.CommentStyle.JAVADOC)) { - if (r.isDeprecated()) { + for (Comment c : getComments(Comment.CommentStyle.JAVADOC)) { + if (c.isDeprecated()) { return true; } } return false; } - private List getReaders(Comment.CommentStyle style) { + private List getComments(Comment.CommentStyle style) { if (comments == null) { return List.nil(); } else { ListBuffer buf = ListBuffer.lb(); - for (Comment r : comments) { - if (r.getStyle() == style) { - buf.add(r); + for (Comment c : comments) { + if (c.getStyle() == style) { + buf.add(c); } } return buf.toList(); diff --git a/langtools/src/share/classes/com/sun/tools/javac/tree/DocCommentTable.java b/langtools/src/share/classes/com/sun/tools/javac/tree/DocCommentTable.java new file mode 100644 index 00000000000..0d77a3868ec --- /dev/null +++ b/langtools/src/share/classes/com/sun/tools/javac/tree/DocCommentTable.java @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ +package com.sun.tools.javac.tree; + +import com.sun.tools.javac.parser.Tokens.Comment; + +/** + * A table giving the doc comment, if any, for any tree node. + * + *

This is NOT part of any supported API. + * If you write code that depends on this, you do so at your own + * risk. This code and its internal interfaces are subject to change + * or deletion without notice. + */ +public interface DocCommentTable { + /** + * Check if a tree node has a corresponding doc comment. + */ + public boolean hasComment(JCTree tree); + + /** + * Get the Comment token containing the doc comment, if any, for a tree node. + */ + public Comment getComment(JCTree tree); + + /** + * Get the plain text of the doc comment, if any, for a tree node. + */ + public String getCommentText(JCTree tree); + + /** + * Set the Comment to be associated with a tree node. + */ + public void putComment(JCTree tree, Comment c); +} diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/EndPosTable.java b/langtools/src/share/classes/com/sun/tools/javac/tree/EndPosTable.java similarity index 93% rename from langtools/src/share/classes/com/sun/tools/javac/parser/EndPosTable.java rename to langtools/src/share/classes/com/sun/tools/javac/tree/EndPosTable.java index 3db8cd677e8..1f9eefa58b7 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/EndPosTable.java +++ b/langtools/src/share/classes/com/sun/tools/javac/tree/EndPosTable.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,9 +22,8 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -package com.sun.tools.javac.parser; -import com.sun.tools.javac.tree.JCTree; +package com.sun.tools.javac.tree; /** * Specifies the methods to access a mappings of syntax trees to end positions. diff --git a/langtools/src/share/classes/com/sun/tools/javac/tree/JCTree.java b/langtools/src/share/classes/com/sun/tools/javac/tree/JCTree.java index 9adf7c968b8..6c398a044df 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/tree/JCTree.java +++ b/langtools/src/share/classes/com/sun/tools/javac/tree/JCTree.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,25 +25,23 @@ package com.sun.tools.javac.tree; -import java.util.*; - import java.io.IOException; import java.io.StringWriter; +import java.util.*; + import javax.lang.model.element.Modifier; import javax.lang.model.type.TypeKind; import javax.tools.JavaFileObject; -import com.sun.tools.javac.util.*; -import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; -import com.sun.tools.javac.util.List; -import com.sun.tools.javac.code.*; -import com.sun.tools.javac.code.Scope.*; -import com.sun.tools.javac.code.Symbol.*; -import com.sun.tools.javac.parser.EndPosTable; import com.sun.source.tree.*; import com.sun.source.tree.LambdaExpressionTree.BodyKind; import com.sun.source.tree.MemberReferenceTree.ReferenceMode; - +import com.sun.tools.javac.code.*; +import com.sun.tools.javac.code.Scope.*; +import com.sun.tools.javac.code.Symbol.*; +import com.sun.tools.javac.util.*; +import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; +import com.sun.tools.javac.util.List; import static com.sun.tools.javac.code.BoundKind.*; import static com.sun.tools.javac.tree.JCTree.Tag.*; @@ -491,7 +489,7 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition { public ImportScope namedImportScope; public StarImportScope starImportScope; public Position.LineMap lineMap = null; - public Map docComments = null; + public DocCommentTable docComments = null; public EndPosTable endPositions = null; protected JCCompilationUnit(List packageAnnotations, JCExpression pid, diff --git a/langtools/src/share/classes/com/sun/tools/javac/tree/Pretty.java b/langtools/src/share/classes/com/sun/tools/javac/tree/Pretty.java index 824fa599ff7..67b49848a7f 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/tree/Pretty.java +++ b/langtools/src/share/classes/com/sun/tools/javac/tree/Pretty.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,14 +29,12 @@ import java.io.*; import java.util.*; import com.sun.source.tree.MemberReferenceTree.ReferenceMode; - +import com.sun.tools.javac.code.*; +import com.sun.tools.javac.code.Symbol.*; +import com.sun.tools.javac.parser.Tokens.Comment; +import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.util.*; import com.sun.tools.javac.util.List; -import com.sun.tools.javac.code.*; - -import com.sun.tools.javac.code.Symbol.*; -import com.sun.tools.javac.tree.JCTree.*; - import static com.sun.tools.javac.code.Flags.*; import static com.sun.tools.javac.code.Flags.ANNOTATION; import static com.sun.tools.javac.tree.JCTree.Tag.*; @@ -78,10 +76,10 @@ public class Pretty extends JCTree.Visitor { */ Name enclClassName; - /** A hashtable mapping trees to their documentation comments + /** A table mapping trees to their documentation comments * (can be null) */ - Map docComments = null; + DocCommentTable docComments = null; /** Align code to be indented to left margin. */ @@ -233,7 +231,7 @@ public class Pretty extends JCTree.Visitor { */ public void printDocComment(JCTree tree) throws IOException { if (docComments != null) { - String dc = docComments.get(tree); + String dc = docComments.getCommentText(tree); if (dc != null) { print("/**"); println(); int pos = 0; @@ -480,7 +478,7 @@ public class Pretty extends JCTree.Visitor { public void visitVarDef(JCVariableDecl tree) { try { - if (docComments != null && docComments.get(tree) != null) { + if (docComments != null && docComments.hasComment(tree)) { println(); align(); } printDocComment(tree); diff --git a/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java b/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java index b828f633183..9c26f4ecf05 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java +++ b/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java @@ -25,15 +25,14 @@ package com.sun.tools.javac.tree; + import com.sun.source.tree.Tree; +import com.sun.tools.javac.code.*; import com.sun.tools.javac.comp.AttrContext; import com.sun.tools.javac.comp.Env; +import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.util.*; import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; -import com.sun.tools.javac.code.*; -import com.sun.tools.javac.parser.EndPosTable; -import com.sun.tools.javac.tree.JCTree.*; - import static com.sun.tools.javac.code.Flags.*; import static com.sun.tools.javac.tree.JCTree.Tag.*; import static com.sun.tools.javac.tree.JCTree.Tag.BLOCK; @@ -282,6 +281,13 @@ public class TreeInfo { return (lit.typetag == TypeTags.BOT); } + public static String getCommentText(Env env, JCTree tree) { + DocCommentTable docComments = (tree.hasTag(JCTree.Tag.TOPLEVEL)) + ? ((JCCompilationUnit) tree).docComments + : env.toplevel.docComments; + return docComments.getCommentText(tree); + } + /** The position of the first statement in a block, or the position of * the block itself if it is empty. */ diff --git a/langtools/src/share/classes/com/sun/tools/javac/util/DiagnosticSource.java b/langtools/src/share/classes/com/sun/tools/javac/util/DiagnosticSource.java index 7378d7edfb2..d8c94def6ee 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/util/DiagnosticSource.java +++ b/langtools/src/share/classes/com/sun/tools/javac/util/DiagnosticSource.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,7 +32,7 @@ import java.util.Map; import javax.tools.JavaFileObject; import com.sun.tools.javac.file.JavacFileManager; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.tree.JCTree; import static com.sun.tools.javac.util.LayoutCharacters.*; diff --git a/langtools/src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java b/langtools/src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java index 60506f2fe82..770ee0ba18b 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java +++ b/langtools/src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -35,7 +35,7 @@ import javax.tools.JavaFileObject; import com.sun.tools.javac.api.DiagnosticFormatter; import com.sun.tools.javac.code.Lint.LintCategory; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.tree.JCTree; import static com.sun.tools.javac.util.JCDiagnostic.DiagnosticType.*; diff --git a/langtools/src/share/classes/com/sun/tools/javac/util/Log.java b/langtools/src/share/classes/com/sun/tools/javac/util/Log.java index 3f22b8c012c..1f43aae4502 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/util/Log.java +++ b/langtools/src/share/classes/com/sun/tools/javac/util/Log.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -37,7 +37,7 @@ import javax.tools.JavaFileObject; import com.sun.tools.javac.api.DiagnosticFormatter; import com.sun.tools.javac.main.Main; import com.sun.tools.javac.main.Option; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; import com.sun.tools.javac.util.JCDiagnostic.DiagnosticType; diff --git a/langtools/src/share/classes/com/sun/tools/javadoc/JavadocEnter.java b/langtools/src/share/classes/com/sun/tools/javadoc/JavadocEnter.java index bb9f72da687..f2c2884b4bc 100644 --- a/langtools/src/share/classes/com/sun/tools/javadoc/JavadocEnter.java +++ b/langtools/src/share/classes/com/sun/tools/javadoc/JavadocEnter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,14 +25,17 @@ package com.sun.tools.javadoc; -import com.sun.tools.javac.util.Context; -import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; -import com.sun.tools.javac.util.List; + +import javax.tools.JavaFileObject; + import com.sun.tools.javac.code.Kinds; import com.sun.tools.javac.code.Symbol.*; import com.sun.tools.javac.comp.Enter; import com.sun.tools.javac.tree.JCTree.*; -import javax.tools.JavaFileObject; +import com.sun.tools.javac.tree.TreeInfo; +import com.sun.tools.javac.util.Context; +import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; +import com.sun.tools.javac.util.List; /** * Javadoc's own enter phase does a few things above and beyond that @@ -77,7 +80,7 @@ public class JavadocEnter extends Enter { public void visitTopLevel(JCCompilationUnit tree) { super.visitTopLevel(tree); if (tree.sourcefile.isNameCompatible("package-info", JavaFileObject.Kind.SOURCE)) { - String comment = tree.docComments.get(tree); + String comment = TreeInfo.getCommentText(env, tree); docenv.makePackageDoc(tree.packge, comment, tree); } } @@ -87,7 +90,7 @@ public class JavadocEnter extends Enter { super.visitClassDef(tree); if (tree.sym == null) return; if (tree.sym.kind == Kinds.TYP || tree.sym.kind == Kinds.ERR) { - String comment = env.toplevel.docComments.get(tree); + String comment = TreeInfo.getCommentText(env, tree); ClassSymbol c = tree.sym; docenv.makeClassDoc(c, comment, tree, env.toplevel.lineMap); } diff --git a/langtools/src/share/classes/com/sun/tools/javadoc/JavadocMemberEnter.java b/langtools/src/share/classes/com/sun/tools/javadoc/JavadocMemberEnter.java index fa9c8588697..4e1d31f2124 100644 --- a/langtools/src/share/classes/com/sun/tools/javadoc/JavadocMemberEnter.java +++ b/langtools/src/share/classes/com/sun/tools/javadoc/JavadocMemberEnter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,13 +25,14 @@ package com.sun.tools.javadoc; -import com.sun.tools.javac.util.Context; -import com.sun.tools.javac.util.Position; import com.sun.tools.javac.code.Flags; import com.sun.tools.javac.code.Kinds; import com.sun.tools.javac.code.Symbol.*; import com.sun.tools.javac.comp.MemberEnter; import com.sun.tools.javac.tree.JCTree.*; +import com.sun.tools.javac.tree.TreeInfo; +import com.sun.tools.javac.util.Context; +import com.sun.tools.javac.util.Position; /** * Javadoc's own memberEnter phase does a few things above and beyond that @@ -61,11 +62,12 @@ public class JavadocMemberEnter extends MemberEnter { docenv = DocEnv.instance(context); } + @Override public void visitMethodDef(JCMethodDecl tree) { super.visitMethodDef(tree); MethodSymbol meth = tree.sym; if (meth == null || meth.kind != Kinds.MTH) return; - String docComment = env.toplevel.docComments.get(tree); + String docComment = TreeInfo.getCommentText(env, tree); Position.LineMap lineMap = env.toplevel.lineMap; if (meth.isConstructor()) docenv.makeConstructorDoc(meth, docComment, tree, lineMap); @@ -75,12 +77,13 @@ public class JavadocMemberEnter extends MemberEnter { docenv.makeMethodDoc(meth, docComment, tree, lineMap); } + @Override public void visitVarDef(JCVariableDecl tree) { super.visitVarDef(tree); if (tree.sym != null && tree.sym.kind == Kinds.VAR && !isParameter(tree.sym)) { - String docComment = env.toplevel.docComments.get(tree); + String docComment = TreeInfo.getCommentText(env, tree); Position.LineMap lineMap = env.toplevel.lineMap; docenv.makeFieldDoc(tree.sym, docComment, tree, lineMap); } diff --git a/langtools/test/tools/javac/6304921/TestLog.java b/langtools/test/tools/javac/6304921/TestLog.java index 2e3b3bd40c0..0d9a84549a7 100644 --- a/langtools/test/tools/javac/6304921/TestLog.java +++ b/langtools/test/tools/javac/6304921/TestLog.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -33,9 +33,9 @@ import java.net.URI; import javax.tools.JavaFileObject; import javax.tools.SimpleJavaFileObject; import com.sun.tools.javac.file.JavacFileManager; -import com.sun.tools.javac.parser.EndPosTable; import com.sun.tools.javac.parser.Parser; import com.sun.tools.javac.parser.ParserFactory; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.tree.JCTree; import com.sun.tools.javac.tree.TreeScanner; import com.sun.tools.javac.util.Context; diff --git a/langtools/test/tools/javac/failover/CheckAttributedTree.java b/langtools/test/tools/javac/failover/CheckAttributedTree.java index b2e55db0fa1..d5d1bb094b2 100644 --- a/langtools/test/tools/javac/failover/CheckAttributedTree.java +++ b/langtools/test/tools/javac/failover/CheckAttributedTree.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -68,7 +68,7 @@ import com.sun.source.util.TaskListener; import com.sun.tools.javac.api.JavacTool; import com.sun.tools.javac.code.Symbol; import com.sun.tools.javac.code.Type; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.tree.JCTree; import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; import com.sun.tools.javac.tree.JCTree.JCImport; diff --git a/langtools/test/tools/javac/tree/DocCommentToplevelTest.java b/langtools/test/tools/javac/tree/DocCommentToplevelTest.java index ff236024f0f..2908a22180e 100644 --- a/langtools/test/tools/javac/tree/DocCommentToplevelTest.java +++ b/langtools/test/tools/javac/tree/DocCommentToplevelTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,6 +29,7 @@ import com.sun.source.tree.*; import com.sun.source.util.*; +import com.sun.tools.javac.tree.DocCommentTable; import com.sun.tools.javac.tree.JCTree; import java.net.URI; @@ -137,16 +138,16 @@ public class DocCommentToplevelTest { new TreeScanner() { - Map docComments; + DocCommentTable docComments; @Override public ClassTree visitCompilationUnit(CompilationUnitTree node, Void unused) { docComments = ((JCTree.JCCompilationUnit)node).docComments; boolean expectedComment = tdk == ToplevelDocKind.HAS_DOC && (pk != PackageKind.NO_PKG || ik != ImportKind.ZERO); - boolean foundComment = docComments.get(node) != null; + boolean foundComment = docComments.hasComment((JCTree) node); if (expectedComment != foundComment) { - error("Unexpected comment " + docComments.get(node) + " on toplevel"); + error("Unexpected comment " + docComments.getComment((JCTree) node) + " on toplevel"); } return super.visitCompilationUnit(node, null); } @@ -156,9 +157,9 @@ public class DocCommentToplevelTest { boolean expectedComment = tdk == ToplevelDocKind.HAS_DOC && pk == PackageKind.NO_PKG && ik == ImportKind.ZERO && node.getSimpleName().toString().equals("First"); - boolean foundComment = docComments.get(node) != null; + boolean foundComment = docComments.hasComment((JCTree) node); if (expectedComment != foundComment) { - error("Unexpected comment " + docComments.get(node) + " on class " + node.getSimpleName()); + error("Unexpected comment " + docComments.getComment((JCTree) node) + " on class " + node.getSimpleName()); } return super.visitClass(node, unused); } diff --git a/langtools/test/tools/javac/tree/TreePosTest.java b/langtools/test/tools/javac/tree/TreePosTest.java index 08cdf155c83..b8f8a36b1b0 100644 --- a/langtools/test/tools/javac/tree/TreePosTest.java +++ b/langtools/test/tools/javac/tree/TreePosTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -73,7 +73,7 @@ import com.sun.source.tree.CompilationUnitTree; import com.sun.source.util.JavacTask; import com.sun.tools.javac.api.JavacTool; import com.sun.tools.javac.code.Flags; -import com.sun.tools.javac.parser.EndPosTable; +import com.sun.tools.javac.tree.EndPosTable; import com.sun.tools.javac.tree.JCTree; import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; import com.sun.tools.javac.tree.JCTree.JCNewClass; From 87314953956840e0591b6e07686aaf7e3a28abc2 Mon Sep 17 00:00:00 2001 From: Jonathan Gibbons Date: Thu, 21 Jun 2012 13:22:21 -0700 Subject: [PATCH 35/46] 7178297: provide mapping from doc comment position to source file position Reviewed-by: mcimadamore, ksrini --- .../sun/tools/javac/parser/JavaTokenizer.java | 4 + .../tools/javac/parser/JavadocTokenizer.java | 115 ++++++++++++++++-- .../com/sun/tools/javac/parser/Tokens.java | 1 + .../com/sun/tools/javac/tree/TreeInfo.java | 2 +- 4 files changed, 108 insertions(+), 14 deletions(-) diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java b/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java index c6a5bb991c1..67fc0b72c4c 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java @@ -780,6 +780,10 @@ public class JavaTokenizer { return null; } + public int getSourcePos(int pos) { + return -1; + } + public CommentStyle getStyle() { return cs; } diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java b/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java index 4aac62cd109..e1287478fd2 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -62,19 +62,54 @@ public class JavadocTokenizer extends JavaTokenizer { @Override protected Comment processComment(int pos, int endPos, CommentStyle style) { char[] buf = reader.getRawCharacters(pos, endPos); - return new JavadocComment(new ColReader(fac, buf, buf.length), style); + return new JavadocComment(new DocReader(fac, buf, buf.length, pos), style); } /** * This is a specialized version of UnicodeReader that keeps track of the - * column position within a given character stream (used for Javadoc processing). + * column position within a given character stream (used for Javadoc processing), + * and which builds a table for mapping positions in the comment string to + * positions in the source file. */ - static class ColReader extends UnicodeReader { + static class DocReader extends UnicodeReader { int col; + int startPos; - ColReader(ScannerFactory fac, char[] input, int inputLength) { + /** + * A buffer for building a table for mapping positions in {@link #sbuf} + * to positions in the source buffer. + * + * The array is organized as a series of pairs of integers: the first + * number in each pair specifies a position in the comment text, + * the second number in each pair specifies the corresponding position + * in the source buffer. The pairs are sorted in ascending order. + * + * Since the mapping function is generally continuous, with successive + * positions in the string corresponding to successive positions in the + * source buffer, the table only needs to record discontinuities in + * the mapping. The values of intermediate positions can be inferred. + * + * Discontinuities may occur in a number of places: when a newline + * is followed by whitespace and asterisks (which are ignored), + * when a tab is expanded into spaces, and when unicode escapes + * are used in the source buffer. + * + * Thus, to find the source position of any position, p, in the comment + * string, find the index, i, of the pair whose string offset + * ({@code pbuf[i] }) is closest to but not greater than p. Then, + * {@code sourcePos(p) = pbuf[i+1] + (p - pbuf[i]) }. + */ + int[] pbuf = new int[128]; + + /** + * The index of the next empty slot in the pbuf buffer. + */ + int pp = 0; + + DocReader(ScannerFactory fac, char[] input, int inputLength, int startPos) { super(fac, input, inputLength); + this.startPos = startPos; } @Override @@ -147,19 +182,43 @@ public class JavadocTokenizer extends JavaTokenizer { break; } } + + @Override + public void putChar(char ch, boolean scan) { + // At this point, bp is the position of the current character in buf, + // and sp is the position in sbuf where this character will be put. + // Record a new entry in pbuf if pbuf is empty or if sp and its + // corresponding source position are not equidistant from the + // corresponding values in the latest entry in the pbuf array. + // (i.e. there is a discontinuity in the map function.) + if ((pp == 0) + || (sp - pbuf[pp - 2] != (startPos + bp) - pbuf[pp - 1])) { + if (pp + 1 >= pbuf.length) { + int[] new_pbuf = new int[pbuf.length * 2]; + System.arraycopy(pbuf, 0, new_pbuf, 0, pbuf.length); + pbuf = new_pbuf; + } + pbuf[pp] = sp; + pbuf[pp + 1] = startPos + bp; + pp += 2; + } + super.putChar(ch, scan); + } } - protected class JavadocComment extends JavaTokenizer.BasicComment { + protected class JavadocComment extends JavaTokenizer.BasicComment { /** * Translated and stripped contents of doc comment */ private String docComment = null; + private int[] docPosns = null; - JavadocComment(ColReader comment_reader, CommentStyle cs) { - super(comment_reader, cs); + JavadocComment(DocReader reader, CommentStyle cs) { + super(reader, cs); } + @Override public String getText() { if (!scanned && cs == CommentStyle.JAVADOC) { scanDocComment(); @@ -167,6 +226,33 @@ public class JavadocTokenizer extends JavaTokenizer { return docComment; } + @Override + public int getSourcePos(int pos) { + // Binary search to find the entry for which the string index is + // less than pos. Since docPosns is a list of pairs of integers + // we must make sure the index is always even. + // If we find an exact match for pos, the other item in the pair + // gives the source pos; otherwise, compute the source position + // relative to the best match found in the array. + if (pos < 0 || pos >= docComment.length()) + throw new StringIndexOutOfBoundsException(); + if (docPosns == null) + return -1; + int start = 0; + int end = docPosns.length; + while (start < end - 2) { + // find an even index midway between start and end + int index = ((start + end) / 4) * 2; + if (docPosns[index] < pos) + start = index; + else if (docPosns[index] == pos) + return docPosns[index + 1]; + else + end = index; + } + return docPosns[start + 1] + (pos - docPosns[start]); + } + @Override @SuppressWarnings("fallthrough") protected void scanDocComment() { @@ -209,7 +295,8 @@ public class JavadocTokenizer extends JavaTokenizer { // whitespace, then it consumes any stars, then it // puts the rest of the line into our buffer. while (comment_reader.bp < comment_reader.buflen) { - + int begin_bp = comment_reader.bp; + char begin_ch = comment_reader.ch; // The wsLoop consumes whitespace from the beginning // of each line. wsLoop: @@ -263,10 +350,10 @@ public class JavadocTokenizer extends JavaTokenizer { break outerLoop; } } else if (! firstLine) { - //The current line does not begin with a '*' so we will indent it. - for (int i = 1; i < comment_reader.col; i++) { - comment_reader.putChar(' ', false); - } + // The current line does not begin with a '*' so we will + // treat it as comment + comment_reader.bp = begin_bp; + comment_reader.ch = begin_ch; } // The textLoop processes the rest of the characters // on the line, adding them to our buffer. @@ -334,6 +421,8 @@ public class JavadocTokenizer extends JavaTokenizer { // Store the text of the doc comment docComment = comment_reader.chars(); + docPosns = new int[comment_reader.pp]; + System.arraycopy(comment_reader.pbuf, 0, docPosns, 0, docPosns.length); } else { docComment = ""; } diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java b/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java index 0b08fc8e523..8ae85740ae8 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/Tokens.java @@ -294,6 +294,7 @@ public class Tokens { } String getText(); + int getSourcePos(int index); CommentStyle getStyle(); boolean isDeprecated(); } diff --git a/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java b/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java index 9c26f4ecf05..ee666f81fbd 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java +++ b/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java @@ -285,7 +285,7 @@ public class TreeInfo { DocCommentTable docComments = (tree.hasTag(JCTree.Tag.TOPLEVEL)) ? ((JCCompilationUnit) tree).docComments : env.toplevel.docComments; - return docComments.getCommentText(tree); + return (docComments == null) ? null : docComments.getCommentText(tree); } /** The position of the first statement in a block, or the position of From 04f6e273611f96fe10cad5d869387ab4f0f4e19f Mon Sep 17 00:00:00 2001 From: David Katleman Date: Thu, 21 Jun 2012 17:07:24 -0700 Subject: [PATCH 36/46] Added tag jdk8-b44 for changeset 053c1b820253 --- .hgtags-top-repo | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags-top-repo b/.hgtags-top-repo index cda4949ebf7..44ad17af265 100644 --- a/.hgtags-top-repo +++ b/.hgtags-top-repo @@ -165,3 +165,4 @@ a2b2d435f1d275fa8010774c653197c64e326d3a jdk8-b40 1a8c7c530f8a9b7f5bdb9b0693b2f5435ca5205e jdk8-b41 1ce5dc16416611c58b7480ca67a2eee5153498a6 jdk8-b42 661c9aae602bbd9766d12590800c90f1edd1d8dd jdk8-b43 +e4f81a817447c3a4f6868f083c81c2fb1b15d44c jdk8-b44 From bae02fa6d92cc5970358f69a919a072de9f92033 Mon Sep 17 00:00:00 2001 From: David Katleman Date: Thu, 21 Jun 2012 17:07:30 -0700 Subject: [PATCH 37/46] Added tag jdk8-b44 for changeset fab97dcc43bb --- corba/.hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/corba/.hgtags b/corba/.hgtags index 743ca2bdd1b..fa937dfa1e9 100644 --- a/corba/.hgtags +++ b/corba/.hgtags @@ -165,3 +165,4 @@ b8cbfb31139f820e5e094ba71449e58159fbe22e jdk8-b38 113f0d5f0a08aa0947b3edf783b603e7f042748a jdk8-b41 79cc42c9c71bbd6630ede681642e98f5e4a841fa jdk8-b42 cd879aff5d3cc1f58829aab3116880aa19525b78 jdk8-b43 +439d9bf8e4ff204cc89c9974c1515a508b2cc6ff jdk8-b44 From 769bc4a4205d2b78b9a270ea8913959628801487 Mon Sep 17 00:00:00 2001 From: David Katleman Date: Thu, 21 Jun 2012 17:07:40 -0700 Subject: [PATCH 38/46] Added tag jdk8-b44 for changeset 1531e68c3b60 --- hotspot/.hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/hotspot/.hgtags b/hotspot/.hgtags index 905d081f32c..4a7f07f305b 100644 --- a/hotspot/.hgtags +++ b/hotspot/.hgtags @@ -255,3 +255,4 @@ bd568544be7fcd12a9327e6c448592198d57b043 hs24-b13 55954061c6e8750ea39a63523fd65d580db6eeb1 jdk8-b42 e77b8e0ed1f84e3e268239e276c7ab64fa573baa jdk8-b43 5ba29a1db46ecb80a321ca873adb56a3fe6ad320 hs24-b14 +831e5c76a20af18f3c08c5a95ed31be0e128a010 jdk8-b44 From df2b1220d45cea0c32ea9e7a2f1861ee6bb14edc Mon Sep 17 00:00:00 2001 From: David Katleman Date: Thu, 21 Jun 2012 17:07:57 -0700 Subject: [PATCH 39/46] Added tag jdk8-b44 for changeset b52db8219e73 --- jaxp/.hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/jaxp/.hgtags b/jaxp/.hgtags index f6225f6671b..72b505f142b 100644 --- a/jaxp/.hgtags +++ b/jaxp/.hgtags @@ -165,3 +165,4 @@ f95fdbe525c88ef0d57dc1390be6582a8af5e07c jdk8-b39 6f5c0e17415de7a9c74900ef4ba12f47accdf88b jdk8-b41 39ee03c1602155ff02e5feb6cd44869452f24cf7 jdk8-b42 eff4ece9c8bc43b3ce2b3758574c4c20147f0689 jdk8-b43 +0b3f3a4ce13930430b32b616a717dfc7fe385b28 jdk8-b44 From e37f1e943580ea75ec0d938bb2ac565bd7b94f6a Mon Sep 17 00:00:00 2001 From: David Katleman Date: Thu, 21 Jun 2012 17:07:59 -0700 Subject: [PATCH 40/46] Added tag jdk8-b44 for changeset fc9fe83a8a52 --- jaxws/.hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/jaxws/.hgtags b/jaxws/.hgtags index b54cf5b44f3..43d26862ac0 100644 --- a/jaxws/.hgtags +++ b/jaxws/.hgtags @@ -165,3 +165,4 @@ ac1ba3b56775e3cdcd91b7a48793b59f6a3c18b5 jdk8-b38 f2072b164b0519227833a2994f78e3988ee67827 jdk8-b41 1f20f37818a91b66eaeba268d0b785718598ee0e jdk8-b42 f00c12994562c2f68d348a7c3e829374a89294e2 jdk8-b43 +f6a417540ef124c9b4123d07da5e26f2ab909949 jdk8-b44 From 8e301e97d21c11c6b93161ec454280ba981e54a3 Mon Sep 17 00:00:00 2001 From: David Katleman Date: Thu, 21 Jun 2012 17:08:14 -0700 Subject: [PATCH 41/46] Added tag jdk8-b44 for changeset 5a7d295a9b76 --- jdk/.hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/jdk/.hgtags b/jdk/.hgtags index edfcfe38137..3635c35c55e 100644 --- a/jdk/.hgtags +++ b/jdk/.hgtags @@ -165,3 +165,4 @@ b88fc3359dc7edabfa8a228855d8cebf8843c055 jdk8-b40 4eac56f073ea8179b1a35fcd2af9b48b0088be9f jdk8-b41 cf5c1f6fbc5ba14163fe0ef8eb8601b33f951372 jdk8-b42 b3246687c3695dff6f461bb407f9db88f7d072e7 jdk8-b43 +db471a7af03168e4441c245b1d9976f720a7cb77 jdk8-b44 From 8e267289d5737e0988c62f0f2469da17cee5ff57 Mon Sep 17 00:00:00 2001 From: David Katleman Date: Thu, 21 Jun 2012 17:08:31 -0700 Subject: [PATCH 42/46] Added tag jdk8-b44 for changeset 96e306b8f5e5 --- langtools/.hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/langtools/.hgtags b/langtools/.hgtags index 1dd77f75218..cee894b8d9b 100644 --- a/langtools/.hgtags +++ b/langtools/.hgtags @@ -165,3 +165,4 @@ a9f547c218d957306dfc0cdd710be041bb62a555 jdk8-b39 179fa85aeefab338cccf1cbe8b494c59bc5df122 jdk8-b41 02c5a3575539e737a1855b31287654e843edd6da jdk8-b42 f8c64d835b2806293b8e924b44f0e32b20657ed3 jdk8-b43 +59cbead12ff46dbb397120bd26635bcd7d41ff21 jdk8-b44 From 7572cbd5aa0dcb941ece2b256c91cf7e7858ecce Mon Sep 17 00:00:00 2001 From: Marco Dinacci Date: Fri, 22 Jun 2012 16:32:39 +0400 Subject: [PATCH 43/46] 7170716: JVM crash when opening an AWT app from a registered file Copy the queued blocks to prevent their deallocation Reviewed-by: anthony, swingler --- .../sun/osxapp/QueuingApplicationDelegate.h | 6 ++ .../sun/osxapp/QueuingApplicationDelegate.m | 89 ++++++++++--------- 2 files changed, 51 insertions(+), 44 deletions(-) diff --git a/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.h b/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.h index 60751839e08..9b1c75d8eb6 100644 --- a/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.h +++ b/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.h @@ -30,6 +30,8 @@ BOOL fHandlesDocumentTypes; BOOL fHandlesURLTypes; + id realDelegate; + NSMutableArray* queue; } @@ -40,5 +42,9 @@ - (void)processQueuedEventsWithTargetDelegate:(id )delegate; +@property(retain) id realDelegate; + +@property(retain) NSMutableArray* queue; + @end diff --git a/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.m b/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.m index 26d98595bd7..4beab221f13 100644 --- a/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.m +++ b/jdk/src/macosx/native/sun/osxapp/QueuingApplicationDelegate.m @@ -27,8 +27,6 @@ #import "QueuingApplicationDelegate.h" -static id realDelegate = nil; - @interface NSBundle (EAWTOverrides) - (BOOL)_hasEAWTOverride:(NSString *)key; @end @@ -44,6 +42,9 @@ static id realDelegate = nil; @implementation QueuingApplicationDelegate +@synthesize realDelegate; +@synthesize queue; + + (QueuingApplicationDelegate*) sharedDelegate { static QueuingApplicationDelegate * qad = nil; @@ -62,7 +63,7 @@ static id realDelegate = nil; return self; } - self->queue = [[NSMutableArray arrayWithCapacity: 0] retain]; + self.queue = [NSMutableArray arrayWithCapacity: 0]; // If the java application has a bundle with an Info.plist file with // a CFBundleDocumentTypes entry, then it is set up to handle Open Doc @@ -100,8 +101,8 @@ static id realDelegate = nil; Class clz = [QueuingApplicationDelegate class]; [ctr removeObserver:clz]; - [self->queue release]; - self->queue = nil; + self.queue = nil; + self.realDelegate = nil; [super dealloc]; } @@ -109,16 +110,16 @@ static id realDelegate = nil; - (void)_handleOpenURLEvent:(NSAppleEventDescriptor *)openURLEvent withReplyEvent:(NSAppleEventDescriptor *)replyEvent { - [self->queue addObject:^(){ - [realDelegate _handleOpenURLEvent:openURLEvent withReplyEvent:replyEvent]; - }]; + [self.queue addObject:[^(){ + [self.realDelegate _handleOpenURLEvent:openURLEvent withReplyEvent:replyEvent]; + } copy]]; } - (void)application:(NSApplication *)theApplication openFiles:(NSArray *)fileNames { - [self->queue addObject:^(){ - [realDelegate application:theApplication openFiles:fileNames]; - }]; + [self.queue addObject:[^(){ + [self.realDelegate application:theApplication openFiles:fileNames]; + } copy]]; } - (NSApplicationPrintReply)application:(NSApplication *)application printFiles:(NSArray *)fileNames withSettings:(NSDictionary *)printSettings showPrintPanels:(BOOL)showPrintPanels @@ -127,9 +128,9 @@ static id realDelegate = nil; return NSPrintingCancelled; } - [self->queue addObject:^(){ - [realDelegate application:application printFiles:fileNames withSettings:printSettings showPrintPanels:showPrintPanels]; - }]; + [self.queue addObject:[^(){ + [self.realDelegate application:application printFiles:fileNames withSettings:printSettings showPrintPanels:showPrintPanels]; + } copy]]; // well, a bit premature, but what else can we do?.. return NSPrintingSuccess; @@ -137,76 +138,76 @@ static id realDelegate = nil; - (void)_willFinishLaunching { - QueuingApplicationDelegate * q = self; - [self->queue addObject:^(){ - [[realDelegate class] _willFinishLaunching]; - }]; + [self.queue addObject:[^(){ + [[self.realDelegate class] _willFinishLaunching]; + } copy]]; } - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag { - [self->queue addObject:^(){ - [realDelegate applicationShouldHandleReopen:theApplication hasVisibleWindows:flag]; - }]; + [self.queue addObject:[^(){ + [self.realDelegate applicationShouldHandleReopen:theApplication hasVisibleWindows:flag]; + } copy]]; return YES; } - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)app { - [self->queue addObject:^(){ - [realDelegate applicationShouldTerminate:app]; - }]; + [self.queue addObject:[^(){ + [self.realDelegate applicationShouldTerminate:app]; + } copy]]; return NSTerminateLater; } - (void)_systemWillPowerOff { - [self->queue addObject:^(){ - [[realDelegate class] _systemWillPowerOff]; - }]; + [self.queue addObject:[^(){ + [[self.realDelegate class] _systemWillPowerOff]; + } copy]]; } - (void)_appDidActivate { - [self->queue addObject:^(){ - [[realDelegate class] _appDidActivate]; - }]; + [self.queue addObject:[^(){ + [[self.realDelegate class] _appDidActivate]; + } copy]]; } - (void)_appDidDeactivate { - [self->queue addObject:^(){ - [[realDelegate class] _appDidDeactivate]; - }]; + [self.queue addObject:[^(){ + [[self.realDelegate class] _appDidDeactivate]; + } copy]]; } - (void)_appDidHide { - [self->queue addObject:^(){ - [[realDelegate class] _appDidHide]; - }]; + [self.queue addObject:[^(){ + [[self.realDelegate class] _appDidHide]; + } copy]]; } - (void)_appDidUnhide { - [self->queue addObject:^(){ - [[realDelegate class] _appDidUnhide]; - }]; + [self.queue addObject:[^(){ + [[self.realDelegate class] _appDidUnhide]; + } copy]]; } - (void)processQueuedEventsWithTargetDelegate:(id )delegate { - NSUInteger i; - NSUInteger count = [self->queue count]; + self.realDelegate = delegate; - realDelegate = delegate; + NSUInteger i; + NSUInteger count = [self.queue count]; for (i = 0; i < count; i++) { - void (^event)() = (void (^)())[self->queue objectAtIndex: i]; + void (^event)() = (void (^)())[self.queue objectAtIndex: i]; event(); + [event release]; } - [self->queue removeAllObjects]; + [self.queue removeAllObjects]; } @end From 3005c7daac2b4a13c02f095dcf190e53c7ba116d Mon Sep 17 00:00:00 2001 From: Jonathan Gibbons Date: Fri, 22 Jun 2012 14:40:30 -0700 Subject: [PATCH 44/46] 7178763: javadoc OutOfMemory error results in several jdk8 tl nightly failures Reviewed-by: ksrini --- .../classes/com/sun/tools/javac/parser/JavadocTokenizer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java b/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java index e1287478fd2..86fb786b260 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java +++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java @@ -428,6 +428,7 @@ public class JavadocTokenizer extends JavaTokenizer { } } finally { scanned = true; + comment_reader = null; if (docComment != null && docComment.matches("(?sm).*^\\s*@deprecated( |$).*")) { deprecatedFlag = true; From 09dd368c9b2dcb0d363efe59be05b9ab6da4d70c Mon Sep 17 00:00:00 2001 From: Anthony Petrov Date: Mon, 25 Jun 2012 17:27:04 +0400 Subject: [PATCH 45/46] 7174718: [macosx] Regression in 7u6 b12: PopupFactory leaks DefaultFrames Fix memory management Reviewed-by: art, serb --- .../sun/lwawt/macosx/CPlatformWindow.java | 2 ++ jdk/src/macosx/native/sun/awt/AWTWindow.m | 26 +++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java index 6a11cb5b9b9..1ea54e90280 100644 --- a/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java +++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java @@ -63,6 +63,7 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo private static native void nativeSetNSWindowSecurityWarningPositioning(long nsWindowPtr, double x, double y, float biasX, float biasY); private static native void nativeSetEnabled(long nsWindowPtr, boolean isEnabled); private static native void nativeSynthesizeMouseEnteredExitedEvents(long nsWindowPtr); + private static native void nativeDispose(long nsWindowPtr); private static native int nativeGetNSWindowDisplayID_AppKitThread(long nsWindowPtr); @@ -423,6 +424,7 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo EventQueue.invokeLater(new Runnable() { public void run() { contentView.dispose(); + nativeDispose(getNSWindowPtr()); CPlatformWindow.super.dispose(); } }); diff --git a/jdk/src/macosx/native/sun/awt/AWTWindow.m b/jdk/src/macosx/native/sun/awt/AWTWindow.m index 759631de8c0..b5b545e6b86 100644 --- a/jdk/src/macosx/native/sun/awt/AWTWindow.m +++ b/jdk/src/macosx/native/sun/awt/AWTWindow.m @@ -228,6 +228,7 @@ AWT_ASSERT_APPKIT_THREAD; } if (self.nsWindow == nil) return nil; // no hope either + [self.nsWindow release]; // the property retains the object already self.isEnabled = YES; self.javaPlatformWindow = platformWindow; @@ -677,9 +678,9 @@ AWT_ASSERT_NOT_APPKIT_THREAD; styleBits:styleBits frameRect:frameRect contentView:contentView]; + // the window is released is CPlatformWindow.nativeDispose() - if (window) CFRetain(window); - [window release]; // GC + if (window) CFRetain(window.nsWindow); }]; JNF_COCOA_EXIT(env); @@ -1160,3 +1161,24 @@ JNF_COCOA_ENTER(env); JNF_COCOA_EXIT(env); } +JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPlatformWindow_nativeDispose +(JNIEnv *env, jclass clazz, jlong windowPtr) +{ +JNF_COCOA_ENTER(env); + + NSWindow *nsWindow = OBJC(windowPtr); + [JNFRunLoop performOnMainThreadWaiting:NO withBlock:^(){ + AWTWindow *window = (AWTWindow*)[nsWindow delegate]; + + // AWTWindow holds a reference to the NSWindow in its nsWindow + // property. Unsetting the delegate allows it to be deallocated + // which releases the reference. This, in turn, allows the window + // itself be deallocated. + [nsWindow setDelegate: nil]; + + [window release]; + }]; + +JNF_COCOA_EXIT(env); +} + From cf287c5bdcf1b56163c4047ba5538d28a2d22f5e Mon Sep 17 00:00:00 2001 From: "J. Duke" Date: Wed, 5 Jul 2017 18:13:50 +0200 Subject: [PATCH 46/46] Added tag jdk8-b44 for changeset 7e981cb0ad6a --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index d2e004fa3cb..45683c43953 100644 --- a/.hgtags +++ b/.hgtags @@ -165,3 +165,4 @@ b3a91113026c99b0da010d41055719ab0d8938f0 jdk8-b37 c029c972396cea042a0dc67c0f7ccf2fe68007d4 jdk8-b41 5c5a64ec0839df5affe9394b99ff338c363acbca jdk8-b42 69d8a827cdf9236be9694a46d75c710d71dac7d7 jdk8-b43 +7e981cb0ad6a194f1fa859f9ad47586db461f269 jdk8-b44