diff --git a/.hgtags b/.hgtags
index bf22521e961d7ccbfb811a4080f96f6ed8f41739..75feff6b3b4f9ab31bcdeb41a79ad7577327926b 100644
--- a/.hgtags
+++ b/.hgtags
@@ -122,3 +122,7 @@ efbf75c24b0f31847c9c403f6dc07dc80551908d jdk7-b143
1e04b38b3824a4a1d197ef681a302e6813e53f8b jdk7-b145
539e576793a8e64aaf160e0d6ab0b9723cd0bef0 jdk7-b146
f097ca2434b1412b12ab4a5c2397ce271bf681e7 jdk7-b147
+2cdbbc4a63592be7f1556fffe37b1253a77bd481 jdk8-b01
+13e70aa1398eb959c54bc68b783ca0eef1286ad2 jdk8-b02
+7989ee9fe673a87f4db3917fa6a005732a6a9b85 jdk8-b03
+fc569517f3cf242f90ce3503b743eb5553938946 jdk8-b04
diff --git a/make/common/Defs.gmk b/make/common/Defs.gmk
index 1e12d4119427be5928109efb269add282f2fe233..e46aedeffe1431033f9a656f11cd91412fe8ef54 100644
--- a/make/common/Defs.gmk
+++ b/make/common/Defs.gmk
@@ -300,6 +300,9 @@ JRE_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-image
#where the demo source can be found
DEMOSRCDIR = $(SHARE_SRC)/demo
+#where the sample source can be found
+SAMPLESRCDIR = $(SHARE_SRC)/sample
+
# An attempt is made to generate unique enough directories for the
# generated files to not have name collisisons. Most build units
# defines PRODUCT (except Release.gmk), but then they may or may
diff --git a/make/java/util/FILES_properties.gmk b/make/java/util/FILES_properties.gmk
index 4f9f7cd9148e195af12d5a8e62897b7f4c679fc9..5aa6cbfaef5fc33ba28a63594250b324b35327fe 100644
--- a/make/java/util/FILES_properties.gmk
+++ b/make/java/util/FILES_properties.gmk
@@ -151,6 +151,7 @@ FILES_compiled_properties = \
sun/util/resources/CurrencyNames_es_CL.properties \
sun/util/resources/CurrencyNames_es_CO.properties \
sun/util/resources/CurrencyNames_es_CR.properties \
+ sun/util/resources/CurrencyNames_es_CU.properties \
sun/util/resources/CurrencyNames_es_DO.properties \
sun/util/resources/CurrencyNames_es_EC.properties \
sun/util/resources/CurrencyNames_es_ES.properties \
diff --git a/make/mkdemo/Makefile b/make/mkdemo/Makefile
index c134316218eb3bfc73e4a91993d56317ee4b27e5..6bf93e5366c560edfa5e5a6c8c8bd480c75decb8 100644
--- a/make/mkdemo/Makefile
+++ b/make/mkdemo/Makefile
@@ -39,9 +39,14 @@ SUBDIRS_tools = jpda jvmti
include $(BUILDDIR)/common/Subdirs.gmk
+TOPLEVEL_FILES = \
+ $(DEMODIR)/README
+
all build:: nbproject
$(SUBDIRS-loop)
+all build:: $(TOPLEVEL_FILES)
+
nbproject:
$(RM) -r $(DEMODIR)/nbproject
$(MKDIR) -p $(DEMODIR)
@@ -54,8 +59,10 @@ ifndef OPENJDK
( $(CD) $(DEMODIR) && $(TAR) -xf - )
endif
+$(DEMODIR)/%: $(DEMOSRCDIR)/%
+ $(install-file)
+
clean clobber::
$(SUBDIRS-loop)
$(RM) -r $(DEMODIR)
$(RM) -r $(DEMOCLASSDIR)
-
diff --git a/make/mksample/Makefile b/make/mksample/Makefile
index bdc770b4f7a67b3b7a9e46f94a89ba50c4cb3a8a..aa4e31d69e0038e4ce0af25cea76535f37e24a58 100644
--- a/make/mksample/Makefile
+++ b/make/mksample/Makefile
@@ -49,8 +49,16 @@ endif
include $(BUILDDIR)/common/Subdirs.gmk
+TOPLEVEL_FILES = \
+ $(SAMPLEDIR)/README
+
all build clean clobber::
$(SUBDIRS-loop)
+all build:: $(TOPLEVEL_FILES)
+
+$(SAMPLEDIR)/%: $(SAMPLESRCDIR)/%
+ $(install-file)
+
clobber clean ::
$(RM) -r $(SAMPLEDIR)
diff --git a/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java b/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
index 3c6aebf172e1fcb60d9fe65870a83b3b0e59a67e..05335172ad0041800277c55ec4b3d2d270289a34 100644
--- a/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
+++ b/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
@@ -120,7 +120,7 @@ public class GenerateCurrencyData {
private static int[] specialCaseOldCurrenciesNumericCode = new int[maxSpecialCases];
private static int[] specialCaseNewCurrenciesNumericCode = new int[maxSpecialCases];
- private static final int maxOtherCurrencies = 65;
+ private static final int maxOtherCurrencies = 70;
private static int otherCurrenciesCount = 0;
private static StringBuffer otherCurrencies = new StringBuffer();
private static int[] otherCurrenciesDefaultFractionDigits = new int[maxOtherCurrencies];
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth.properties
index d22268978054a398f161179c009340f328459d63..67e2890fc0512c4f074d6d142ce6f885069d3d52 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=Look In:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=Save In:
FileChooser.fileNameLabelText=File Name:
-FileChooser.folderNameLabelText=Folder name:
+FileChooser.fileNameLabelMnemonic=78
+FileChooser.folderNameLabelText=Folder Name:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=Files of Type:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=Up One Level
FileChooser.upFolderAccessibleName=Up
FileChooser.homeFolderToolTipText=Home
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_de.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_de.properties
index 990f34464c2368fdc78c3898630ece450d52534d..8da54b891acbec25a3e597c7438edd808fe28162 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_de.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_de.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=Suchen in:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=Speichern in:
FileChooser.fileNameLabelText=Dateiname:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=Ordnername:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=Dateityp:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=Eine Ebene h\u00F6her
FileChooser.upFolderAccessibleName=Nach oben
FileChooser.homeFolderToolTipText=Home
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_es.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_es.properties
index 03d2166037165083bdf284ef4beef0e69c925e53..14229e87f0425b0ca71322a23743570b144effb4 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_es.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_es.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=Buscar en:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=Guardar en:
FileChooser.fileNameLabelText=Nombre de Archivo:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=Nombre de la Carpeta:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=Archivos de Tipo:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=Subir un Nivel
FileChooser.upFolderAccessibleName=Arriba
FileChooser.homeFolderToolTipText=Inicio
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_fr.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_fr.properties
index 273351d689d02195e26767edfdc61c2066ac4bfa..7660e7dc4b6e58005c8322341c9148a1691cfec5 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_fr.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_fr.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=Rechercher dans :
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=Enregistrer dans :
FileChooser.fileNameLabelText=Nom du fichier :
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=Nom du dossier :
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=Fichiers de type :
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=Remonte d'un niveau.
FileChooser.upFolderAccessibleName=Monter
FileChooser.homeFolderToolTipText=R\u00E9pertoire d'origine
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_it.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_it.properties
index da2e2c7bac8316b8ac614122b6d72c69cb0828cd..8a1535e8502acc57b814316f0e587514596f1699 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_it.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_it.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=Cerca in:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=Salva in:
FileChooser.fileNameLabelText=Nome file:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=Nome della cartella:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=Tipo file:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=Cartella superiore
FileChooser.upFolderAccessibleName=Superiore
FileChooser.homeFolderToolTipText=Home
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ja.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ja.properties
index 382fcf8b9e6ea6bf0f045b3e4801a5adbfee68fe..d49e038a8904815e3eb8687720e828af0abebb98 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ja.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ja.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\u53C2\u7167:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\u4FDD\u5B58:
FileChooser.fileNameLabelText=\u30D5\u30A1\u30A4\u30EB\u540D:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\u30D5\u30A9\u30EB\u30C0\u540D:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\u30D5\u30A1\u30A4\u30EB\u306E\u30BF\u30A4\u30D7:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=1\u30EC\u30D9\u30EB\u4E0A\u3078
FileChooser.upFolderAccessibleName=\u4E0A\u3078
FileChooser.homeFolderToolTipText=\u30DB\u30FC\u30E0
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ko.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ko.properties
index adc9b1d599031ec79e585b20933db5e93c125908..ff3b38291398e94cf9c62d63117cf24219a12231 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ko.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ko.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\uAC80\uC0C9 \uC704\uCE58:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\uC800\uC7A5 \uC704\uCE58:
FileChooser.fileNameLabelText=\uD30C\uC77C \uC774\uB984:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\uD3F4\uB354 \uC774\uB984:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\uD30C\uC77C \uC720\uD615:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=\uD55C \uB808\uBCA8 \uC704\uB85C
FileChooser.upFolderAccessibleName=\uC704\uB85C
FileChooser.homeFolderToolTipText=\uD648
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_pt_BR.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_pt_BR.properties
index b14a61f5b5d642f962b294a8f2fd741dfbd3eca1..bb94bb19a80275d48b93323cd6b3616c25a27421 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_pt_BR.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_pt_BR.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=Consultar Em:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=Salvar Em:
FileChooser.fileNameLabelText=Nome do Arquivo:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=Nome da pasta:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=Arquivos do Tipo:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=Um N\u00EDvel Acima
FileChooser.upFolderAccessibleName=Acima
FileChooser.homeFolderToolTipText=In\u00EDcio
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_sv.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_sv.properties
index 9167b72f17b741b3dfed3b972223162426f10126..1d23ec84539cdf048fd63f1a359ded8a7fb3910f 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_sv.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_sv.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=Leta i:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=Spara i:
FileChooser.fileNameLabelText=Filnamn:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=Mapp:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=Filformat:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=Upp en niv\u00E5
FileChooser.upFolderAccessibleName=Upp
FileChooser.homeFolderToolTipText=Hem
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_CN.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_CN.properties
index 547fd155f8ce2b8a794b38259a22afa8a00b4f4e..5269dcc7c1765f5816107742288703bdd3635424 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_CN.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_CN.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\u67E5\u770B:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\u4FDD\u5B58:
FileChooser.fileNameLabelText=\u6587\u4EF6\u540D:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\u6587\u4EF6\u5939\u540D:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\u6587\u4EF6\u7C7B\u578B:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=\u5411\u4E0A\u4E00\u7EA7
FileChooser.upFolderAccessibleName=\u5411\u4E0A
FileChooser.homeFolderToolTipText=\u4E3B\u76EE\u5F55
diff --git a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_TW.properties b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_TW.properties
index 1144f6173ddff6f694129a965270a233e59d2559..b76aa0b5edab314dc5d601c8ea9a998a95253020 100644
--- a/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_TW.properties
+++ b/src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_TW.properties
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\u67E5\u8A62:
+FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\u5132\u5B58\u65BC:
FileChooser.fileNameLabelText=\u6A94\u6848\u540D\u7A31:
+FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\u8CC7\u6599\u593E\u540D\u7A31:
+FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\u6A94\u6848\u985E\u578B:
+FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=\u5F80\u4E0A\u4E00\u5C64
FileChooser.upFolderAccessibleName=\u5F80\u4E0A
FileChooser.homeFolderToolTipText=\u4E3B\u76EE\u9304
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java
index 09e3f7e681423f0d7fbcff6dc3bf49d7523d91a0..8cfe90ff5840b77366f22cffd93d91a91b03a102 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java b/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java
index 667cbb225934a1de1601e627b57c7bd2ff0d2ee5..139d688303a5a5abc48917c87f0cd1aa47e2991d 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class AmbiguousMethodException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java
index 541582ef89ae4ef92a2e64a2ed504cedb3faf0ed..9e5da4001f6f21138b5ef2eeb380657ee19add8c 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public abstract class BreakpointSpec extends EventRequestSpec {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java b/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java
index 917b0d8803a22cbe2adabf187c22b7306949fb05..74697098aa78a3bc79f4353a666e7658007f59a6 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java b/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java
index 0e0a6b0b4849ad756483ce37d2dc0909329b1c8b..9163e5b457830d85060f68a81340bf517d8f0367 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class EvaluationException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java
index 796d5803b9cde8bc6ede854d155f9dd79c6c918b..5a9c1d7ce5119e58a1fddd319b9e674cdedffd3e 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java
index a48982780da7aaa328bf4af8889c01cb36bb8ec0..ce5dccee7118e77691c800b2da1bbe3545215e39 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java
index fa3fcb3de289730362abd888487e96a717d2e9fd..c26d8b8d48a195601cb53f2b54f3e94e627b7c28 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.ReferenceType;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java b/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java
index 35f2075daa921a825c97c11322103feffb56420c..4a79f4352b8515886a0376390dff8557acf65e68 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java b/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java
index 5d70918cb3ba10184909152c91531457bacd75eb..4f1ebd2f7db6d28c99e21ef52a80cb945388e731 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class FrameIndexOutOfBoundsException extends IndexOutOfBoundsException {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java
index a06d39bc61671290dea9b8d8c6f59bd8b7f1e420..d32d1da31441c9122dea512030265824961e02a9 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public interface InputListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java b/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java
index dedc2477e0c8a7cb99c4a2af25dffa29e4ed9fe6..bd34832e355a01c1f3f7a32d891455f32853af30 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java
index 0a1e0b1cb3d28269adae410e9620c48117bcd8ea..838fe550d51124e1b4de54a490d4d58960761a82 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java b/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java
index 6d906a8b65ca61db9367a234b30bf2a06a353e30..97f023ad1d183da771db7df74dbad656ce58a637 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class LineNotFoundException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java b/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java
index c73e685f50365780af22857c539eff8fbe08086b..1dea517a425fb4154cad06c07b2964136b156407 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
class MalformedMemberNameException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java
index 7a9748af102b17a2f7bfd10f1ad43b3c36801ba1..387f92fbae0d8b60aed58a5e5918bcaa9e072460 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java b/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java
index 9fd3aa9efc74ee343fafb05fc499352068df8e7e..75331cc551b2450d316af4346f81fdf708e4f5d7 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class MethodNotFoundException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java
index 7043d666ec870d4b4aeb845a2479b2cd1bcf9006..7d30378e35a1cad2600d9f8989af0ceefba8e003 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java b/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java
index 32988ab140b47af28f098cd7276caf8c8c7973c1..df1c82d39410352979f3833cdf3bd9fbccca1144 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class NoSessionException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java b/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java
index 460b1a4ba4cdae98d49f9b74e1b562e06d011353..48ed6badab85bd8f26b49126e30f2fb7a15817a3 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class NoThreadException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java
index 777926b6df0f0666b15a7e340b50f9cc9a28f384..2f5db08e20b218534fe6e4f7ccfc135212992696 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public interface OutputListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java b/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java
index c730c6ce1a5392705ce4e544ff0cf0067597b901..413e7aa224b9438af076cdc004de438c3efe7eaf 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
// dummy placeholder for javaCC-generated code.
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java
index 4f6d73e8e711ce1fde482416b771bf1c1a29a1c8..382b6da88a2cd2796b2e668a30e6b3fa64b9539a 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java
index fc478060aaac540cde95c8b5d5c067230264ea45..199df818937fdf364f833735937891b18364b307 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/Session.java b/src/share/classes/com/sun/tools/example/debug/bdi/Session.java
index 4599cb1ba10fbc1252b25d5a34b46d7112b416be..d2cd7ced18bf02139c3252fd10d8672c8c502033 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/Session.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/Session.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.VirtualMachine;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java
index df109a5a18a00cdd0505d4cdbfe847a60282453c..1b22055aeacb012461001d8ee14792767087580b 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import java.util.EventObject;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java
index c788f5d0c53765371a94de62d71090b2e84a219f..ff954d293cc29e4d538a61fd098e918bd406bf29 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java b/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java
index c6b9f4e78d3c4137b1be8e70b22110709c2c6de4..2ba571eddfbd34ca26a3e65bcd831b3057dfdeb6 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class SpecErrorEvent extends SpecEvent {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java b/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java
index 625a263fcefa1c0e6aaba2a7b58ac3bbb218cd3c..8492f4de23ee9d8b3ed36a67e000051a4b305516 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import java.util.EventObject;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java
index 9771e9f6418ed4050cdb88a02b5d3ac854e3e538..a5d6bc4bb7642afd0772d709ad2a0e4d4c2c555d 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import java.util.EventListener;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java
index c6ec121d8088be54c801d1bfbec1f8d694323f7e..736bf2e6339e58ac55d55790380b6734997faebd 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java
index b9516c4313f3a52f699bbd628f961fe0cbbf5ece..9f36408c6437eda808ffe39ad788488e3573c4d9 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java
index 6fafd71cd80212bd815e2b2ae4708cfc0dd8ccb1..ac61bbdd0cca4c04552282145a7df2b1effa5b63 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java b/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java
index d3e0173dc9bdcd71322098dc87f1e2fad20cbbd3..3ccaad651404d50f2131969c1971d75648489334 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi; //### does it belong here?
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java b/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java
index d0c482c50e0385ee7c220431521eb02a773e5cdf..4996184cae0f018e19697134fa1a58adf2f87e64 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class VMLaunchFailureException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java b/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java
index ef12d6d2446bc0f07f420c8ca8559f6ef2aeaf6c..f14a5f487d8a6e0d9806477ab54e4bc2715499db 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class VMNotInterruptedException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java
index 469b4230a9a9e4268f6d7080fabf9f14cfcc2a4a..7b771738428f66373bc9a9a9ffe7c2f5e2221b5b 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public abstract class WatchpointSpec extends EventRequestSpec {
diff --git a/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java
index 80cbd9a0da83794a2587e527e00c91dbff3d8d2d..c239f0f9e3ca67cc382829af3a9da6f96cf81b1f 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java
index 37b73e5c4a279bda4675120644b7a46079408f50..e8b0f086d920dc7d88a17a1b06a8906d1fd5a95a 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java
index 69050d3f53a367560d5a01b6b9b4ec65048af4c1..09e83407fa1ff369689f0ed36e02d9677af18c74 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java
index c043b23b29ad34fbb45e8766b788406388fd45d2..b9e70d6f51f6aaca45487776a96af06b35484dca 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java
index c94fa284ae61319615f58368b4da915a262b1db8..7c48539116e83ab943ded41b0b9005f68932090f 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java b/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java
index fb3e7a859aa836376da6adcc5b1b303c1029d9e4..706e206850f87b01fd83d228630bfeb82d1329fb 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java b/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java
index 16eef9644cfc2b15a6ca5fb35decbf0b5fccd2b6..a0637e3975037c4a0c8a70d0d99d0c53f397ebcf 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import java.util.EventListener;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java
index 303af121e4e65c5cfd6e53bd7189cf3e81e31e49..6cafff9113b6567b0043d406c903a901a5cb06c4 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java
index b30bea52bef7a1427c6c85ccf7f9920d2af950d4..ab52678f12dda06794deff958fbf864a04d57644 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java
index 382a8f31b7cd791c8915c123ad6c0fe1d9f68cef..591bcd5dbfbbe6bb40191d47c7c6bfa428371bff 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java
index ad432f77842652f5062ddf3c680ee924d4626b67..dd17a05bc60f76b83cb8f3ebe4f3288089bd4b13 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java
index 63b1fb42603b221fe214c9a243f93c4b575ee6a6..c96e298f3aa44d9554b047c8ae4a5d2c44ba06b1 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java
index 017f11ff5aedaeab9c5fc06625dfc5069a80fbcf..ee054110a7cacc27b214eefb60b9da0f257a8f10 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java
index 4edf4b872c9e54a3fa6c7d0559b19d96049386a3..0ac988c6cabbf18fe3d3c8f06f60aeac179b20a6 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java
index 896fa78c36921976c92694eec79b23aefd3a703c..0de4700551451c2fd28e66bd2f5afbe1b942ea5f 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java
index 628f21cb92db65d0052536f97102c7c6f73643d3..e662b1008e195aa8ea4d560a3872e9fdeed4c7cb 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java b/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java
index 1ec552e3172b4ecedbe6f279ec7f4453c66de590..69f2433e196eae8a1283c3a0d3f7ae7e10199fba 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ASCII_UCodeESC_CharStream.java Version 0.7pre6 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java
index c2c79010c6bc0385bd1774f41ce6ea7f9138b974..063c29d221550121f218052f13f3f8065985c826 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ExpressionParser.java */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java
index 9f1f725ac1aaf3cbc3b1d696b24153471ed862cc..390d238102fbe89d95750b2392f64221a7059957 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ExpressionParserConstants.java */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java
index 9787d5de554dad69ed24ecd67d18373520ed7a90..67209972ea615fce83a315a423a10b9fe77c9100 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ExpressionParserTokenManager.java */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/LValue.java b/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
index 42ef2963e0b2e8cbe371504a1da3a71806a65721..57e2950c63323cb4ff80a45d7a6a115eb4af723c 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.expr;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java b/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java
index 8ee53728f028a1baf60b576250d53d1ce26988c0..1f5c30b2699e5b9b5871bc0bf0fd71a2c12511d5 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 0.7pre6 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/Token.java b/src/share/classes/com/sun/tools/example/debug/expr/Token.java
index 534120014f30ff10097003cc56c1c94bda78fff7..1b6a63ddcf165606fc150e7f41939e4037842041 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/Token.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/Token.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. Token.java Version 0.7pre3 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java b/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java
index 16a40df286e38c035a0c9b63ef3c5b357c3b0f17..fc84002f1b0230ae01bdb6324bf000103c4c42d7 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 0.7pre2 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java b/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java
index e9a4c0b7808ecf57063c00667dee7f6b898d0714..4157f9819ecc1510fa5c02183e7032164403fbc0 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java b/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java
index bdddc24c65129a62dc8844f30fff3d3aef4ac091..f5561d11e9db88e01ff69a4ac739d714117a80fe 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
public class ClassManager {
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java b/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java
index 945243458bf5ec831de25aa1577334fb215c7093..bc4a766d0ef1af1006d3817bc0e00d2abd748d3f 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java b/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java
index 97ab320bf8be18a516447928778e63e8f8c35371..af1b9eb040c064c105a6492c9bfbed92169b1b52 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java b/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java
index 42157e4423edca9f0b7f69c078e5b6ba8377983a..1e0f78bde552fc6c03f821ad9164df9c66be245e 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java b/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java
index 4ac03a0b1694bb3186a0a760858572397a70c6fe..b4b63f0b45d19a3f38e7f5317c41321a7ee52aef 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
public interface ContextListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java b/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java
index 2ce04907ab2979807377738279ae093f66521ff8..01f96d453443a0a634163dda34819245660aedcc 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java b/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java
index 00c827fd3c9f0f1b5a24604c9bef10e447ce5dfa..90f296718780014b2701111a350888402b9881c9 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/Environment.java b/src/share/classes/com/sun/tools/example/debug/gui/Environment.java
index f9884c7d53d284d9439d3fbe392bbd457b770e42..6dc57a93496cfa05fe69548f9332208ce772a563 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/Environment.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/Environment.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/GUI.java b/src/share/classes/com/sun/tools/example/debug/gui/GUI.java
index 1fa88bb28a907019180afdf7d3ae54cb84c64aa2..b9ae173b36804b2ed8a925ae8209e9fbbbcbd69a 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/GUI.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/GUI.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/Icons.java b/src/share/classes/com/sun/tools/example/debug/gui/Icons.java
index bdbb700918b22dc33c8f6078ffff70d0f37903b6..87173d22b91996f56142ea061e686d7a1c1fafe1 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/Icons.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/Icons.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.Icon;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java b/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java
index 3a6f107bbbc667639f2946295a3fd5c7a5641411..6d6bf77820286702e3bcc6a8aff3a5a3d75be050 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.File;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java b/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java
index c224b57c4f8a842cce6688d857de97fa4c51667a..22329cf944e0717b069eefc04c380ecd6774aefb 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java b/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java
index 02982b9f70bec9122cd102a405242b48f8b50662..8031fab34cbefa04d53db377c25651f5f8f450e5 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java b/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java
index cb1d77b22feeb65d6d51db0a2a55518f73acaf67..febce6623248b12eb91fe7950c82dc19389035b6 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.List;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java b/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java
index c46219f4720cc81c4cf75f1a42bf329330e74c9c..920320644839371be4116060e879d6ddde485839 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java b/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java
index cf7c10c51c2d7acf96ddba61ef31d9435939e7ee..ebdca5417ed3f2da8cfe475dad5375a52a279de3 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java b/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java
index 413878f692b2ef8d5a363bc5cf1c26e0f73ce21a..321e162e1fbae63e5931bde0dbf103be42138464 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java b/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java
index 30905696660817f7ecbfb5d515c1d8911e5bdb97..9e6da5899a54f8232324c294f0b766fdb6ee552c 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java b/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java
index 47df28d1168c893d23e26ad9c26ddbb8e55be909..0de002a600f773b20e89c74a67fbc6a4a106be6a 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.tree.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java
index 94c1dbcaa16d1f7788b967aabeaf166756bb035a..d98251a6ba14d285c1c2d989e02038e5ae82ee6f 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
public interface SourceListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java
index eda83460e83424ebbdc1af45ab91955f17724e5e..7465bfb8cb0d33579df216b9e276cd2768935a98 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java
index b65be0b5a2ddbec68a56331bac767ba62bbfcb6e..95102185a75a167b5c671d002b090e51887f8eef 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java
index cecbeaf2479dd006728603cf732cb78b6496c4d6..a358c71efe883a2a5862a0fb9d8b1c01be4a9b0f 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java
index 5f572c70896055c20ac161c755db2986333ff51f..e21b027efbc9a969ad1f4b6cf5d7b0572e0a017e 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java b/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java
index 975571b0dad95dc0db81736eea885055408e43cb..88a26f9bdd1fa39e7b39b6abf3e5b04732078c21 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.EventObject;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java b/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java
index 1e3b68eabc684870c02954c01a1d1578e80efb49..405c7ec556e05fbe99cb96fb5c074930be1c1af1 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java b/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java
index 02cf374f0276ebbd1f882d99efe59e52afc311fc..05e183656c036254e59eb21acfe16b080c8c40a4 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java b/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java
index c99a4cd9e27c93ecb112b5c756a8b1b6046777b6..254e9fa976104b5701e7be46ed0bf3eeb45fde70 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.awt.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java
index bb3cda6921db52508d4436b3c2544033472ea56c..e284e77ca0932dcdb54f124f7741d7db7b52e21c 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import com.sun.tools.example.debug.bdi.OutputListener;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java
index 64b5ec2b4439fddcefa2a4e9068e411b08ea0b1d..462d4a53207fb8a4e730546993e3eee7fb705410 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java
index 1b83363d171a221b6f6a7e572cd5a893be115694..0f72fb437653a15d5902e35e869f0b3960c71dde 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java b/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java
index eb210dd4588ef61e867b6e16baa9d3ba59808c5c..35329bcc4a2c22bffe90c6927878dd9efb44d8c3 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
public class AmbiguousMethodException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java
index ed6c2a10fc57d13c91ed2ad7b35e55c9540def7a..87a9a30e7d540664efe1924fa66472b9afd0f961 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/Commands.java b/src/share/classes/com/sun/tools/example/debug/tty/Commands.java
index 14a88267fe6eda8a44451a5f27c6631e8594d440..d6fa909492888933595a9a3c78332c2c1fb8bbf6 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/Commands.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/Commands.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/Env.java b/src/share/classes/com/sun/tools/example/debug/tty/Env.java
index e39732692ccd6c189d5de723853901aec1025ac3..060f8a3a00d0801904081db0c9b9bd523bec40c9 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/Env.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/Env.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java b/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java
index 31e5035fe8e3588b87d0cfca7957ae2a17397918..55bf2bf66844715029f012dd297f20f50aaf3d81 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java b/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java
index f03e97d50141068117c2378328bb041e3b6119d8..97dabf90c998246576028e0058603545aa3af3c1 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java
index 5c0177b45485717ad2446fd9058933b00292c2ac..ba668d2ec8e69f1e6e5f4abccde26edf2627eac1 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java
index 58dc664f0ed5c03a95be86cc503ae511b70122e2..8ad6528da1581ed6f614280eda70a9b28db0f7aa 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.request.EventRequest;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java
index f1a3c27272478b5b75f914f004b0207ba1c49407..8c1e652b4bcffee1c5da9a03264646679d0b4ab7 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ReferenceType;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java b/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java
index 442b798aaae224d57f31ba42dd1c59b18cd7339d..8e188aabb7fc71e5af461c1ca6e58f1073b187a8 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
public class LineNotFoundException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java b/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java
index 3f2bf46c627b5f36174adeddebd868450b5f93a4..3e6492708d77a5bc3e625dd829190709591b3835 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
class MalformedMemberNameException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java b/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java
index 54e3b3726bb96055bdfaa74205bb268930c53ae7..b86d89f2bdfd9bba3915453496d127feddf49b2b 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java
@@ -22,6 +22,15 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.tools.example.debug.tty;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java
index ee3a63e969487c63e098a08743c742b57e9d06b5..846f74b21d8c98cb4db7e69dc396deaa95a4f792 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java
index cc4473cefd86958728fc0f14c57130e1f1b2ca25..e71922207aa86d725c790757a4eb9043a93d4c1d 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java
index 0e76be0cb4c5914ca9811c0eac649ff28fa01801..12f1fc6dcf7de6be2b7ac3b4dcc65c055111941d 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java b/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java
index 941f6c24722d447ddd97111b2184b0364f099d1e..e7f67f06a8109cdaf5b2a7bb62f51187a3b340d6 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.Location;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTY.java b/src/share/classes/com/sun/tools/example/debug/tty/TTY.java
index 6514592d67d71f5317a2d957c7d4fab24a67a57f..f86f1774f4cc06e3a906454185166d2e02ccc3c3 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTY.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTY.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java
index f6ba9d74ca71596014a09f18a954b67d3ddc9982..2c844c2d9a6303559c0b896c085af1c3654c394b 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java
index 2dcace1c486d05a050729560aa0513d903289785..1a82e3b7291cee0710926424fc9288d6699fa90f 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java
index dc84bdf4f9cbec6693b3ba78d028a96946b46c02..1bad495b9c679e3b92f662891c44aa8bbf43a0f2 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java b/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java
index dd3ad08106cf6d3b6cf8caf30072078c56ba32c7..c361a833c14d6cd902bb3222bf3e28c7b762e2c8 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java b/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java
index 8ac294fbcaf6bc6928d2342b09d007d76f7244c3..b1654ac851301e9e8bd9e200b8100690001560ab 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ThreadReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java b/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java
index 6acb2ea9d099e0aba3250356e677d7dd14a44228..31b996b744414403c9d99a7cb10ef714feae8f03 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java b/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java
index 0b77f9824a2f3735820498d5102ba2b645f77505..73a075b172bf460773002353a2a71a5657a45879 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java b/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java
index 780301ca60799c3e85318c5d47ded4c77c29c940..bde3c1220794ff9987e7b5fc4eda06463b277de1 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
public class VMNotConnectedException extends RuntimeException {
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java
index 6c7da78f48500deadf73d28d6e3822963ee00969..c9b3c4e0963a9e57da68e69f893ce2eb2bd9d0df 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
abstract class WatchpointSpec extends EventRequestSpec {
diff --git a/src/share/classes/com/sun/tools/example/trace/EventThread.java b/src/share/classes/com/sun/tools/example/trace/EventThread.java
index 229a41689890ac67611a4511d0055709a8ede6c0..22a3fdc31a4f34317d67c11b4bfb6610df577a4e 100644
--- a/src/share/classes/com/sun/tools/example/trace/EventThread.java
+++ b/src/share/classes/com/sun/tools/example/trace/EventThread.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.trace;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java b/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java
index b6e6e59c9174b83cc8249f9ac7368b842af23e05..be5b028186c1d94f8b347b6b714bfe4a17c2ca7c 100644
--- a/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java
+++ b/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.trace;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/trace/Trace.java b/src/share/classes/com/sun/tools/example/trace/Trace.java
index 2e1b961dde6de1728eda3b83e680d274787b8dc6..04fc09615b8e55e39c31de0342e92c4a874e4cc9 100644
--- a/src/share/classes/com/sun/tools/example/trace/Trace.java
+++ b/src/share/classes/com/sun/tools/example/trace/Trace.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.trace;
import com.sun.jdi.VirtualMachine;
diff --git a/src/share/classes/java/util/CurrencyData.properties b/src/share/classes/java/util/CurrencyData.properties
index 20425d0931ba762c1c11f03d369458b1877a4583..5cfc1397e6ed09ab13ca337f32a8fac071b05906 100644
--- a/src/share/classes/java/util/CurrencyData.properties
+++ b/src/share/classes/java/util/CurrencyData.properties
@@ -29,7 +29,7 @@ formatVersion=1
# It is a serial number that accompanies with each amendment, such as
# 'MAxxx.doc'
-dataVersion=140
+dataVersion=151
# List of all valid ISO 4217 currency codes.
# To ensure compatibility, do not remove codes.
@@ -37,7 +37,7 @@ dataVersion=140
all=ADP020-AED784-AFA004-AFN971-ALL008-AMD051-ANG532-AOA973-ARS032-ATS040-AUD036-\
AWG533-AYM945-AZM031-AZN944-BAM977-BBD052-BDT050-BEF056-BGL100-BGN975-BHD048-BIF108-\
BMD060-BND096-BOB068-BOV984-BRL986-BSD044-BTN064-BWP072-BYB112-BYR974-\
- BZD084-CAD124-CDF976-CHF756-CLF990-CLP152-CNY156-COP170-CRC188-CSD891-CUP192-\
+ BZD084-CAD124-CDF976-CHF756-CLF990-CLP152-CNY156-COP170-CRC188-CSD891-CUP192-CUC931-\
CVE132-CYP196-CZK203-DEM276-DJF262-DKK208-DOP214-DZD012-EEK233-EGP818-\
ERN232-ESP724-ETB230-EUR978-FIM246-FJD242-FKP238-FRF250-GBP826-GEL981-\
GHC288-GHS936-GIP292-GMD270-GNF324-GRD300-GTQ320-GWP624-GYD328-HKD344-HNL340-\
@@ -49,11 +49,11 @@ all=ADP020-AED784-AFA004-AFN971-ALL008-AMD051-ANG532-AOA973-ARS032-ATS040-AUD036
NIO558-NLG528-NOK578-NPR524-NZD554-OMR512-PAB590-PEN604-PGK598-PHP608-\
PKR586-PLN985-PTE620-PYG600-QAR634-ROL946-RON946-RSD941-RUB643-RUR810-RWF646-SAR682-\
SBD090-SCR690-SDD736-SDG938-SEK752-SGD702-SHP654-SIT705-SKK703-SLL694-SOS706-\
- SRD968-SRG740-STD678-SVC222-SYP760-SZL748-THB764-TJS972-TMM795-TND788-TOP776-\
+ SRD968-SRG740-STD678-SVC222-SYP760-SZL748-THB764-TJS972-TMM795-TMT934-TND788-TOP776-\
TPE626-TRL792-TRY949-TTD780-TWD901-TZS834-UAH980-UGX800-USD840-USN997-USS998-\
UYU858-UZS860-VEB862-VEF937-VND704-VUV548-WST882-XAF950-XAG961-XAU959-XBA955-\
XBB956-XBC957-XBD958-XCD951-XDR960-XFO000-XFU000-XOF952-XPD964-XPF953-\
- XPT962-XTS963-XXX999-YER886-YUM891-ZAR710-ZMK894-ZWD716-ZWN942
+ XPT962-XSU994-XTS963-XUA965-XXX999-YER886-YUM891-ZAR710-ZMK894-ZWD716-ZWL932-ZWN942-ZWR935
# Mappings from ISO 3166 country codes to ISO 4217 currency codes.
@@ -124,6 +124,8 @@ BZ=BZD
BJ=XOF
# BERMUDA
BM=BMD
+# Bonaire, Sint Eustatius and Saba
+BQ=USD
# BHUTAN
BT=BTN
# BOLIVIA
@@ -186,6 +188,8 @@ CI=XOF
HR=HRK
# CUBA
CU=CUP
+# Cura\u00e7ao
+CW=ANG
# CYPRUS
CY=EUR
# CZECH REPUBLIC
@@ -210,7 +214,7 @@ GQ=XAF
# ERITREA
ER=ERN
# ESTONIA
-EE=EEK
+EE=EUR
# ETHIOPIA
ET=ETB
# FALKLAND ISLANDS (MALVINAS)
@@ -476,7 +480,7 @@ SL=SLL
# SINGAPORE
SG=SGD
# SLOVAKIA
-SK=SKK
+SK=EUR
# SLOVENIA
SI=EUR
# SOLOMON ISLANDS
@@ -497,6 +501,8 @@ SD=SDG
SR=SRD
# SVALBARD AND JAN MAYEN
SJ=NOK
+# Sint Maarten (Dutch part)
+SX=ANG
# SWAZILAND
SZ=SZL
# SWEDEN
@@ -528,7 +534,7 @@ TN=TND
# TURKEY
TR=TRL;2004-12-31-22-00-00;TRY
# TURKMENISTAN
-TM=TMM
+TM=TMT
# TURKS AND CAICOS ISLANDS
TC=USD
# TUVALU
@@ -568,7 +574,7 @@ YE=YER
# ZAMBIA
ZM=ZMK
# ZIMBABWE
-ZW=ZWD
+ZW=ZWL
# List of currencies with 0, 1, OR 3 decimals for minor units, or where there
@@ -583,4 +589,4 @@ minor3=\
BHD-IQD-JOD-KWD-LYD-OMR-TND
minorUndefined=\
XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-\
- XPT-XTS-XXX
+ XPT-XSU-XTS-XUA-XXX
diff --git a/src/share/classes/java/util/LocaleISOData.java b/src/share/classes/java/util/LocaleISOData.java
index 5fe3fb56eff6c7980f4c1036f53ba4f4dde2dbfd..6330c34048b696ebb74e03e07cfa19b91a705f7f 100644
--- a/src/share/classes/java/util/LocaleISOData.java
+++ b/src/share/classes/java/util/LocaleISOData.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2011, 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
@@ -254,6 +254,7 @@ class LocaleISOData {
+ "BM" + "BMU" // Bermuda
+ "BN" + "BRN" // Brunei Darussalam
+ "BO" + "BOL" // Bolivia, Republic of
+ + "BQ" + "BES" // Bonaire, Sint Eustatius and Saba
+ "BR" + "BRA" // Brazil, Federative Republic of
+ "BS" + "BHS" // Bahamas, Commonwealth of the
+ "BT" + "BTN" // Bhutan, Kingdom of
@@ -277,6 +278,7 @@ class LocaleISOData {
// + "CS" + "SCG" // Serbia and Montenegro
+ "CU" + "CUB" // Cuba, Republic of
+ "CV" + "CPV" // Cape Verde, Republic of
+ + "CW" + "CUW" // Cura\u00e7ao
+ "CX" + "CXR" // Christmas Island
+ "CY" + "CYP" // Cyprus, Republic of
+ "CZ" + "CZE" // Czech Republic
@@ -433,6 +435,7 @@ class LocaleISOData {
+ "SR" + "SUR" // Suriname, Republic of
+ "ST" + "STP" // Sao Tome and Principe, Democratic Republic of
+ "SV" + "SLV" // El Salvador, Republic of
+ + "SX" + "SXM" // Sint Maarten (Dutch part)
+ "SY" + "SYR" // Syrian Arab Republic
+ "SZ" + "SWZ" // Swaziland, Kingdom of
+ "TC" + "TCA" // Turks and Caicos Islands
diff --git a/src/share/classes/javax/swing/SwingUtilities.java b/src/share/classes/javax/swing/SwingUtilities.java
index 06d59c68d7f5a2943837cf88bfaf922e632c71d4..1602eff01019e79c9f6c9720a46716698bb8648b 100644
--- a/src/share/classes/javax/swing/SwingUtilities.java
+++ b/src/share/classes/javax/swing/SwingUtilities.java
@@ -1274,8 +1274,7 @@ public class SwingUtilities implements SwingConstants
*
* Additional documentation and examples for this method can be
* found in
- * How to Use Threads,
- * in The Java Tutorial.
+ * Concurrency in Swing.
*
* As of 1.3 this method is just a cover for java.awt.EventQueue.invokeLater().
*
@@ -1326,8 +1325,7 @@ public class SwingUtilities implements SwingConstants
*
* Additional documentation and examples for this method can be
* found in
- * How to Use Threads,
- * in The Java Tutorial.
+ * Concurrency in Swing.
*
* As of 1.3 this method is just a cover for
* java.awt.EventQueue.invokeAndWait().
diff --git a/src/share/classes/javax/swing/SwingWorker.java b/src/share/classes/javax/swing/SwingWorker.java
index 8bad4c988a93567137047b29f701eea22843b012..294808188cd60740371f2586d3264da893f1bb43 100644
--- a/src/share/classes/javax/swing/SwingWorker.java
+++ b/src/share/classes/javax/swing/SwingWorker.java
@@ -50,8 +50,8 @@ import sun.swing.AccumulativeRunnable;
* When writing a multi-threaded application using Swing, there are
* two constraints to keep in mind:
* (refer to
- *
- * How to Use Threads
+ *
+ * Concurrency in Swing
* for more details):
*
* - Time-consuming tasks should not be run on the Event
diff --git a/src/share/classes/javax/swing/package.html b/src/share/classes/javax/swing/package.html
index 9399248a6f1b9e290453bb7d92c9f593b7d6ad1e..fcf18c28a5dacb97b15c6eb5cd2aa4b3243b7002 100644
--- a/src/share/classes/javax/swing/package.html
+++ b/src/share/classes/javax/swing/package.html
@@ -119,9 +119,9 @@ input. Refer to {@link javax.swing.SwingWorker} for the preferred way to do such
processing when working with Swing.
More information on this topic can be found in the
-Swing tutorial,
+Swing tutorial,
in particular the section on
-How to Use Threads.
+Concurrency in Swing.
diff --git a/src/share/classes/javax/swing/text/AbstractDocument.java b/src/share/classes/javax/swing/text/AbstractDocument.java
index 97c8dfe019515b38594f8d3fcc8b2ffc8b61844e..7dbc9ecef4fb79287642209c3c1979f0bd691594 100644
--- a/src/share/classes/javax/swing/text/AbstractDocument.java
+++ b/src/share/classes/javax/swing/text/AbstractDocument.java
@@ -409,8 +409,8 @@ public abstract class AbstractDocument implements Document, Serializable {
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param r the renderer to execute
*/
@@ -570,8 +570,8 @@ public abstract class AbstractDocument implements Document, Serializable {
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offs the starting offset >= 0
* @param len the number of characters to remove >= 0
@@ -683,8 +683,8 @@ public abstract class AbstractDocument implements Document, Serializable {
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offs the starting offset >= 0
* @param str the string to insert; does nothing with null/empty strings
@@ -818,8 +818,8 @@ public abstract class AbstractDocument implements Document, Serializable {
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offs the position in the model >= 0
* @return the position
diff --git a/src/share/classes/javax/swing/text/DefaultCaret.java b/src/share/classes/javax/swing/text/DefaultCaret.java
index 4cfddbe2fcd16b1901f325d37e922b1ecf455080..ecbfdf0d6f45e01447a699a3268fa18cf6e1ef1b 100644
--- a/src/share/classes/javax/swing/text/DefaultCaret.java
+++ b/src/share/classes/javax/swing/text/DefaultCaret.java
@@ -237,8 +237,8 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*/
protected final synchronized void repaint() {
if (component != null) {
diff --git a/src/share/classes/javax/swing/text/DefaultStyledDocument.java b/src/share/classes/javax/swing/text/DefaultStyledDocument.java
index 8552eb9514ba0bcb97647dad6133ee6bb0016669..0ab766bd8135614d9b85aa2a991b8cbbc65db9c0 100644
--- a/src/share/classes/javax/swing/text/DefaultStyledDocument.java
+++ b/src/share/classes/javax/swing/text/DefaultStyledDocument.java
@@ -173,8 +173,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offset the starting offset >= 0
* @param data the element data
@@ -426,8 +426,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param pos the offset from the start of the document >= 0
* @param s the logical style to assign to the paragraph, null if none
@@ -483,8 +483,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offset the offset in the document >= 0
* @param length the length >= 0
@@ -536,8 +536,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offset the offset into the paragraph >= 0
* @param length the number of characters affected >= 0
diff --git a/src/share/classes/javax/swing/text/JTextComponent.java b/src/share/classes/javax/swing/text/JTextComponent.java
index 113fd587ec2262bff8c6b4cde3c6ae7b02db8dd0..274ae9decc5c1b1ed589efa14025f42a304ec926 100644
--- a/src/share/classes/javax/swing/text/JTextComponent.java
+++ b/src/share/classes/javax/swing/text/JTextComponent.java
@@ -2213,8 +2213,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
*
* This method is thread-safe, although most Swing methods are not. Please
* see
- * How to Use Threads for more information.
+ * HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">
+ * Concurrency in Swing for more information.
*
*
* Sample Usage. This code snippet shows a cross-platform print
@@ -2471,8 +2471,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
*
* This method is thread-safe, although most Swing methods are not. Please
* see
- * How to Use Threads for more information.
+ * HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">
+ * Concurrency in Swing for more information.
*
*
* The returned {@code Printable} can be printed on any thread.
diff --git a/src/share/classes/javax/swing/text/PlainDocument.java b/src/share/classes/javax/swing/text/PlainDocument.java
index 84dc6849f4832c8deebc98c94845fd627448660e..05fd22110fa5da79db0de32bb7315a45d336c1be 100644
--- a/src/share/classes/javax/swing/text/PlainDocument.java
+++ b/src/share/classes/javax/swing/text/PlainDocument.java
@@ -100,8 +100,8 @@ public class PlainDocument extends AbstractDocument {
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offs the starting offset >= 0
* @param str the string to insert; does nothing with null/empty strings
diff --git a/src/share/classes/javax/swing/text/StyleContext.java b/src/share/classes/javax/swing/text/StyleContext.java
index c81b0f893c9c24ddd81bcc7140ad8109414e42cc..ca0eeea66d7a4f66885d33625746e35310dd73d7 100644
--- a/src/share/classes/javax/swing/text/StyleContext.java
+++ b/src/share/classes/javax/swing/text/StyleContext.java
@@ -292,8 +292,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param old the old attribute set
* @param name the non-null attribute name
@@ -321,8 +321,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param old the old attribute set
* @param attr the attributes to add
@@ -349,8 +349,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param old the old set of attributes
* @param name the non-null attribute name
@@ -377,8 +377,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param old the old attribute set
* @param names the attribute names
@@ -405,8 +405,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param old the old attribute set
* @param attrs the attributes
@@ -445,8 +445,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param a the set to reclaim
*/
diff --git a/src/share/classes/javax/swing/text/html/CSS.java b/src/share/classes/javax/swing/text/html/CSS.java
index 60efa6cc0131c378321fc7a36dfe004220795aca..f0f8cb2de11511e3c9afb92d18fdef6ebf5dcf24 100644
--- a/src/share/classes/javax/swing/text/html/CSS.java
+++ b/src/share/classes/javax/swing/text/html/CSS.java
@@ -806,15 +806,11 @@ public class CSS implements Serializable {
// translate border width into the cells, if it has non-zero value.
AttributeSet tableAttr = elem.getParentElement().
getParentElement().getAttributes();
- int borderWidth;
- try {
- borderWidth = Integer.parseInt(
- (String) tableAttr.getAttribute(HTML.Attribute.BORDER));
- } catch (NumberFormatException e) {
- borderWidth = 0;
- }
+
+ int borderWidth = getTableBorder(tableAttr);
if (borderWidth > 0) {
- translateAttribute(HTML.Attribute.BORDER, tableAttr, cssAttrSet);
+ // If table contains the BORDER attribute cells should have border width equals 1
+ translateAttribute(HTML.Attribute.BORDER, "1", cssAttrSet);
}
String pad = (String)tableAttr.getAttribute(HTML.Attribute.CELLPADDING);
if (pad != null) {
@@ -850,6 +846,21 @@ public class CSS implements Serializable {
return cssAttrSet;
}
+ private static int getTableBorder(AttributeSet tableAttr) {
+ String borderValue = (String) tableAttr.getAttribute(HTML.Attribute.BORDER);
+
+ if (borderValue == HTML.NULL_ATTRIBUTE_VALUE || "".equals(borderValue)) {
+ // Some browsers accept
and with the same semantics as BORDER=1
+ return 1;
+ }
+
+ try {
+ return Integer.parseInt(borderValue);
+ } catch (NumberFormatException e) {
+ return 0;
+ }
+ }
+
private static final Hashtable attributeMap = new Hashtable();
private static final Hashtable valueMap = new Hashtable();
@@ -1400,17 +1411,20 @@ public class CSS implements Serializable {
}
}
} else {
-
- /*
- * The html size attribute has a mapping in the CSS world only
- * if it is par of a font or base font tag.
- */
-
if (key == HTML.Attribute.SIZE && !isHTMLFontTag(tag)) {
- continue;
+ /*
+ * The html size attribute has a mapping in the CSS world only
+ * if it is par of a font or base font tag.
+ */
+ } else if (tag == HTML.Tag.TABLE && key == HTML.Attribute.BORDER) {
+ int borderWidth = getTableBorder(htmlAttrSet);
+
+ if (borderWidth > 0) {
+ translateAttribute(HTML.Attribute.BORDER, Integer.toString(borderWidth), cssAttrSet);
+ }
+ } else {
+ translateAttribute(key, (String) htmlAttrSet.getAttribute(key), cssAttrSet);
}
-
- translateAttribute(key, htmlAttrSet, cssAttrSet);
}
} else if (name instanceof CSS.Attribute) {
cssAttrSet.addAttribute(name, htmlAttrSet.getAttribute(name));
@@ -1419,7 +1433,7 @@ public class CSS implements Serializable {
}
private void translateAttribute(HTML.Attribute key,
- AttributeSet htmlAttrSet,
+ String htmlAttrValue,
MutableAttributeSet cssAttrSet) {
/*
* In the case of all remaining HTML.Attribute's they
@@ -1427,8 +1441,6 @@ public class CSS implements Serializable {
*/
CSS.Attribute[] cssAttrList = getCssAttribute(key);
- String htmlAttrValue = (String)htmlAttrSet.getAttribute(key);
-
if (cssAttrList == null || htmlAttrValue == null) {
return;
}
diff --git a/src/share/classes/javax/swing/text/html/HTMLDocument.java b/src/share/classes/javax/swing/text/html/HTMLDocument.java
index 1ce7893afe48a69ee652ab03474633b1cbc05119..5fc8c0f2bf48fd00fd665bd10dfc945a978c9d32 100644
--- a/src/share/classes/javax/swing/text/html/HTMLDocument.java
+++ b/src/share/classes/javax/swing/text/html/HTMLDocument.java
@@ -474,8 +474,8 @@ public class HTMLDocument extends DefaultStyledDocument {
*
* This method is thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @param offset the offset into the paragraph (must be at least 0)
* @param length the number of characters affected (must be at least 0)
diff --git a/src/share/classes/javax/swing/text/html/TableView.java b/src/share/classes/javax/swing/text/html/TableView.java
index a941fbdfa78f9482ebb1ecc0029c4bc5092aecb6..65f4fc01ae256d1705c73825aee4d22565070139 100644
--- a/src/share/classes/javax/swing/text/html/TableView.java
+++ b/src/share/classes/javax/swing/text/html/TableView.java
@@ -242,7 +242,8 @@ import javax.swing.text.*;
if (lv != null) {
cellSpacing = (int) lv.getValue();
} else {
- cellSpacing = 0;
+ // Default cell spacing equals 2
+ cellSpacing = 2;
}
lv = (CSS.LengthValue)
attr.getAttribute(CSS.Attribute.BORDER_TOP_WIDTH);
@@ -251,8 +252,7 @@ import javax.swing.text.*;
} else {
borderWidth = 0;
}
-
- }
+ }
}
/**
diff --git a/src/share/classes/sun/swing/PrintingStatus.java b/src/share/classes/sun/swing/PrintingStatus.java
index 19b26dafadab08bd10dd2fbe3991adeeb6a6d22e..af3658bddef438c0acfef26faf8d142befa94a38 100644
--- a/src/share/classes/sun/swing/PrintingStatus.java
+++ b/src/share/classes/sun/swing/PrintingStatus.java
@@ -43,8 +43,8 @@ import java.lang.reflect.InvocationTargetException;
*
* Methods of these class are thread safe, although most Swing methods
* are not. Please see
- * How
- * to Use Threads for more information.
+ * Concurrency
+ * in Swing for more information.
*
* @author Alexander Potochkin
* @since 1.6
diff --git a/src/share/classes/sun/util/resources/CurrencyNames.properties b/src/share/classes/sun/util/resources/CurrencyNames.properties
index 6fac2dd43aa57fd12c29f15eea56b0b2b6b52031..1339e056aef78129b13063fb21c9f9eb714326b4 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames.properties
@@ -106,6 +106,7 @@ CNY=CNY
COP=COP
CRC=CRC
CSD=CSD
+CUC=CUC
CUP=CUP
CVE=CVE
CYP=CYP
@@ -232,6 +233,7 @@ SZL=SZL
THB=THB
TJS=TJS
TMM=TMM
+TMT=TMT
TND=TND
TOP=TOP
TPE=TPE
@@ -267,14 +269,18 @@ XOF=XOF
XPD=XPD
XPF=XPF
XPT=XPT
+XSU=XSU
XTS=XTS
+XUA=XUA
XXX=XXX
YER=YER
YUM=YUM
ZAR=ZAR
ZMK=ZMK
ZWD=ZWD
+ZWL=ZWL
ZWN=ZWN
+ZWR=ZWR
adp=Andorran Peseta
aed=United Arab Emirates Dirham
afa=Afghan Afghani (1927-2002)
@@ -317,6 +323,7 @@ cny=Chinese Yuan
cop=Colombian Peso
crc=Costa Rican Col\u00f3n
csd=Serbian Dinar (2002-2006)
+cuc=Cuban Convertible Peso
cup=Cuban Peso
cve=Cape Verdean Escudo
cyp=Cypriot Pound
@@ -443,6 +450,7 @@ szl=Swazi Lilangeni
thb=Thai Baht
tjs=Tajikistani Somoni
tmm=Turkmenistani Manat (1993-2009)
+tmt=Turkmenistani Manat
tnd=Tunisian Dinar
top=Tongan Pa\u02bbanga
tpe=Timorese Escudo
@@ -485,3 +493,5 @@ yum=Yugoslavian New Dinar (1994-2002)
zar=South African Rand
zmk=Zambian Kwacha
zwd=Zimbabwean Dollar (1980-2008)
+zwl=Zimbabwean Dollar (2009)
+zwr=Zimbabwean Dollar (2008)
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_de.properties b/src/share/classes/sun/util/resources/CurrencyNames_de.properties
index 5e8f14b8de1e0087d1b22914cddb3ae7019eda2c..7f193bcc8aa11770e8d1b95f0c5e56d476c59ac7 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_de.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_de.properties
@@ -105,6 +105,7 @@ cny=Renminbi Yuan
cop=Kolumbianischer Peso
crc=Costa Rica Colon
csd=Alter Serbischer Dinar
+cuc=Kubanischer Peso (konvertibel)
cup=Kubanischer Peso
cve=Kap Verde Escudo
cyp=Zypern-Pfund
@@ -229,6 +230,7 @@ szl=Lilangeni
thb=Baht
tjs=Tadschikistan Somoni
tmm=Turkmenistan-Manat
+tmt=Neuer Turkmenistan-Manat
tnd=Tunesischer Dinar
top=Pa\u02bbanga
tpe=Timor-Escudo
@@ -270,3 +272,4 @@ yum=Neuer Dinar
zar=S\u00fcdafrikanischer Rand
zmk=Kwacha
zwd=Simbabwe-Dollar
+zwl=Simbabwe-Dollar (2009)
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_es.properties b/src/share/classes/sun/util/resources/CurrencyNames_es.properties
index c973b4847a28974408baf6f20cec5a171d8a211a..9ea7553e092d92a4d11436bf714561929229bf68 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_es.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_es.properties
@@ -105,6 +105,7 @@ cny=yuan renminbi chino
cop=peso colombiano
crc=col\u00f3n costarricense
csd=antiguo dinar serbio
+cuc=peso cubano convertible
cup=peso cubano
cve=escudo de Cabo Verde
cyp=libra chipriota
@@ -231,6 +232,7 @@ szl=lilangeni suazi
thb=baht tailand\u00e9s
tjs=somoni tayiko
tmm=manat turcomano
+tmt=nuevo manat turcomano
tnd=dinar tunecino
top=pa\u02bbanga tongano
tpe=escudo timorense
@@ -273,3 +275,4 @@ yum=super dinar yugoslavo
zar=rand sudafricano
zmk=kwacha zambiano
zwd=d\u00f3lar de Zimbabue
+zwl=d\u00f3lar zimbabuense
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_es_CU.properties b/src/share/classes/sun/util/resources/CurrencyNames_es_CU.properties
new file mode 100644
index 0000000000000000000000000000000000000000..23ebbefdf113dca3166180da11daedbda61f4897
--- /dev/null
+++ b/src/share/classes/sun/util/resources/CurrencyNames_es_CU.properties
@@ -0,0 +1,67 @@
+#
+# Copyright (c) 2011, 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.
+#
+
+#
+# COPYRIGHT AND PERMISSION NOTICE
+#
+# Copyright (C) 1991-2011 Unicode, Inc. All rights reserved.
+# Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of the Unicode data files and any associated documentation (the
+# "Data Files") or Unicode software and any associated documentation
+# (the "Software") to deal in the Data Files or Software without
+# restriction, including without limitation the rights to use, copy,
+# modify, merge, publish, distribute, and/or sell copies of the Data
+# Files or Software, and to permit persons to whom the Data Files or
+# Software are furnished to do so, provided that (a) the above copyright
+# notice(s) and this permission notice appear with all copies of the
+# Data Files or Software, (b) both the above copyright notice(s) and
+# this permission notice appear in associated documentation, and (c)
+# there is clear notice in each modified Data File or in the Software as
+# well as in the documentation associated with the Data File(s) or
+# Software that the data or software has been modified.
+#
+# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
+# ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT
+# HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR
+# ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR
+# SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in these Data Files or Software without prior
+# written authorization of the copyright holder.
+
+#
+# Generated automatically from the Common Locale Data Repository. DO NOT EDIT!
+#
+CUP=CU$
+CUC=CUC$
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_et_EE.properties b/src/share/classes/sun/util/resources/CurrencyNames_et_EE.properties
index d2f9259a41c2173fd05d91b17114fcff83f0909e..333360ec15cfc810bbc33ee5e44aca00e294178c 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_et_EE.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_et_EE.properties
@@ -1,5 +1,5 @@
-#
-# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+#
+# Copyright (c) 2005, 2011, 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
@@ -21,18 +21,49 @@
# 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.
-#
+#
-# (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
-# (C) Copyright IBM Corp. 1996 - 1999 - All Rights Reserved
#
-# The original version of this source code and documentation
-# is copyrighted and owned by Taligent, Inc., a wholly-owned
-# subsidiary of IBM. These materials are provided under terms
-# of a License Agreement between Taligent and Sun. This technology
-# is protected by multiple US and International patents.
+# COPYRIGHT AND PERMISSION NOTICE
+#
+# Copyright (C) 1991-2011 Unicode, Inc. All rights reserved.
+# Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of the Unicode data files and any associated documentation (the
+# "Data Files") or Unicode software and any associated documentation
+# (the "Software") to deal in the Data Files or Software without
+# restriction, including without limitation the rights to use, copy,
+# modify, merge, publish, distribute, and/or sell copies of the Data
+# Files or Software, and to permit persons to whom the Data Files or
+# Software are furnished to do so, provided that (a) the above copyright
+# notice(s) and this permission notice appear with all copies of the
+# Data Files or Software, (b) both the above copyright notice(s) and
+# this permission notice appear in associated documentation, and (c)
+# there is clear notice in each modified Data File or in the Software as
+# well as in the documentation associated with the Data File(s) or
+# Software that the data or software has been modified.
#
-# This notice and attribution to Taligent may not be removed.
-# Taligent is a registered trademark of Taligent, Inc.
+# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
+# ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT
+# HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR
+# ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR
+# SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in these Data Files or Software without prior
+# written authorization of the copyright holder.
+#
+# Generated automatically from the Common Locale Data Repository. DO NOT EDIT!
+#
EEK=kr
+eek=Eesti kroon
+EUR=\u20ac
+eur=euro
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_fr.properties b/src/share/classes/sun/util/resources/CurrencyNames_fr.properties
index 3bea1c0216f57ad52caac9401bd27a8ac3d5d6c7..ecba10c9825460ebe448ba28e6c09283f11ce314 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_fr.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_fr.properties
@@ -105,6 +105,7 @@ cny=yuan renminbi chinois
cop=peso colombien
crc=col\u00f3n costaricain
csd=dinar serbo-mont\u00e9n\u00e9grin
+cuc=peso cubain convertible
cup=peso cubain
cve=escudo capverdien
cyp=livre chypriote
@@ -231,6 +232,7 @@ szl=lilangeni swazi
thb=baht tha\u00eflandais
tjs=somoni tadjik
tmm=manat turkm\u00e8ne
+tmt=nouveau manat turkm\u00e8ne
tnd=dinar tunisien
top=pa\u2019anga tongan
tpe=escudo timorais
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_ja.properties b/src/share/classes/sun/util/resources/CurrencyNames_ja.properties
index a47623897d01ea2fdf584935bf836bc935826859..afbc0c738df25982beb0301541e1b96618fcba19 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_ja.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_ja.properties
@@ -105,6 +105,7 @@ cny=\u4e2d\u56fd\u4eba\u6c11\u5143
cop=\u30b3\u30ed\u30f3\u30d3\u30a2 \u30da\u30bd
crc=\u30b3\u30b9\u30bf\u30ea\u30ab \u30b3\u30ed\u30f3
csd=\u30bb\u30eb\u30d3\u30a2\u30f3 \u30c7\u30a3\u30ca\u30fc\u30eb
+cuc=\u30ad\u30e5\u30fc\u30d0 \u514c\u63db\u30da\u30bd
cup=\u30ad\u30e5\u30fc\u30d0 \u30da\u30bd
cve=\u30ab\u30fc\u30dc\u30d9\u30eb\u30c7 \u30a8\u30b9\u30af\u30fc\u30c9
cyp=\u30ad\u30d7\u30ed\u30b9 \u30dd\u30f3\u30c9
@@ -231,6 +232,7 @@ szl=\u30b9\u30ef\u30b8\u30e9\u30f3\u30c9 \u30ea\u30e9\u30f3\u30b2\u30cb
thb=\u30bf\u30a4 \u30d0\u30fc\u30c4
tjs=\u30bf\u30b8\u30ad\u30b9\u30bf\u30f3 \u30bd\u30e2\u30cb
tmm=\u30c8\u30eb\u30af\u30e1\u30cb\u30b9\u30bf\u30f3 \u30de\u30ca\u30c8
+tmt=\u30c8\u30eb\u30af\u30e1\u30cb\u30b9\u30bf\u30f3 \u65b0\u30de\u30ca\u30c8
tnd=\u30c1\u30e5\u30cb\u30b8\u30a2 \u30c7\u30a3\u30ca\u30fc\u30eb
top=\u30c8\u30f3\u30ac \u30d1\u30fb\u30a2\u30f3\u30ac
tpe=\u30c6\u30a3\u30e2\u30fc\u30eb \u30a8\u30b9\u30af\u30fc\u30c9
@@ -273,3 +275,4 @@ yum=\u30e6\u30fc\u30b4\u30b9\u30e9\u30d3\u30a2 \u30b9\u30fc\u30d1\u30fc \u30c7\u
zar=\u5357\u30a2\u30d5\u30ea\u30ab \u30e9\u30f3\u30c9
zmk=\u30b6\u30f3\u30d3\u30a2 \u30af\u30ef\u30c1\u30e3
zwd=\u30b8\u30f3\u30d0\u30d6\u30a8 \u30c9\u30eb
+zwl=\u30b8\u30f3\u30d0\u30d6\u30a8 \u30c9\u30eb (2009)
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_ko.properties b/src/share/classes/sun/util/resources/CurrencyNames_ko.properties
index 608e5d5c21485c3e14fb8fc1eb284c017a514ddf..959bf7cee0732cc4d70dbefeda8ad616d2394bf9 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_ko.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_ko.properties
@@ -105,6 +105,7 @@ cny=\uc911\uad6d \uc704\uc548 \uc778\ubbfc\ud3d0
cop=\ucf5c\ub86c\ube44\uc544 \ud398\uc18c
crc=\ucf54\uc2a4\ud0c0\ub9ac\uce74 \ucf5c\ub860
csd=\uace0 \uc138\ub974\ube44\uc544 \ub514\ub098\ub974
+cuc=\ucfe0\ubc14 \ud0dc\ud658 \ud398\uc18c
cup=\ucfe0\ubc14 \ud398\uc18c
cve=\uce74\ubcf4\ubca0\ub974\ub370 \uc5d0\uc2a4\ucfe0\ub3c4
cyp=\uc2f8\uc774\ud504\ub7ec\uc2a4 \ud30c\uc6b4\ub4dc
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_pt.properties b/src/share/classes/sun/util/resources/CurrencyNames_pt.properties
index d033ea7e6762afce6fa35ada3db6a243f98c9fd6..20a62c8bb62775a703c64ba6cc579ae56a306083 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_pt.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_pt.properties
@@ -87,6 +87,7 @@ bhd=Dinar bareinita
bif=Franco do Burundi
bmd=D\u00f3lar das Bermudas
bnd=D\u00f3lar do Brunei
+bob=Boliviano
bov=Mvdol boliviano
brl=Real brasileiro
bsd=D\u00f3lar das Bahamas
@@ -104,6 +105,7 @@ cny=Yuan Renminbi chin\u00eas
cop=Peso colombiano
crc=Colon da Costa Rica
csd=Dinar s\u00e9rvio antigo
+cuc=Peso cubano convers\u00edvel
cup=Peso cubano
cve=Escudo cabo-verdiano
cyp=Libra cipriota
@@ -229,6 +231,7 @@ szl=Lilangeni da Suazil\u00e2ndia
thb=Baht tailand\u00eas
tjs=Somoni tadjique
tmm=Manat do Turcomenist\u00e3o
+tmt=Novo Manat do Turcomenist\u00e3o
tnd=Dinar tunisiano
top=Pa\u02bbanga de Tonga
tpe=Escudo timorense
@@ -271,3 +274,5 @@ yum=Dinar noviy iugoslavo
zar=Rand sul-africano
zmk=Cuacha zambiano
zwd=D\u00f3lar do Zimb\u00e1bue
+zwl=D\u00f3lar do Zimb\u00e1bue (2009)
+zwr=D\u00f3lar do Zimb\u00e1bue (2008)
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_sk_SK.properties b/src/share/classes/sun/util/resources/CurrencyNames_sk_SK.properties
index a2130a2a138289e3530ef052bda8c5670029bf0f..eb10a65ca9a20ecbec8262bbf449d483c962fe09 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_sk_SK.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_sk_SK.properties
@@ -1,5 +1,5 @@
-#
-# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+#
+# Copyright (c) 2005, 2011, 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
@@ -21,18 +21,48 @@
# 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.
-#
+#
-# (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
-# (C) Copyright IBM Corp. 1996 - 1999 - All Rights Reserved
#
-# The original version of this source code and documentation
-# is copyrighted and owned by Taligent, Inc., a wholly-owned
-# subsidiary of IBM. These materials are provided under terms
-# of a License Agreement between Taligent and Sun. This technology
-# is protected by multiple US and International patents.
+# COPYRIGHT AND PERMISSION NOTICE
+#
+# Copyright (C) 1991-2011 Unicode, Inc. All rights reserved.
+# Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of the Unicode data files and any associated documentation (the
+# "Data Files") or Unicode software and any associated documentation
+# (the "Software") to deal in the Data Files or Software without
+# restriction, including without limitation the rights to use, copy,
+# modify, merge, publish, distribute, and/or sell copies of the Data
+# Files or Software, and to permit persons to whom the Data Files or
+# Software are furnished to do so, provided that (a) the above copyright
+# notice(s) and this permission notice appear with all copies of the
+# Data Files or Software, (b) both the above copyright notice(s) and
+# this permission notice appear in associated documentation, and (c)
+# there is clear notice in each modified Data File or in the Software as
+# well as in the documentation associated with the Data File(s) or
+# Software that the data or software has been modified.
#
-# This notice and attribution to Taligent may not be removed.
-# Taligent is a registered trademark of Taligent, Inc.
+# THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
+# ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT
+# HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR
+# ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR
+# SOFTWARE.
+#
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in these Data Files or Software without prior
+# written authorization of the copyright holder.
+#
+# Generated automatically from the Common Locale Data Repository. DO NOT EDIT!
+#
SKK=Sk
+skk=Slovensk\u00e1 koruna
+EUR=\u20ac
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_zh_CN.properties b/src/share/classes/sun/util/resources/CurrencyNames_zh_CN.properties
index ed541a1f7561de77ee214d351aa48316c6e6ed9b..804ac91dddfd72bf754d4d15cec887657c3af4e1 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_zh_CN.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_zh_CN.properties
@@ -106,6 +106,7 @@ clp=\u667a\u5229\u6bd4\u7d22
cop=\u54e5\u4f26\u6bd4\u4e9a\u6bd4\u7d22
crc=\u54e5\u65af\u8fbe\u9ece\u52a0\u79d1\u6717
csd=\u65e7\u585e\u5c14\u7ef4\u4e9a\u7b2c\u7eb3\u5c14
+cuc=\u53e4\u5df4\u53ef\u5151\u6362\u6bd4\u7d22
cup=\u53e4\u5df4\u6bd4\u7d22
cve=\u4f5b\u5f97\u89d2\u57c3\u65af\u5e93\u591a
cyp=\u585e\u6d66\u8def\u65af\u9551
@@ -231,6 +232,7 @@ szl=\u65af\u5a01\u58eb\u5170\u91cc\u5170\u5409\u5c3c
thb=\u6cf0\u94e2
tjs=\u5854\u5409\u514b\u65af\u5766\u7d22\u83ab\u5c3c
tmm=\u571f\u5e93\u66fc\u65af\u5766\u9a6c\u7eb3\u7279
+tmt=\u571f\u5e93\u66fc\u65af\u5766\u65b0\u9a6c\u7eb3\u7279
tnd=\u7a81\u5c3c\u65af\u7b2c\u7eb3\u5c14
top=\u6c64\u52a0\u6f58\u52a0
tpe=\u5e1d\u6c76\u57c3\u65af\u5e93\u591a
@@ -273,3 +275,4 @@ yum=\u5357\u65af\u62c9\u592b\u504c\u5a01\u7b2c\u7eb3\u5c14
zar=\u5357\u975e\u5170\u7279
zmk=\u8d5e\u6bd4\u4e9a\u514b\u74e6\u67e5
zwd=\u6d25\u5df4\u5e03\u97e6\u5143
+zwl=\u6d25\u5df4\u5e03\u97e6\u5143 (2009)
diff --git a/src/share/classes/sun/util/resources/CurrencyNames_zh_TW.properties b/src/share/classes/sun/util/resources/CurrencyNames_zh_TW.properties
index 9630c6eeb685ba44d9fdbd8d7833751cf8aa8f05..3ec99f11a3a2cc35efa5123ef742ff652d34a941 100644
--- a/src/share/classes/sun/util/resources/CurrencyNames_zh_TW.properties
+++ b/src/share/classes/sun/util/resources/CurrencyNames_zh_TW.properties
@@ -107,6 +107,7 @@ cny=\u4eba\u6c11\u5e63
cop=\u54e5\u502b\u6bd4\u4e9e\u62ab\u7d22
crc=\u54e5\u65af\u5927\u9ece\u52a0\u79d1\u90ce
csd=\u65e7\u585e\u5c14\u7ef4\u4e9a\u7b2c\u7eb3\u5c14
+cuc=\u53e4\u5df4\u53ef\u8f49\u63db\u62ab\u7d22
cup=\u53e4\u5df4\u62ab\u7d22
cve=\u7dad\u5fb7\u89d2\u57c3\u65af\u5eab\u591a
cyp=\u8cfd\u666e\u52d2\u65af\u938a
@@ -233,6 +234,7 @@ szl=\u65af\u5a01\u58eb\u5170\u91cc\u5170\u5409\u5c3c
thb=\u6cf0\u9296
tjs=\u5854\u5409\u514b\u65af\u5766\u7d22\u83ab\u5c3c
tmm=\u571f\u5eab\u66fc\u99ac\u7d0d\u7279
+tmt=\u571f\u5eab\u66fc\u65b0\u99ac\u7d0d\u7279
tnd=\u7a81\u5c3c\u897f\u4e9e\u7b2c\u7d0d\u723e
top=\u6771\u52a0\u6f58\u52a0
tpe=\u5e1d\u6c76\u57c3\u65af\u5e93\u591a
@@ -274,3 +276,4 @@ yum=\u5357\u65af\u62c9\u592b\u632a\u5a01\u4e9e\u7b2c\u7d0d\u723e
zar=\u5357\u975e\u862d\u7279
zmk=\u5c1a\u6bd4\u4e9e\u514b\u74e6\u67e5
zwd=\u8f9b\u5df4\u5a01\u5143
+zwl=\u8f9b\u5df4\u5a01\u5143 (2009)
diff --git a/src/share/classes/sun/util/resources/LocaleNames.properties b/src/share/classes/sun/util/resources/LocaleNames.properties
index 6756add95af5108ac13b94d997688df635b8e295..0552c94e8912506aac8ecdc0b7add3fc41b1b7f6 100644
--- a/src/share/classes/sun/util/resources/LocaleNames.properties
+++ b/src/share/classes/sun/util/resources/LocaleNames.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2011, 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
@@ -898,6 +898,7 @@ BL=Saint Barth\u00e9lemy
BM=Bermuda
BN=Brunei
BO=Bolivia
+BQ=Bonaire, Sint Eustatius and Saba
BR=Brazil
BS=Bahamas
BT=Bhutan
@@ -921,6 +922,7 @@ CR=Costa Rica
CS=Serbia and Montenegro
CU=Cuba
CV=Cape Verde
+CW=Cura\u00e7ao
CX=Christmas Island
CY=Cyprus
CZ=Czech Republic
@@ -1077,6 +1079,7 @@ SO=Somalia
SR=Suriname
ST=Sao Tome And Principe
SV=El Salvador
+SX=Sint Maarten (Dutch part)
SY=Syria
SZ=Swaziland
TC=Turks And Caicos Islands
diff --git a/src/share/demo/README b/src/share/demo/README
new file mode 100644
index 0000000000000000000000000000000000000000..ae56b64d728009d7ebce9f133c946e613767333a
--- /dev/null
+++ b/src/share/demo/README
@@ -0,0 +1,6 @@
+The source code provided with samples and demos for the JDK is meant
+to illustrate the usage of a given feature or technique and has been
+deliberately simplified. Additional steps required for a
+production-quality application, such as security checks, input
+validation, and proper error handling, might not be present in the
+sample code.
diff --git a/src/share/demo/applets/ArcTest/ArcTest.java b/src/share/demo/applets/ArcTest/ArcTest.java
index d58ef44b340cf07e38322e6a7b2ea51b6a81ff08..9e9e02c574516e8528489d2ffda70e01cda038b4 100644
--- a/src/share/demo/applets/ArcTest/ArcTest.java
+++ b/src/share/demo/applets/ArcTest/ArcTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.*;
import java.awt.event.*;
diff --git a/src/share/demo/applets/BarChart/BarChart.java b/src/share/demo/applets/BarChart/BarChart.java
index 81cab8fcf3b9905271e57888c0afec5d82357dc7..7bac8af882f376402872b278720f26c653c91bea 100644
--- a/src/share/demo/applets/BarChart/BarChart.java
+++ b/src/share/demo/applets/BarChart/BarChart.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.*;
diff --git a/src/share/demo/applets/Blink/Blink.java b/src/share/demo/applets/Blink/Blink.java
index ab6f9795cc6ad3d16df93e52e0a5fc7b99b306a3..de3f69f0ab424447f7f6097e9c2cc28c81d525c3 100644
--- a/src/share/demo/applets/Blink/Blink.java
+++ b/src/share/demo/applets/Blink/Blink.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* I love blinking things.
diff --git a/src/share/demo/applets/CardTest/CardTest.java b/src/share/demo/applets/CardTest/CardTest.java
index 38110efaf5b6564b54510235983d3c969ba538be..b1395a4a41f14971bd30deb433ea722ea4815d2a 100644
--- a/src/share/demo/applets/CardTest/CardTest.java
+++ b/src/share/demo/applets/CardTest/CardTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.BorderLayout;
diff --git a/src/share/demo/applets/Clock/Clock.java b/src/share/demo/applets/Clock/Clock.java
index ea698ff503e4509c8f92a0ddfc9d01dd26047eb3..6a41b4598445458cec8c9de50127428d3ccc07f2 100644
--- a/src/share/demo/applets/Clock/Clock.java
+++ b/src/share/demo/applets/Clock/Clock.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.Color;
diff --git a/src/share/demo/applets/DitherTest/DitherTest.java b/src/share/demo/applets/DitherTest/DitherTest.java
index 04165735702d624eaf285491c3431ed38ae44b8b..4875042a4305bbe25b236ae13c2f7abf45755337 100644
--- a/src/share/demo/applets/DitherTest/DitherTest.java
+++ b/src/share/demo/applets/DitherTest/DitherTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.AWTEvent;
diff --git a/src/share/demo/applets/DrawTest/DrawTest.java b/src/share/demo/applets/DrawTest/DrawTest.java
index 50af991079e65ae81ed4892ddb9229f065646969..b2edecdc4bbec7be47aabcc422d848982b3cbc31 100644
--- a/src/share/demo/applets/DrawTest/DrawTest.java
+++ b/src/share/demo/applets/DrawTest/DrawTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.BorderLayout;
diff --git a/src/share/demo/applets/Fractal/CLSFractal.java b/src/share/demo/applets/Fractal/CLSFractal.java
index be391e6176f2cbff678a8af99a5937424a6e52f3..9f7812cff97b612b663cf9fb501368520ee84d48 100644
--- a/src/share/demo/applets/Fractal/CLSFractal.java
+++ b/src/share/demo/applets/Fractal/CLSFractal.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Graphics;
import java.util.Stack;
diff --git a/src/share/demo/applets/GraphicsTest/AppletFrame.java b/src/share/demo/applets/GraphicsTest/AppletFrame.java
index bf61a181a7890246f6119c79f9f11a17227f9797..53b76289132c19e4fac779607787a9a089c03efd 100644
--- a/src/share/demo/applets/GraphicsTest/AppletFrame.java
+++ b/src/share/demo/applets/GraphicsTest/AppletFrame.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Frame;
import java.awt.Event;
diff --git a/src/share/demo/applets/GraphicsTest/GraphicsTest.java b/src/share/demo/applets/GraphicsTest/GraphicsTest.java
index 821b119e50a4dc2d0bafdc6d2cba141cf8aa48e9..573c5878fa2904eab912aa8e9378b22ab2555325 100644
--- a/src/share/demo/applets/GraphicsTest/GraphicsTest.java
+++ b/src/share/demo/applets/GraphicsTest/GraphicsTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.*;
import java.util.*;
diff --git a/src/share/demo/applets/MoleculeViewer/Matrix3D.java b/src/share/demo/applets/MoleculeViewer/Matrix3D.java
index 0dda042c3c9a6faeadc7d2d7f27f99112432d2ff..e7afced493da2f08bf9e311844641cb3a2ea4d3d 100644
--- a/src/share/demo/applets/MoleculeViewer/Matrix3D.java
+++ b/src/share/demo/applets/MoleculeViewer/Matrix3D.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/** A fairly conventional 3D matrix object that can transform sets of
3D points and perform a variety of manipulations on the transform */
diff --git a/src/share/demo/applets/MoleculeViewer/XYZApp.java b/src/share/demo/applets/MoleculeViewer/XYZApp.java
index 78717bef21f07580c134d50bf4020e9e88c4d29c..5ee3afe38ab982eabf87967aa2c0ccded49314f0 100644
--- a/src/share/demo/applets/MoleculeViewer/XYZApp.java
+++ b/src/share/demo/applets/MoleculeViewer/XYZApp.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.Image;
diff --git a/src/share/demo/applets/NervousText/NervousText.java b/src/share/demo/applets/NervousText/NervousText.java
index c3d8d0889e0f0a689670cc6bbc181fa85e9b5a41..12dd678d00a46f9c0d230905b8a5f72066558f5f 100644
--- a/src/share/demo/applets/NervousText/NervousText.java
+++ b/src/share/demo/applets/NervousText/NervousText.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Graphics;
import java.awt.Font;
diff --git a/src/share/demo/applets/SimpleGraph/GraphApplet.java b/src/share/demo/applets/SimpleGraph/GraphApplet.java
index b1d166a050a48971c786548ea67a99f2f5ae5d8d..dabbc209c47c61ce4648ef19864e76a7b6f01505 100644
--- a/src/share/demo/applets/SimpleGraph/GraphApplet.java
+++ b/src/share/demo/applets/SimpleGraph/GraphApplet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Graphics;
diff --git a/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java b/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java
index 6a54d649d1b66fd60df09cf7bc4ee7866e338ce2..c2478f899e67258ed7180148e76a0d8408c2fd24 100644
--- a/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A bi-directional bubble sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java b/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java
index 62be88cc58690ab12833ef7f8da3557de59d4d2d..946c864535ef092b3af301a7b0d778914695e707 100644
--- a/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A bubble sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/QSortAlgorithm.java b/src/share/demo/applets/SortDemo/QSortAlgorithm.java
index 7fa48903e5051dba8465a4cece57d538a374ef9f..045f222969cbb430c5ce1a808c0f1ecb7dff44c5 100644
--- a/src/share/demo/applets/SortDemo/QSortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/QSortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A quick sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/SortAlgorithm.java b/src/share/demo/applets/SortDemo/SortAlgorithm.java
index 8917cf94189036408c338652df6685105602756c..c1a80aabc0b03cffa96d51d413dcce08e8824177 100644
--- a/src/share/demo/applets/SortDemo/SortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/SortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A generic sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/SortItem.java b/src/share/demo/applets/SortDemo/SortItem.java
index 9a155e37bd7709d80978955e085a991f12be1dde..0ee60c9122f5a02507dac137c695051d3a6536eb 100644
--- a/src/share/demo/applets/SortDemo/SortItem.java
+++ b/src/share/demo/applets/SortDemo/SortItem.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Dimension;
diff --git a/src/share/demo/applets/SpreadSheet/SpreadSheet.java b/src/share/demo/applets/SpreadSheet/SpreadSheet.java
index d221e342def11d902a48f0c69d5fe86d1c400b0d..9aa32866cd7ba79fd09d1ef3fb2c15a64ea6f963 100644
--- a/src/share/demo/applets/SpreadSheet/SpreadSheet.java
+++ b/src/share/demo/applets/SpreadSheet/SpreadSheet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.*;
diff --git a/src/share/demo/applets/WireFrame/Matrix3D.java b/src/share/demo/applets/WireFrame/Matrix3D.java
index 0dda042c3c9a6faeadc7d2d7f27f99112432d2ff..e7afced493da2f08bf9e311844641cb3a2ea4d3d 100644
--- a/src/share/demo/applets/WireFrame/Matrix3D.java
+++ b/src/share/demo/applets/WireFrame/Matrix3D.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/** A fairly conventional 3D matrix object that can transform sets of
3D points and perform a variety of manipulations on the transform */
diff --git a/src/share/demo/applets/WireFrame/ThreeD.java b/src/share/demo/applets/WireFrame/ThreeD.java
index 7f228331f7e335e61a3b16a1d872051e328acedb..935ca0a99c7a9e7f5f955dcfc317bd62506e3da7 100644
--- a/src/share/demo/applets/WireFrame/ThreeD.java
+++ b/src/share/demo/applets/WireFrame/ThreeD.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java
index 9cd94a5ca012a21a24ef3d56cdf67aab6cd46fb4..a0a70e10ac1e048dce20c1d7046c808405ca253f 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.awt.Image;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java
index 713a7164bb9c11f5c4739abf8d52ca53d6c1d434..007df987467b68847e3871ffd4d30eb32b23c68a 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.io.PrintWriter;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java b/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java
index c4d50554cd58d1ce047b3693badd21f707b9ba49..15eb0c5f826c91234219a50677f50e82561cad44 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.io.PrintWriter;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java
index 3f07b2d8e97f08fda314e04ba6c01bf30ebf062d..32c4ad929ff7d3efab1299fa460ee82f3363385b 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
public interface Modifier {
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java
index d8430e0662c1ba2dbf02f87fad25004094f67909..a72575785ef1547d60475be1418115adaf66196c 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.io.PrintWriter;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java
index 1266eda9a613735e9b3d4d7f47906638ba2a6ab4..88656a14b16682ba2a1ebb60e3efca06c926f4a9 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.awt.BorderLayout;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java
index a89342fc695c2e91c5b44048b285ce55206e4d1f..2f40cd2d60ce8c6b3b71b32292f84c4315bd6ae0 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.util.Vector;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java b/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java
index 862498fa17e7cb54fc8e290ef6f4fc20b57ac1dd..7b177704203f42592ff2a929a20a1da610087ee0 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.util.Hashtable;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java
index ffd2ca97673e14a2f26f6182b24d295617cd1075..d727aaa4b5a423d14daa79b524bbc525a73aa287 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
public abstract class Test extends Option.Enable {
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java b/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java
index 0dccbed7c1b407c0b636c453824050bc81d06de8..c0211a877b7d06d642079dae1674b6b44b57a708 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.awt.Canvas;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java
index 7ac7ee01447fb35c72598e75a8306495645eb97a..fa0838c2e22b542e852682b4e01a93ae3baec881 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* HTMLSeriesReporter.java
*
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java
index 85c87825121e150c1ec0843ac183876b93f6e4b0..e0399f0dcab03f9230ddae8e9660b76af5ce038a 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.report;
import java.io.*;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java
index 5f5b9457c9506e0b992d5e99f73cc65088cde90e..a30e1aaca40be87baa97636d765ff7632bb85121 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.report;
import java.util.Vector;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java
index b10017c3ce0cd0f5e2646d7a1cdbac09d02781d1..f72f902bcfdfa6f0e0e8d2bcf80e97ca43c92964 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* XMLHTMLReporter.java
*
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java
index 3b04ad1ab3c17b9d81c27a89949deed93a535bc8..92cfe7c34a16c104ed0d954e66c38b557428e035 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java
index 813995e3fcdd8f4e49e940142fecc1b3086c96f6..52378b286739d4906a4c9e9f8a3bb872080de983 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import j2dbench.Destinations;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java
index 1d25d0ffbe985b4a2b4e9ca49735a0011d28105a..84bddeaf9e949bc1911da51c603dab9547b4f2f0 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import java.awt.Dimension;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java
index 8184c1a4bd94a2fdf2269089685580b7738ea046..99f611341b8ead8be8e037e784c4937ddc89a498 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import j2dbench.Destinations;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java
index 769b372f0d8ed12c72e48dd30ed5153be785884b..addba0162b4ed5783968dbe3fdc0e9c1a8526822 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java
index 5b23e1a63aefde15d46a94461bc6b8a5a3517d9e..d535fe631c56313ca82480c639d7ab8f71887ce5 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.awt.AlphaComposite;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java
index c530253a4c5259263ad8f67e49e64352e88a3f87..b0c9a946779786d3f4852cebfcbff8666f1c3d0d 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.awt.Component;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java
index d76d0fd42096e5271d6d0e9b4377223935a32ec4..ec544854b0d3c3a6920d8486a646f66e7440e9ea 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.File;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java
index 57a6a06471b5c95a90754e62a55519754194826c..d643de4122aa1dbb856b273e23d3894c3605614c 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.BufferedInputStream;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java
index 583986e40f60da60f8a53a7ee097774ccbdb0893..0eea6e20e8f9230f723f8606b58823bdfb8e11bc 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java
index 36b48b6c9d2506ba2d47aa61a08338b008a656cf..bf1da9ad31d04d3d6c3fac9b7d0b7bb6c5233fa1 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.File;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java
index 86f1937fb7bd19bce1c71c86e395173678ae38c2..a1662c3389a715e2e4a5e95dda346ac9f9b8a9a4 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.BufferedOutputStream;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java
index e91c6075d0288685ea9e281d762c4a66a2a4b143..cd92674852b30296fd8379fdaed6173744feb563 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java
index 51fb97561c5f5203bc938568d6f9397b2f68a8b2..1fb4863d507bfa8c7faaf252678ac6af78a60a9f 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java
index f6cad6441db28a64ff91e0f91049c1cec758b694..3f5c385bbd4e8d92601f566a2e8a736b2a5c1165 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java
index 1569f9dfc6f9de981b298aff7749ac667cb4f772..deb78a4e267faa6ff621b3041835ef32c50c208c 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java
index 06be9e6ae135e14b99ee81e8c7311b1d43919a93..40ed4e63f33af24a3c61a10ac53e20208589c764 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.ui;
import java.awt.Dimension;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java
index acebd6cbc2f700ca76ea547e69a8f1ed80eb7e82..0663a591908a333c9c824aed4ca28389cc92fe0c 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.ui;
import j2dbench.Group;
diff --git a/src/share/demo/jfc/CodePointIM/CodePointIM.java b/src/share/demo/jfc/CodePointIM/CodePointIM.java
index 6d02ecdc9f2d470ee570b3177bc0eb6eee5c17e3..6345e611c715b01d6c3737f7355e5359381fd31b 100644
--- a/src/share/demo/jfc/CodePointIM/CodePointIM.java
+++ b/src/share/demo/jfc/CodePointIM/CodePointIM.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.Locale;
import java.util.MissingResourceException;
diff --git a/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java b/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java
index 67ff106c6826137095eb31747bbbb3c274b2e8cd..add460a89910d994d8fcfcd64d137c2e8affaf24 100644
--- a/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java
+++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.inputmethods.internal.codepointim;
diff --git a/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java b/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java
index 1ee62162b180f72a1b661e4047a25f0a68486578..ee8ccb5c0d301bb0be1663534b3e1e09da45cc56 100644
--- a/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java
+++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.inputmethods.internal.codepointim;
diff --git a/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java b/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java
index 3a0897b1c4d2261c48fa50842cdc4fad37fef355..f557bdeba0f974e2b0578f1e7be2ce33dd02925f 100644
--- a/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java
+++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.File;
import java.io.IOException;
diff --git a/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java b/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java
index cec4e721c1c0f47c88455a7a5b17eb022aa975f1..52c486d7f36e54081f344d3e7822afd7ec5c2f68 100644
--- a/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java
+++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import javax.swing.filechooser.*;
diff --git a/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java b/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java
index 67e1daee1e8e655e21dcc9f1eacb792efbe95762..bfb74b433082fd2acb38e4806e22fda5a796252c 100644
--- a/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java
+++ b/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
diff --git a/src/share/demo/jfc/Font2DTest/Font2DTest.java b/src/share/demo/jfc/Font2DTest/Font2DTest.java
index 5625d966057d356b7466f6fd400dc2291abe5b4a..1487c428aef7a69c9171c7f00bca6c67d624453c 100644
--- a/src/share/demo/jfc/Font2DTest/Font2DTest.java
+++ b/src/share/demo/jfc/Font2DTest/Font2DTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Component;
diff --git a/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java b/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java
index 4ee1168db7fb84472a54460e96747b271fe26371..7e663c2bb7c9e0b67e4873f10e22666c67b94fa6 100644
--- a/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java
+++ b/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/jfc/Font2DTest/FontPanel.java b/src/share/demo/jfc/Font2DTest/FontPanel.java
index 5506051a1823d1d3926fbd1e5e15632ff91afde8..c939f0b81a7802906507aeda6791e88f1e6de06f 100644
--- a/src/share/demo/jfc/Font2DTest/FontPanel.java
+++ b/src/share/demo/jfc/Font2DTest/FontPanel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Color;
diff --git a/src/share/demo/jfc/Font2DTest/RangeMenu.java b/src/share/demo/jfc/Font2DTest/RangeMenu.java
index 20a3113df44f2a4d0bf7b145a17e3bd94ac4a7f2..54b6ad8f792e7dbd7bd5d9214d28ca55c932a08e 100644
--- a/src/share/demo/jfc/Font2DTest/RangeMenu.java
+++ b/src/share/demo/jfc/Font2DTest/RangeMenu.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/jfc/Metalworks/AquaMetalTheme.java b/src/share/demo/jfc/Metalworks/AquaMetalTheme.java
index 363a0cfb9dcede0843e452c9a3272b824a424a6a..3510f7afc406ef6fa85e9f4a4d2a2450f1cc4377 100644
--- a/src/share/demo/jfc/Metalworks/AquaMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/AquaMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
diff --git a/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java b/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java
index 3402320a0976a67f077f1b0b73dc1b433bca101c..d965d63f971cb397629ea1c89839755d62bceb63 100644
--- a/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.*;
import javax.swing.plaf.metal.*;
diff --git a/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java b/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java
index 62d7f39e65bcddc3b076bd103da1eedf15b1f053..4d19ed1902618cea408da22cf47c7d7df60de9b0 100644
--- a/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.UIDefaults;
import javax.swing.border.Border;
diff --git a/src/share/demo/jfc/Metalworks/DemoMetalTheme.java b/src/share/demo/jfc/Metalworks/DemoMetalTheme.java
index 3724630ff36d94170d2860543031efc2f569c736..865932c866b402834c8d0357a72914c240c31bc7 100644
--- a/src/share/demo/jfc/Metalworks/DemoMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/DemoMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Font;
import javax.swing.UIDefaults;
diff --git a/src/share/demo/jfc/Metalworks/GreenMetalTheme.java b/src/share/demo/jfc/Metalworks/GreenMetalTheme.java
index ceb299de9e2286340383fa26cc5ca3a29293ad9a..45c9ab482518efc68e951774cd82de75b4a5bf1f 100644
--- a/src/share/demo/jfc/Metalworks/GreenMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/GreenMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
diff --git a/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java b/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java
index 90e125922203fe7dba2ccff468bec8e33084769a..3074fd80fb0121fc61dce0a933748385ae98ffb1 100644
--- a/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
diff --git a/src/share/demo/jfc/Metalworks/MetalThemeMenu.java b/src/share/demo/jfc/Metalworks/MetalThemeMenu.java
index a837228743f29a00e58515ed086476d9f9640a34..e7947d76eca49b9a96caaaa4c8f1f46a4ed8a2dc 100644
--- a/src/share/demo/jfc/Metalworks/MetalThemeMenu.java
+++ b/src/share/demo/jfc/Metalworks/MetalThemeMenu.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
diff --git a/src/share/demo/jfc/Metalworks/Metalworks.java b/src/share/demo/jfc/Metalworks/Metalworks.java
index 22322c26d9f599ae2b3977086a546aa867253626..3db6eaad455c60bfa99903560361f51b97f8f917 100644
--- a/src/share/demo/jfc/Metalworks/Metalworks.java
+++ b/src/share/demo/jfc/Metalworks/Metalworks.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Toolkit;
import javax.swing.JDialog;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java b/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java
index 5802e77c69458dfb13ba35a242662edba763adbe..813e3b7c4796acea6c17f46c6a3974a89ac67004 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Component;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksFrame.java b/src/share/demo/jfc/Metalworks/MetalworksFrame.java
index 77fa685a38c322f8204b5f8481f9a92141b96f23..4333d7ba4d602daebb5de5961cc5efc914503557 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksFrame.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksFrame.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Dimension;
import java.awt.Toolkit;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksHelp.java b/src/share/demo/jfc/Metalworks/MetalworksHelp.java
index f9dd1429f0e27e50185e18aefc9e3811be5a81ad..d46bc7b994236c20658475e178234180d92c4568 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksHelp.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksHelp.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import java.awt.*;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksInBox.java b/src/share/demo/jfc/Metalworks/MetalworksInBox.java
index 48e71ca5239a5d4916bad90ea30795c7a1ae6585..e165723b886a56d94fb00d4d06b74834b726592e 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksInBox.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksInBox.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.JInternalFrame;
import javax.swing.JScrollPane;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksPrefs.java b/src/share/demo/jfc/Metalworks/MetalworksPrefs.java
index fa88a88f5700d88349df2c60affa09f31a9e1ce2..36626ee19cf7dc53f85a8df7f8d7f54661c9c21c 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksPrefs.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksPrefs.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Component;
diff --git a/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java b/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java
index ec729f16aba4d2610371906456fe8b31637b4031..af1abf2abd5037746028bf069cb71d1635009687 100644
--- a/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.IOException;
import java.io.InputStream;
diff --git a/src/share/demo/jfc/Metalworks/UISwitchListener.java b/src/share/demo/jfc/Metalworks/UISwitchListener.java
index d75fb3f4b6a36ec72072ae757eb908067d0fff53..6dc77ce29d236b2356e62d12984958a2fcff0f42 100644
--- a/src/share/demo/jfc/Metalworks/UISwitchListener.java
+++ b/src/share/demo/jfc/Metalworks/UISwitchListener.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
diff --git a/src/share/demo/jfc/Notepad/ElementTreePanel.java b/src/share/demo/jfc/Notepad/ElementTreePanel.java
index 0a208c926936d6fe0872da90364c0d02bbe44372..e1bac63b28eb914bb01731bc09160b9a929a5fe3 100644
--- a/src/share/demo/jfc/Notepad/ElementTreePanel.java
+++ b/src/share/demo/jfc/Notepad/ElementTreePanel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Dimension;
diff --git a/src/share/demo/jfc/Notepad/Notepad.java b/src/share/demo/jfc/Notepad/Notepad.java
index a6d7e03a94664c7a18eaf836b9929078aafb773b..c80966920fba7ba0afd2ef8b4c679fa846d76961 100644
--- a/src/share/demo/jfc/Notepad/Notepad.java
+++ b/src/share/demo/jfc/Notepad/Notepad.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Color;
diff --git a/src/share/demo/jfc/SampleTree/DynamicTreeNode.java b/src/share/demo/jfc/SampleTree/DynamicTreeNode.java
index fa6db4dfd139031320d884bccf30bf6e2927b4e3..60a11fe735801437601c7d83a3063a8dfb11857a 100644
--- a/src/share/demo/jfc/SampleTree/DynamicTreeNode.java
+++ b/src/share/demo/jfc/SampleTree/DynamicTreeNode.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Font;
diff --git a/src/share/demo/jfc/SampleTree/SampleData.java b/src/share/demo/jfc/SampleTree/SampleData.java
index 48a92dd8d0dfef59968c1593be52d3eea266052b..66f7c1680910502103322cb5cd8804e3b224c683 100644
--- a/src/share/demo/jfc/SampleTree/SampleData.java
+++ b/src/share/demo/jfc/SampleTree/SampleData.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Font;
diff --git a/src/share/demo/jfc/SampleTree/SampleTree.java b/src/share/demo/jfc/SampleTree/SampleTree.java
index 831d70cbdf9d6cb51f62bb94e164cf1aaa875202..efde28fd6f0e0795449254b26cff55fcd8f3784f 100644
--- a/src/share/demo/jfc/SampleTree/SampleTree.java
+++ b/src/share/demo/jfc/SampleTree/SampleTree.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
diff --git a/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java b/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java
index d45bf4e27b6f4fc06b9a936d5c68bef60fecf5f5..9e9a04b52252d2831d6f0862893baf4b6a89ae6d 100644
--- a/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java
+++ b/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.Icon;
import javax.swing.ImageIcon;
diff --git a/src/share/demo/jfc/SampleTree/SampleTreeModel.java b/src/share/demo/jfc/SampleTree/SampleTreeModel.java
index 51ee2daec91c9851168077e88f71b7b9ca5e983c..1d7bfdc1066e478602a4a87b8571fe2771c80988 100644
--- a/src/share/demo/jfc/SampleTree/SampleTreeModel.java
+++ b/src/share/demo/jfc/SampleTree/SampleTreeModel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeNode;
diff --git a/src/share/demo/jfc/SwingApplet/SwingApplet.java b/src/share/demo/jfc/SwingApplet/SwingApplet.java
index 281ca709849a1c48221f0a577af6b33f676a8d11..b239893ffd7b850a7e7c7716212c53e850f0a0d0 100644
--- a/src/share/demo/jfc/SwingApplet/SwingApplet.java
+++ b/src/share/demo/jfc/SwingApplet/SwingApplet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.FlowLayout;
import java.lang.reflect.InvocationTargetException;
diff --git a/src/share/demo/jfc/TableExample/JDBCAdapter.java b/src/share/demo/jfc/TableExample/JDBCAdapter.java
index 4dbfe4201159f0fcb59d4e77e613381a61ccbdeb..02d0d385d395aeb74ac440365aed040c66dacdc8 100644
--- a/src/share/demo/jfc/TableExample/JDBCAdapter.java
+++ b/src/share/demo/jfc/TableExample/JDBCAdapter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.sql.Connection;
import java.sql.DriverManager;
diff --git a/src/share/demo/jfc/TableExample/OldJTable.java b/src/share/demo/jfc/TableExample/OldJTable.java
index 28a3f212816341230f806a9962e9da444a799d26..bc9079435545de3eff8983316d56d5a06c1fc794 100644
--- a/src/share/demo/jfc/TableExample/OldJTable.java
+++ b/src/share/demo/jfc/TableExample/OldJTable.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.EventObject;
import java.util.List;
diff --git a/src/share/demo/jfc/TableExample/TableExample.java b/src/share/demo/jfc/TableExample/TableExample.java
index 03d798f3f1226f034b1fa93563c6f7cb2f2c9d92..f046e2f3fcbc4ab6bca732fbaa5f9c946696f767 100644
--- a/src/share/demo/jfc/TableExample/TableExample.java
+++ b/src/share/demo/jfc/TableExample/TableExample.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A a UI around the JDBCAdaptor, allowing database data to be interactively
diff --git a/src/share/demo/jfc/TableExample/TableExample2.java b/src/share/demo/jfc/TableExample/TableExample2.java
index 9423f17556ea0ebd2dc1a8dea17144f08e35fdb2..e7fc9be3d4f5a1d630b410d3b301218f8de6a10d 100644
--- a/src/share/demo/jfc/TableExample/TableExample2.java
+++ b/src/share/demo/jfc/TableExample/TableExample2.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
diff --git a/src/share/demo/jfc/TableExample/TableExample3.java b/src/share/demo/jfc/TableExample/TableExample3.java
index 51646395b0eec09f4c037f4576b09a578a9ae5ed..ba1010119c339f846b94eea2e621215ebff94d61 100644
--- a/src/share/demo/jfc/TableExample/TableExample3.java
+++ b/src/share/demo/jfc/TableExample/TableExample3.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import javax.swing.table.*;
diff --git a/src/share/demo/jfc/TableExample/TableExample4.java b/src/share/demo/jfc/TableExample/TableExample4.java
index e75e2db3838ad2e4dae5f3ee4a160d07e85ef197..9ea30b80c7dade4f1b7fd7def5ff5a873bcacf0c 100644
--- a/src/share/demo/jfc/TableExample/TableExample4.java
+++ b/src/share/demo/jfc/TableExample/TableExample4.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import javax.swing.table.*;
diff --git a/src/share/demo/jfc/TableExample/TableMap.java b/src/share/demo/jfc/TableExample/TableMap.java
index 2511397fec19a67d4d6ea0d3377cd62daa321557..b0c24f0672d4ee1b9312443a016a2863084e58cf 100644
--- a/src/share/demo/jfc/TableExample/TableMap.java
+++ b/src/share/demo/jfc/TableExample/TableMap.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* In a chain of data manipulators some behaviour is common. TableMap
diff --git a/src/share/demo/jfc/TableExample/TableSorter.java b/src/share/demo/jfc/TableExample/TableSorter.java
index 625b6f260053b5ed64e429face197ce094464874..0ec49b714e2e6e98a2a9ce34908f294a83b991ff 100644
--- a/src/share/demo/jfc/TableExample/TableSorter.java
+++ b/src/share/demo/jfc/TableExample/TableSorter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.table.TableModel;
import javax.swing.event.TableModelEvent;
diff --git a/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java b/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java
index 707151f971987eeedac8a8a3be4dcad41ef5cdcb..fcba7acc85cde480caf0eb354dc7d199bda44d6f 100644
--- a/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java
+++ b/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package transparentruler;
diff --git a/src/share/demo/jvmti/agent_util/agent_util.c b/src/share/demo/jvmti/agent_util/agent_util.c
index 74796a9155c2e5ff3f0319b88db7650dce27f460..18558855947379fce3878dc32556f9e5231ecc63 100644
--- a/src/share/demo/jvmti/agent_util/agent_util.c
+++ b/src/share/demo/jvmti/agent_util/agent_util.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
/* ------------------------------------------------------------------- */
diff --git a/src/share/demo/jvmti/agent_util/agent_util.h b/src/share/demo/jvmti/agent_util/agent_util.h
index 14ec703a15890299d06cbc988d0c864ed2eaef01..1518e932c87da876070ccc2c6c5eefa14a52226b 100644
--- a/src/share/demo/jvmti/agent_util/agent_util.h
+++ b/src/share/demo/jvmti/agent_util/agent_util.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef AGENT_UTIL_H
#define AGENT_UTIL_H
diff --git a/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c b/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c
index 5117c937020d83a0713ffee180eafc9659e789df..cfc9ab2b5fabba54ab45e47f4743d707370f29dc 100644
--- a/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c
+++ b/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include
diff --git a/src/share/demo/jvmti/gctest/gctest.c b/src/share/demo/jvmti/gctest/gctest.c
index f982b3f30d4b8d5d63370d00b107b427b2088fda..7d430f4e87fc4ea4e3b621c7e9cdd3375e91f9a6 100644
--- a/src/share/demo/jvmti/gctest/gctest.c
+++ b/src/share/demo/jvmti/gctest/gctest.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Example of using JVMTI_EVENT_GARBAGE_COLLECTION_START and
* JVMTI_EVENT_GARBAGE_COLLECTION_FINISH events.
*/
diff --git a/src/share/demo/jvmti/heapTracker/HeapTracker.java b/src/share/demo/jvmti/heapTracker/HeapTracker.java
index faec6ba60d2f8cb9c9b1922ca7ea89b49a07a87e..041c88bf8783dc4c72fc6eb21d29ab2c85d8089d 100644
--- a/src/share/demo/jvmti/heapTracker/HeapTracker.java
+++ b/src/share/demo/jvmti/heapTracker/HeapTracker.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Java class to hold static methods which will be called in byte code
* injections of all class files.
diff --git a/src/share/demo/jvmti/heapTracker/heapTracker.c b/src/share/demo/jvmti/heapTracker/heapTracker.c
index 439de6eee80c05883aaabc88c2ed95b276ba82d6..c1019ade3992865d203dd0ba2e3b0d1e35c77407 100644
--- a/src/share/demo/jvmti/heapTracker/heapTracker.c
+++ b/src/share/demo/jvmti/heapTracker/heapTracker.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "stdlib.h"
#include "heapTracker.h"
diff --git a/src/share/demo/jvmti/heapTracker/heapTracker.h b/src/share/demo/jvmti/heapTracker/heapTracker.h
index 0cc49c023348090a1d6a472a3571f50dcc6f1f88..b0df4bbf5f96a34cfa86c765411528f1f5953a11 100644
--- a/src/share/demo/jvmti/heapTracker/heapTracker.h
+++ b/src/share/demo/jvmti/heapTracker/heapTracker.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary heapTracker #include file, should be included by most if not
* all heapTracker source files. Gives access to the global data structure
* and all global macros.
diff --git a/src/share/demo/jvmti/heapViewer/heapViewer.c b/src/share/demo/jvmti/heapViewer/heapViewer.c
index 1d4742dd2ee34a882abad52f0dc44e29aa43c995..a6da56d67e1e08cbcafdfa9d7c830f6e8e60068e 100644
--- a/src/share/demo/jvmti/heapViewer/heapViewer.c
+++ b/src/share/demo/jvmti/heapViewer/heapViewer.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include
diff --git a/src/share/demo/jvmti/hprof/debug_malloc.c b/src/share/demo/jvmti/hprof/debug_malloc.c
index ea7fecece6b1d692facb9f7a9beb69f982b6e21e..a0155c0588b75043b514bdd9b36ba28a290fdad0 100644
--- a/src/share/demo/jvmti/hprof/debug_malloc.c
+++ b/src/share/demo/jvmti/hprof/debug_malloc.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* **************************************************************************
*
* Set of malloc/realloc/calloc/strdup/free replacement macros that
diff --git a/src/share/demo/jvmti/hprof/debug_malloc.h b/src/share/demo/jvmti/hprof/debug_malloc.h
index 1325f94e6ad2404e3fcf979101dd4443d5ed969f..6b6b4c6b73307a927b41ac47ded8e091796eec8e 100644
--- a/src/share/demo/jvmti/hprof/debug_malloc.h
+++ b/src/share/demo/jvmti/hprof/debug_malloc.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* ***********************************************************************
*
* The source file debug_malloc.c should be included with your sources.
diff --git a/src/share/demo/jvmti/hprof/hprof.h b/src/share/demo/jvmti/hprof/hprof.h
index a577f883a700c756883ba05c9566269a25cf8d8b..44afbf4c5d9c91e65cb79070513458b3eee2693b 100644
--- a/src/share/demo/jvmti/hprof/hprof.h
+++ b/src/share/demo/jvmti/hprof/hprof.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary hprof #include file, should be included by most if not
* all hprof source files. Gives access to the global data structure
* and all global macros, and everything declared in the #include
diff --git a/src/share/demo/jvmti/hprof/hprof_blocks.c b/src/share/demo/jvmti/hprof/hprof_blocks.c
index 140566584f5d327866cb422d3738070c77918d3d..13534a99ab881c4881de5b44b2e4c48071b3b6b9 100644
--- a/src/share/demo/jvmti/hprof/hprof_blocks.c
+++ b/src/share/demo/jvmti/hprof/hprof_blocks.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Allocations from large blocks, no individual free's */
#include "hprof.h"
diff --git a/src/share/demo/jvmti/hprof/hprof_blocks.h b/src/share/demo/jvmti/hprof/hprof_blocks.h
index cf3157a49ac3fae7e30cffd864b26337b3355de6..e35433e73f638ea53f3b51b79125eea3d6092502 100644
--- a/src/share/demo/jvmti/hprof/hprof_blocks.h
+++ b/src/share/demo/jvmti/hprof/hprof_blocks.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_BLOCKS_H
#define HPROF_BLOCKS_H
diff --git a/src/share/demo/jvmti/hprof/hprof_check.c b/src/share/demo/jvmti/hprof/hprof_check.c
index b26a413d5b80f86d6d1dcb84738b292c8afb901b..c91a54ae8402151651bcf102c339cf435c74e2f2 100644
--- a/src/share/demo/jvmti/hprof/hprof_check.c
+++ b/src/share/demo/jvmti/hprof/hprof_check.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Functionality for checking hprof format=b output. */
/* ONLY used with logflags=4. */
diff --git a/src/share/demo/jvmti/hprof/hprof_check.h b/src/share/demo/jvmti/hprof/hprof_check.h
index 2861306454af3a2558412101fb871892b733a21c..2840bf114c493c379b453dee3a26885a8999f03a 100644
--- a/src/share/demo/jvmti/hprof/hprof_check.h
+++ b/src/share/demo/jvmti/hprof/hprof_check.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_CHECK_H
#define HPROF_CHECK_H
diff --git a/src/share/demo/jvmti/hprof/hprof_class.c b/src/share/demo/jvmti/hprof/hprof_class.c
index 8ffc41e6406c0c7be4ddcc892d2c943db7dc1e5b..d89a804dbb84534d09eb076259f03a1d3517410d 100644
--- a/src/share/demo/jvmti/hprof/hprof_class.c
+++ b/src/share/demo/jvmti/hprof/hprof_class.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Table of class information.
*
* Each element in this table is identified with a ClassIndex.
diff --git a/src/share/demo/jvmti/hprof/hprof_class.h b/src/share/demo/jvmti/hprof/hprof_class.h
index 270bf083da8d60233667a3d406e4cbd5e214196d..5bcf1b80f79e15c67b333e1ea419bf0f423ce390 100644
--- a/src/share/demo/jvmti/hprof/hprof_class.h
+++ b/src/share/demo/jvmti/hprof/hprof_class.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_CLASS_H
#define HPROF_CLASS_H
diff --git a/src/share/demo/jvmti/hprof/hprof_cpu.c b/src/share/demo/jvmti/hprof/hprof_cpu.c
index 77262898e6899c8cfef2bbd9f1abf775fbbce247..358b4784861d0ea94124b14cd11a4a74f7761580 100644
--- a/src/share/demo/jvmti/hprof/hprof_cpu.c
+++ b/src/share/demo/jvmti/hprof/hprof_cpu.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "hprof.h"
/* This file contains the cpu loop for the option cpu=samples */
diff --git a/src/share/demo/jvmti/hprof/hprof_cpu.h b/src/share/demo/jvmti/hprof/hprof_cpu.h
index b22744f9a58833765eb01b6887d8a0302e489cc7..6a962390737414e0eaa347f411376a9a86c89f26 100644
--- a/src/share/demo/jvmti/hprof/hprof_cpu.h
+++ b/src/share/demo/jvmti/hprof/hprof_cpu.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_CPU_H
#define HPROF_CPU_H
diff --git a/src/share/demo/jvmti/hprof/hprof_error.c b/src/share/demo/jvmti/hprof/hprof_error.c
index c7ddd62218cca90307c493f350720f34d13be7b1..8088a49b50a0aca9e784d0b9f552ebdec332c4d0 100644
--- a/src/share/demo/jvmti/hprof/hprof_error.c
+++ b/src/share/demo/jvmti/hprof/hprof_error.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "hprof.h"
/* The error handling logic. */
diff --git a/src/share/demo/jvmti/hprof/hprof_error.h b/src/share/demo/jvmti/hprof/hprof_error.h
index 968c31ff44f073c1ba17846c5f2cf32af1b1bf04..c0d6aed0feae5d5393e907c3526848472bd854a3 100644
--- a/src/share/demo/jvmti/hprof/hprof_error.h
+++ b/src/share/demo/jvmti/hprof/hprof_error.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_ERROR_H
#define HPROF_ERROR_H
diff --git a/src/share/demo/jvmti/hprof/hprof_event.c b/src/share/demo/jvmti/hprof/hprof_event.c
index 734d8afe8158b2770d8c70ff7648844b4a6549bf..66d89e76eca501b1d2c861379d06aa584ed42799 100644
--- a/src/share/demo/jvmti/hprof/hprof_event.c
+++ b/src/share/demo/jvmti/hprof/hprof_event.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* This file contains all class, method and allocation event support functions,
* both JVMTI and BCI events.
* (See hprof_monitor.c for the monitor event handlers).
diff --git a/src/share/demo/jvmti/hprof/hprof_event.h b/src/share/demo/jvmti/hprof/hprof_event.h
index 207f875ba3d7a50464ce54a7171521b2226ab62b..198824a215567d35bbacbcb7c02e862e922e18a0 100644
--- a/src/share/demo/jvmti/hprof/hprof_event.h
+++ b/src/share/demo/jvmti/hprof/hprof_event.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_EVENT_H
#define HPROF_EVENT_H
diff --git a/src/share/demo/jvmti/hprof/hprof_frame.c b/src/share/demo/jvmti/hprof/hprof_frame.c
index 23a1606654841d52fafafac0c5ddaaffb376732a..284b6a555ae365107715e943020887bc9f1ccd1a 100644
--- a/src/share/demo/jvmti/hprof/hprof_frame.c
+++ b/src/share/demo/jvmti/hprof/hprof_frame.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* This file contains support for handling frames, or (method,location) pairs. */
#include "hprof.h"
diff --git a/src/share/demo/jvmti/hprof/hprof_frame.h b/src/share/demo/jvmti/hprof/hprof_frame.h
index 5f9798c3569d7d85368cd8ebfa8af47b014dbb5e..8443aee3bb88e1d8f96427b67ad56c862867c149 100644
--- a/src/share/demo/jvmti/hprof/hprof_frame.h
+++ b/src/share/demo/jvmti/hprof/hprof_frame.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_FRAME_H
#define HPROF_FRAME_H
diff --git a/src/share/demo/jvmti/hprof/hprof_init.c b/src/share/demo/jvmti/hprof/hprof_init.c
index 9ac173387435000de431265f47c7c52599988450..e3add30a6c2bb616191cb0af4ff1d9b0343a8ebb 100644
--- a/src/share/demo/jvmti/hprof/hprof_init.c
+++ b/src/share/demo/jvmti/hprof/hprof_init.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Main source file, the basic JVMTI connection/startup code. */
#include "hprof.h"
diff --git a/src/share/demo/jvmti/hprof/hprof_init.h b/src/share/demo/jvmti/hprof/hprof_init.h
index 413e3e02f39c73217a1e4e9181aba02663d6233e..500491754a95daaa51cc0025ff41cc1b3d60965e 100644
--- a/src/share/demo/jvmti/hprof/hprof_init.h
+++ b/src/share/demo/jvmti/hprof/hprof_init.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_INIT_H
#define HPROF_INIT_H
diff --git a/src/share/demo/jvmti/hprof/hprof_io.c b/src/share/demo/jvmti/hprof/hprof_io.c
index 9d9c0ae94b30550f531d0571994d50d74451a2ec..51c7c25852ed1752a7d1c04ef184b807adcf54ab 100644
--- a/src/share/demo/jvmti/hprof/hprof_io.c
+++ b/src/share/demo/jvmti/hprof/hprof_io.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* All I/O functionality for hprof. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_io.h b/src/share/demo/jvmti/hprof/hprof_io.h
index 29cae3a316611e5830b714b58e435fa111026efb..0cb7d85ab66f70e616b75da8b91d2205623d8ecb 100644
--- a/src/share/demo/jvmti/hprof/hprof_io.h
+++ b/src/share/demo/jvmti/hprof/hprof_io.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_IO_H
#define HPROF_IO_H
diff --git a/src/share/demo/jvmti/hprof/hprof_ioname.c b/src/share/demo/jvmti/hprof/hprof_ioname.c
index 4935e21290bebce810b6ca95404e3292ac3962e5..b14ecb15b8b3f2d7b23e7666da6c8457c990a0ab 100644
--- a/src/share/demo/jvmti/hprof/hprof_ioname.c
+++ b/src/share/demo/jvmti/hprof/hprof_ioname.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Used to store strings written out to the binary format (see hprof_io.c) */
diff --git a/src/share/demo/jvmti/hprof/hprof_ioname.h b/src/share/demo/jvmti/hprof/hprof_ioname.h
index c070491443840af8564ff9940c72ec6e0af2f4e4..03ac04833829828a81a096ee9ed1c8b8a1ead3b8 100644
--- a/src/share/demo/jvmti/hprof/hprof_ioname.h
+++ b/src/share/demo/jvmti/hprof/hprof_ioname.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_IONAME_H
#define HPROF_IONAME_H
diff --git a/src/share/demo/jvmti/hprof/hprof_listener.c b/src/share/demo/jvmti/hprof/hprof_listener.c
index 05d4768a31f47ca42a247a04ee9db6aa06202109..f5fb89639871f06b6b34dcf597054bc9571d2a5c 100644
--- a/src/share/demo/jvmti/hprof/hprof_listener.c
+++ b/src/share/demo/jvmti/hprof/hprof_listener.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* The hprof listener loop thread. net=hostname:port option */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_listener.h b/src/share/demo/jvmti/hprof/hprof_listener.h
index d077f4f3389fee861cb9da2907a3780a680f49e4..1e82ca537a04f432c4780ee39009a88b9777060c 100644
--- a/src/share/demo/jvmti/hprof/hprof_listener.h
+++ b/src/share/demo/jvmti/hprof/hprof_listener.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_LISTENER_H
#define HPROF_LISTENER_H
diff --git a/src/share/demo/jvmti/hprof/hprof_loader.c b/src/share/demo/jvmti/hprof/hprof_loader.c
index eaabed68bae942f48f47f77bb5d9dcf848169f5d..f0c1f1de8961852809b0678a86eeb40bd4cec85a 100644
--- a/src/share/demo/jvmti/hprof/hprof_loader.c
+++ b/src/share/demo/jvmti/hprof/hprof_loader.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* The Class Loader table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_loader.h b/src/share/demo/jvmti/hprof/hprof_loader.h
index ec40c327b7e0b563446fd56bc2e0666bba26c84a..ef15f76037ae3063fc171cebb68fc5d79969f4cd 100644
--- a/src/share/demo/jvmti/hprof/hprof_loader.h
+++ b/src/share/demo/jvmti/hprof/hprof_loader.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_LOADER_H
#define HPROF_LOADER_H
diff --git a/src/share/demo/jvmti/hprof/hprof_md.h b/src/share/demo/jvmti/hprof/hprof_md.h
index 9396381c61f960bb8e3d5cb5616a42228a34dfe8..6145a03b5ea4d319163146645110a392b6d54c33 100644
--- a/src/share/demo/jvmti/hprof/hprof_md.h
+++ b/src/share/demo/jvmti/hprof/hprof_md.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_MD_H
#define HPROF_MD_H
diff --git a/src/share/demo/jvmti/hprof/hprof_monitor.c b/src/share/demo/jvmti/hprof/hprof_monitor.c
index 81c9dc11b28f3a58e4566f3f4268d36839580488..65495df59918d5c4ce892e83556db02c8133d32a 100644
--- a/src/share/demo/jvmti/hprof/hprof_monitor.c
+++ b/src/share/demo/jvmti/hprof/hprof_monitor.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Monitor contention tracking and monitor wait handling. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_monitor.h b/src/share/demo/jvmti/hprof/hprof_monitor.h
index 752c1c11c9897c9c855d1ee8b61fb48afc452adb..13561633c6121419dfe05fe106651cebc3138b21 100644
--- a/src/share/demo/jvmti/hprof/hprof_monitor.h
+++ b/src/share/demo/jvmti/hprof/hprof_monitor.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_MONITOR_H
#define HPROF_MONITOR_H
diff --git a/src/share/demo/jvmti/hprof/hprof_object.c b/src/share/demo/jvmti/hprof/hprof_object.c
index 619cf3fcd25aac400784006ff3dfda8931b7f440..ce21c23e2ce7d01521e0adfa6c81e61f1f534e0f 100644
--- a/src/share/demo/jvmti/hprof/hprof_object.c
+++ b/src/share/demo/jvmti/hprof/hprof_object.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Object table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_object.h b/src/share/demo/jvmti/hprof/hprof_object.h
index efa643ad48f8c499f55265023511887f1b45a6ff..ccbf8e03e273a0f95e60533569da1d86c2938dd0 100644
--- a/src/share/demo/jvmti/hprof/hprof_object.h
+++ b/src/share/demo/jvmti/hprof/hprof_object.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_OBJECT_H
#define HPROF_OBJECT_H
diff --git a/src/share/demo/jvmti/hprof/hprof_reference.c b/src/share/demo/jvmti/hprof/hprof_reference.c
index fafaf822ffe76c0db9abcfd235d4d0edce5c9631..e7a668d7f1e1e2b5ddeb86935bcf4abaee876ec0 100644
--- a/src/share/demo/jvmti/hprof/hprof_reference.c
+++ b/src/share/demo/jvmti/hprof/hprof_reference.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Object references table (used in hprof_object.c). */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_reference.h b/src/share/demo/jvmti/hprof/hprof_reference.h
index c6b36f042d716587d6834029868c0878a533e6cb..2464f58ed2d29f2f7818a01d492479007df5a08c 100644
--- a/src/share/demo/jvmti/hprof/hprof_reference.h
+++ b/src/share/demo/jvmti/hprof/hprof_reference.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_REFERENCE_H
#define HPROF_REFERENCE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_site.c b/src/share/demo/jvmti/hprof/hprof_site.c
index b90cf4f107c15bed551336d24ce5c3be556b9f8a..f1ae184c6fbde4a294736afc713d96e892491726 100644
--- a/src/share/demo/jvmti/hprof/hprof_site.c
+++ b/src/share/demo/jvmti/hprof/hprof_site.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Allocation site table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_site.h b/src/share/demo/jvmti/hprof/hprof_site.h
index cf6f04c933744c76939767a16dc1dcb7af92d2b5..b9229815b5f21a2b74051e9bc48ba1b7def70392 100644
--- a/src/share/demo/jvmti/hprof/hprof_site.h
+++ b/src/share/demo/jvmti/hprof/hprof_site.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_SITE_H
#define HPROF_SITE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_stack.c b/src/share/demo/jvmti/hprof/hprof_stack.c
index f283866878d00c75b7f22ed39aa180e287925bac..2f0127c49c1b57f5bbaf7b3e66c072a73fd9eaa1 100644
--- a/src/share/demo/jvmti/hprof/hprof_stack.c
+++ b/src/share/demo/jvmti/hprof/hprof_stack.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Simple stack storage mechanism (or simple List). */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_stack.h b/src/share/demo/jvmti/hprof/hprof_stack.h
index 7aaa8ae0f3970baeeb45239416aa33616d8df50b..32efdceeb12e16972751b294f36f2518490fe336 100644
--- a/src/share/demo/jvmti/hprof/hprof_stack.h
+++ b/src/share/demo/jvmti/hprof/hprof_stack.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_STACK_H
#define HPROF_STACK_H
diff --git a/src/share/demo/jvmti/hprof/hprof_string.c b/src/share/demo/jvmti/hprof/hprof_string.c
index 1937488741a426b9d2477536377ef4d2fd01d495..f2f53a4ce88ee99bb0956630d7dab673b517ad5e 100644
--- a/src/share/demo/jvmti/hprof/hprof_string.c
+++ b/src/share/demo/jvmti/hprof/hprof_string.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Table of byte arrays (e.g. char* string + NULL byte) */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_string.h b/src/share/demo/jvmti/hprof/hprof_string.h
index ed58c982561cde8aba838ebaca9be7514cf17310..13e4f42c52dfedd7bd22e28056f452a3810a04ba 100644
--- a/src/share/demo/jvmti/hprof/hprof_string.h
+++ b/src/share/demo/jvmti/hprof/hprof_string.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_STRING_H
#define HPROF_STRING_H
diff --git a/src/share/demo/jvmti/hprof/hprof_table.c b/src/share/demo/jvmti/hprof/hprof_table.c
index d78719c71746cbb19b204bce97f1d0dfa904930d..19b0c425398e88be26ae497d7a3c3a55c97465eb 100644
--- a/src/share/demo/jvmti/hprof/hprof_table.c
+++ b/src/share/demo/jvmti/hprof/hprof_table.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Lookup Table of generic elements. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_table.h b/src/share/demo/jvmti/hprof/hprof_table.h
index e2ded55b473a5dbfa32659c5f271684829333491..84e3acd093a1c4be66510da9b86c3e07af2edd0a 100644
--- a/src/share/demo/jvmti/hprof/hprof_table.h
+++ b/src/share/demo/jvmti/hprof/hprof_table.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TABLE_H
#define HPROF_TABLE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_tag.c b/src/share/demo/jvmti/hprof/hprof_tag.c
index d2cdcdaa79dd402b4ba2f9e439f458ddb0f45388..363be9a5502efa3a2a01d81ef850a5d1e3c4661f 100644
--- a/src/share/demo/jvmti/hprof/hprof_tag.c
+++ b/src/share/demo/jvmti/hprof/hprof_tag.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* JVMTI tag definitions. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_tag.h b/src/share/demo/jvmti/hprof/hprof_tag.h
index 54e339a6aef2c629c33fbdd897bab1c756e1d57a..14ef616899e0b708b696b967ff4452935e7763e5 100644
--- a/src/share/demo/jvmti/hprof/hprof_tag.h
+++ b/src/share/demo/jvmti/hprof/hprof_tag.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TAG_H
#define HPROF_TAG_H
diff --git a/src/share/demo/jvmti/hprof/hprof_tls.c b/src/share/demo/jvmti/hprof/hprof_tls.c
index 9925b649a43f4cce9a0a805176e7bbab7eb6e7d8..3c62aacf2687234e971033a2687a414142fac99c 100644
--- a/src/share/demo/jvmti/hprof/hprof_tls.c
+++ b/src/share/demo/jvmti/hprof/hprof_tls.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "hprof.h"
/* Thread Local Storage Table and method entry/exit handling. */
diff --git a/src/share/demo/jvmti/hprof/hprof_tls.h b/src/share/demo/jvmti/hprof/hprof_tls.h
index 8bd5ceebdc7c4cf3370f126f53d97e8ba8ab4427..695e78a40964430ea04d07578acf04542c4b2a47 100644
--- a/src/share/demo/jvmti/hprof/hprof_tls.h
+++ b/src/share/demo/jvmti/hprof/hprof_tls.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TLS_H
#define HPROF_TLS_H
diff --git a/src/share/demo/jvmti/hprof/hprof_trace.c b/src/share/demo/jvmti/hprof/hprof_trace.c
index bc6e2f02daac3fb605476210cac8c085481d43e1..e56bfe9d417ae3496126693cbfc6e20b6e1804c2 100644
--- a/src/share/demo/jvmti/hprof/hprof_trace.c
+++ b/src/share/demo/jvmti/hprof/hprof_trace.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Trace table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_trace.h b/src/share/demo/jvmti/hprof/hprof_trace.h
index 06b87ae6aacbe3915d358351f84056d51f5cb7d0..b24ac1ee4c967c3cede3084d7d08fbfceb09c94f 100644
--- a/src/share/demo/jvmti/hprof/hprof_trace.h
+++ b/src/share/demo/jvmti/hprof/hprof_trace.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TRACE_H
#define HPROF_TRACE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_tracker.c b/src/share/demo/jvmti/hprof/hprof_tracker.c
index 0d07e55e81d0077e82e5577269dbb6b63f0ca3fe..56e1125122d5c0024d6a9ae8fdeaf7fc6b6c8064 100644
--- a/src/share/demo/jvmti/hprof/hprof_tracker.c
+++ b/src/share/demo/jvmti/hprof/hprof_tracker.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Tracker class support functions. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_tracker.h b/src/share/demo/jvmti/hprof/hprof_tracker.h
index 4c35b209c97168cd76a84f74720dfca60fb2ad9d..9aec0820a583e0f676a4fb4a5f702db304903364 100644
--- a/src/share/demo/jvmti/hprof/hprof_tracker.h
+++ b/src/share/demo/jvmti/hprof/hprof_tracker.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TRACKER_H
#define HPROF_TRACKER_H
diff --git a/src/share/demo/jvmti/hprof/hprof_util.c b/src/share/demo/jvmti/hprof/hprof_util.c
index 2948483b0f59135a74b970d02175b6f7967aace7..0a191172a9f8bb9a160edad10200c64627955204 100644
--- a/src/share/demo/jvmti/hprof/hprof_util.c
+++ b/src/share/demo/jvmti/hprof/hprof_util.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* General utility functions. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_util.h b/src/share/demo/jvmti/hprof/hprof_util.h
index aebf2a18e91ed7d4167d5c91d10b111b93e90008..c052394f2b62a281b06698e16aa216fd202358cf 100644
--- a/src/share/demo/jvmti/hprof/hprof_util.h
+++ b/src/share/demo/jvmti/hprof/hprof_util.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_UTIL_H
#define HPROF_UTIL_H
diff --git a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c
index 2add266d160c2a4cb83349fe802844f59f5d7bd3..28ef3b60cbb9a929b43c0ba472480017cd4f725b 100644
--- a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c
+++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Class reader writer (java_crw_demo) for instrumenting bytecodes */
/*
diff --git a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h
index c8c80edb4adaad0d8fac4cd900d9db05eddbff4a..06b6e01bb3a922044f6372d1af209cdb5e17cba3 100644
--- a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h
+++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef JAVA_CRW_DEMO_H
#define JAVA_CRW_DEMO_H
diff --git a/src/share/demo/jvmti/minst/Minst.java b/src/share/demo/jvmti/minst/Minst.java
index 04504c79f66355e07bdeeacd5953af9697766c7b..c75edfe6734790c356d53f6aa7c3764c9b2eb98f 100644
--- a/src/share/demo/jvmti/minst/Minst.java
+++ b/src/share/demo/jvmti/minst/Minst.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Java class to hold static methods which will be called in byte code
* injections of all class files.
diff --git a/src/share/demo/jvmti/minst/minst.c b/src/share/demo/jvmti/minst/minst.c
index ea70fcdd5aceae4cadc761d49f9cbf72be6d27f8..e811c63ac253b429cb5061ca92d26f8b2131f28e 100644
--- a/src/share/demo/jvmti/minst/minst.c
+++ b/src/share/demo/jvmti/minst/minst.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "stdlib.h"
#include "minst.h"
diff --git a/src/share/demo/jvmti/minst/minst.h b/src/share/demo/jvmti/minst/minst.h
index e2e3ececc235f4ee20f7e02a338c191742b2fd8e..8ffc14ce6ec5904e802725200da0d71a0e776307 100644
--- a/src/share/demo/jvmti/minst/minst.h
+++ b/src/share/demo/jvmti/minst/minst.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary minst #include file, should be included by most if not
* all minst source files. Gives access to the global data structure
* and all global macros.
diff --git a/src/share/demo/jvmti/mtrace/Mtrace.java b/src/share/demo/jvmti/mtrace/Mtrace.java
index 085d5a6c99a75e860da3a34042059ef965f5dceb..061400a1f8b408357cf3c78fc01812c5f60b0dbc 100644
--- a/src/share/demo/jvmti/mtrace/Mtrace.java
+++ b/src/share/demo/jvmti/mtrace/Mtrace.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Java class to hold static methods which will be called in byte code
* injections of all class files.
diff --git a/src/share/demo/jvmti/mtrace/mtrace.c b/src/share/demo/jvmti/mtrace/mtrace.c
index 86e8e6071419d67fecd6004f215c46c2a57b9578..4a43b54f93b127931932f5d2e0b45d3b081cfaa3 100644
--- a/src/share/demo/jvmti/mtrace/mtrace.c
+++ b/src/share/demo/jvmti/mtrace/mtrace.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "stdlib.h"
#include "mtrace.h"
diff --git a/src/share/demo/jvmti/mtrace/mtrace.h b/src/share/demo/jvmti/mtrace/mtrace.h
index c442c191947ffe88d476a34e365c4e7ea6623f37..15c0824017c1e82f546962359a7ea4c368c18942 100644
--- a/src/share/demo/jvmti/mtrace/mtrace.h
+++ b/src/share/demo/jvmti/mtrace/mtrace.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary mtrace #include file, should be included by most if not
* all mtrace source files. Gives access to the global data structure
* and all global macros.
diff --git a/src/share/demo/jvmti/versionCheck/versionCheck.c b/src/share/demo/jvmti/versionCheck/versionCheck.c
index 5dd6140b75f7ec9c6d87113af07ee90137108f8f..b49d7b8209d801b3a7f904bbcaf64ab9aee169d9 100644
--- a/src/share/demo/jvmti/versionCheck/versionCheck.c
+++ b/src/share/demo/jvmti/versionCheck/versionCheck.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include
diff --git a/src/share/demo/jvmti/waiters/Agent.cpp b/src/share/demo/jvmti/waiters/Agent.cpp
index 551c75d8fe4b2cb59b59ffaf5251d8ccd7c5490c..4fd87d0015dd353414af6ee15500c80d29ccadc5 100644
--- a/src/share/demo/jvmti/waiters/Agent.cpp
+++ b/src/share/demo/jvmti/waiters/Agent.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include
diff --git a/src/share/demo/jvmti/waiters/Agent.hpp b/src/share/demo/jvmti/waiters/Agent.hpp
index 79ea61ceed04f1344f24655e658b81c3ff91edf7..c508863cf0cfa24ae29be74d11956a3a7f6e0d5c 100644
--- a/src/share/demo/jvmti/waiters/Agent.hpp
+++ b/src/share/demo/jvmti/waiters/Agent.hpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* C++ Agent class */
class Agent {
diff --git a/src/share/demo/jvmti/waiters/Monitor.cpp b/src/share/demo/jvmti/waiters/Monitor.cpp
index 9e1970837bdadb830fbdd2bf3921ba32c17d4a2e..a99d5a6fa1f3dfd3f87f792848eb700854066109 100644
--- a/src/share/demo/jvmti/waiters/Monitor.cpp
+++ b/src/share/demo/jvmti/waiters/Monitor.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include
diff --git a/src/share/demo/jvmti/waiters/Monitor.hpp b/src/share/demo/jvmti/waiters/Monitor.hpp
index 3508ea0b9d2189850ba5ec30041ecef4b6444179..cd5444b2476106788b239b2304322a46317d3163 100644
--- a/src/share/demo/jvmti/waiters/Monitor.hpp
+++ b/src/share/demo/jvmti/waiters/Monitor.hpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* C++ Monitor class */
class Monitor {
diff --git a/src/share/demo/jvmti/waiters/Thread.cpp b/src/share/demo/jvmti/waiters/Thread.cpp
index 7e12d4e88a58b7bc74b719583a04189f46fdb08b..ca9056710caa76b68a20cdc1b2a6c6271a078412 100644
--- a/src/share/demo/jvmti/waiters/Thread.cpp
+++ b/src/share/demo/jvmti/waiters/Thread.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include
diff --git a/src/share/demo/jvmti/waiters/Thread.hpp b/src/share/demo/jvmti/waiters/Thread.hpp
index 19adb98cd23314b8c2a5636fdeb06cef68d2ce2d..32697c04cd7f027edb30833a4a8fbeb04c203ad6 100644
--- a/src/share/demo/jvmti/waiters/Thread.hpp
+++ b/src/share/demo/jvmti/waiters/Thread.hpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* C++ Thread class */
class Thread {
diff --git a/src/share/demo/jvmti/waiters/waiters.cpp b/src/share/demo/jvmti/waiters/waiters.cpp
index 1bc53f73fb4e07d5ab72dc812cfced3e00b64564..c6d34c3dafbdf23c61fe8e5dbabe99aaf2bc429d 100644
--- a/src/share/demo/jvmti/waiters/waiters.cpp
+++ b/src/share/demo/jvmti/waiters/waiters.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Example of using JVMTI events:
* JVMTI_EVENT_VM_INIT
* JVMTI_EVENT_VM_DEATH
diff --git a/src/share/demo/management/FullThreadDump/Deadlock.java b/src/share/demo/management/FullThreadDump/Deadlock.java
index 2cc2d3e518d56045b71da837bdd43a442a90a69b..452335f97a15dfa80e7a849357f78fbc3a5ab67f 100644
--- a/src/share/demo/management/FullThreadDump/Deadlock.java
+++ b/src/share/demo/management/FullThreadDump/Deadlock.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/management/FullThreadDump/FullThreadDump.java b/src/share/demo/management/FullThreadDump/FullThreadDump.java
index 15c95de3268ee74616e2fc6322f1667501d41dbd..09e85ee5afaeb14e272d822ac4ac4590adc0cb6b 100644
--- a/src/share/demo/management/FullThreadDump/FullThreadDump.java
+++ b/src/share/demo/management/FullThreadDump/FullThreadDump.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/management/FullThreadDump/ThreadMonitor.java b/src/share/demo/management/FullThreadDump/ThreadMonitor.java
index eb4ed7803d253e080162baa9438c2fa7f46aa333..2942ce1aa2a99bab2e3d0b83f92e854f59c5bd44 100644
--- a/src/share/demo/management/FullThreadDump/ThreadMonitor.java
+++ b/src/share/demo/management/FullThreadDump/ThreadMonitor.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/management/JTop/JTop.java b/src/share/demo/management/JTop/JTop.java
index 39f4cab133a5fdba12db3d65de1bc87072803624..4c1539d883cdd5543d8ec6a769da7a55b6a73e47 100644
--- a/src/share/demo/management/JTop/JTop.java
+++ b/src/share/demo/management/JTop/JTop.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*
* Example of using the java.lang.management API to sort threads
diff --git a/src/share/demo/management/JTop/JTopPlugin.java b/src/share/demo/management/JTop/JTopPlugin.java
index 9586f9ad48dc187dddde2f405e5d8c6f81bc424a..478d865252e2c3d56ca9d38d647f1811b7ca95f9 100644
--- a/src/share/demo/management/JTop/JTopPlugin.java
+++ b/src/share/demo/management/JTop/JTopPlugin.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*
* Example of a JConsole Plugin. This loads JTop as a JConsole tab.
diff --git a/src/share/demo/management/MemoryMonitor/MemoryMonitor.java b/src/share/demo/management/MemoryMonitor/MemoryMonitor.java
index 676b698f3fbe696a9a63df5de536242e570d52e2..717e34b13cf825350eeadc80f3c90c4f2e501f23 100644
--- a/src/share/demo/management/MemoryMonitor/MemoryMonitor.java
+++ b/src/share/demo/management/MemoryMonitor/MemoryMonitor.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/management/VerboseGC/PrintGCStat.java b/src/share/demo/management/VerboseGC/PrintGCStat.java
index d4485043a273e8030796b316f0bffdbe205ede26..d3f84df997ac1f5c1a612f384497778098281233 100644
--- a/src/share/demo/management/VerboseGC/PrintGCStat.java
+++ b/src/share/demo/management/VerboseGC/PrintGCStat.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/management/VerboseGC/VerboseGC.java b/src/share/demo/management/VerboseGC/VerboseGC.java
index 963389423bae8d2a66c44842ab6e7f7106ac7ae3..b70cebb0f05f39b6d8def8208f18afb498b9d65d 100644
--- a/src/share/demo/management/VerboseGC/VerboseGC.java
+++ b/src/share/demo/management/VerboseGC/VerboseGC.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*/
diff --git a/src/share/demo/nio/zipfs/Demo.java b/src/share/demo/nio/zipfs/Demo.java
index 394a5f7d013d992533919cfea840e16e348c3a37..17927b1b15ce79abf94f86df85b34c33b40fcd5b 100644
--- a/src/share/demo/nio/zipfs/Demo.java
+++ b/src/share/demo/nio/zipfs/Demo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java
index b9ea826ab11e4f63692093a6075d4d64aaf53b86..72dc21756bbce3beef2d95eb800b21598a42f7d0 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.nio.zipfs;
import java.nio.file.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java
index 92c5535ab191454ae6c3c46dc1c1b1b75d6f0a14..d78c485766b7a516d76951843a6b708f3aec70ac 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.nio.ByteBuffer;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java
index 24c28cfe80c5477b59e761892780b0c2344de47d..dd15bf87e682ab1b8fc9e151878a5afc603db0fa 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java
index 543220fc63ae51f27b17376c6ebfe1c1740b4b6c..7ee803cc35d1b8b50e3ab76574a3358e89d28c1f 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.nio.file.DirectoryStream;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java
index c646a09e5e36eafb4256313f83499c6817a26113..2498acd8e58e43739dd4549ffd002747f387bc9b 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java
index 687f92644c4de283a4b96ba0bcefaa1793c48df4..7e532ca1dd3e7729b86cbda85d39dd6f12f616f5 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java
index 94ec0307dd9bd6dbe0b58f16ab18f38d6ebd7598..996f7cc0ef9ee0e579bc1b474bde1b5cb79f8db7 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.IOException;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java
index 000a025f3cc455a465018253ed5a41931868b324..d09da8e6dd9f4cf1dcfa9dceb6c9d0381b0dc680 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.BufferedOutputStream;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java
index c6dd243815e08ffb02499ad43ccb397f1d090fdf..49d9ee7b908a1c0a1648a7411a72f004cc5186c9 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java
index 56954e1d9eab231dbdd1416837650b90ccfffcbc..71274e2a111a31811e916abf9d5743e44f839e80 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.nio.file.Paths;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java
index 8c97818b24482f3fde4f129a7f46185054d041e7..3527e5de25b2a87f526c75b128f4dafa8a70a00b 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java
index cddec6f9bef62d808a863e22ef914f03f678c9da..8938d9e2a059494ff3b5050669a8f1a264225839 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.IOException;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java
index fa9bf1d5480c6b47276053d38dbc74f2870075b2..9dbc34ec6ad576619f90b0377b7b7bbf4e07e08c 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.demo.scripting.jconsole;
import javax.swing.text.*;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java
index 6bae2c80f8b5d8a2fa33a1784d81ac41fe282fd2..330fd7df5b7491ef6121bfea74e1586bde985e25 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.demo.scripting.jconsole;
import com.sun.tools.jconsole.*;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java
index 54731af539f2a2b00a542828517b4728e0ae9549..c6b87d6083405bdcc98e3fab289a49ad1e8372f9 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.demo.scripting.jconsole;
import java.awt.*;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js b/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js
index dd1f724f673eb9fa3997da7069a3aeeeef3c5f0a..f7253b3448ec38d3d17c01248337ae4d714e299f 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js
index 2577b2ab5e2b5bab806324535676ca8a520c2b8f..d2af00d5dddb7976550ba12fdf1a27c2e208e7e8 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This file defines heapdump function to heap dump
* in binary format. User can call this function
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js
index 1454cc744e88fc182cc9f46531e509a8609adc59..0cbdb6dd1edbc62db3db7767e02309df1d4a38de 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This is sample JavaScript file that can be loaded into script console.
* This file prints "hello, world".
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js
index 09a060aa62be7ee209221a0e160813b37f913443..4bac941780ea88b01a2edca6d6bd8cc141e3e15b 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script demonstrates "invokeMBean" function. Instead
* of using MXBean proxy or script wrapper object returned by
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js
index 831377dee1ae7abe44a2f0204ae294538c7ab6c6..2114b6e09ea5a99d553635e8e3729ba4ef39d16f 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This file defines 'jstack' function to print stack traces of
* threads.'jstack' function which can be called once or periodically
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js
index 55e75ac1093d61d5428cd6203a46a63da5c27cdc..ff79bf6abc90d7c08e1a5037ef87a593bc896da5 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This code is "ported" from JTop demo. This file defines
* 'jtop' function. jtop prints threads sorting by CPU time.
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js
index 012b92b90473e7221805708ffb49d727a9b66c2b..a78fde4f1f4bb22ceb44f4635178e704995a122e 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This file defines 'sysprops' function to print Java System
* properties.'sysprops' function which can be called once or periodically
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js
index b57011ebe0549fc88fc8f399c292b585eb082be9..4e5bb97d25bfe339a2b6f0531e366bc84a68aa15 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script demonstrates "getMBeanAttribute"
* and "setMBeanAttribute" functions. Instead of using
diff --git a/src/share/sample/README b/src/share/sample/README
new file mode 100644
index 0000000000000000000000000000000000000000..ae56b64d728009d7ebce9f133c946e613767333a
--- /dev/null
+++ b/src/share/sample/README
@@ -0,0 +1,6 @@
+The source code provided with samples and demos for the JDK is meant
+to illustrate the usage of a given feature or technique and has been
+deliberately simplified. Additional steps required for a
+production-quality application, such as security checks, input
+validation, and proper error handling, might not be present in the
+sample code.
diff --git a/src/share/sample/forkjoin/mergesort/MergeDemo.java b/src/share/sample/forkjoin/mergesort/MergeDemo.java
index f7daf05244faa60ed631ceedd87d45985cdac806..528f383f2f3ff0c67901a0c873900365e9ab3b07 100644
--- a/src/share/sample/forkjoin/mergesort/MergeDemo.java
+++ b/src/share/sample/forkjoin/mergesort/MergeDemo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.Arrays;
import java.util.Random;
diff --git a/src/share/sample/forkjoin/mergesort/MergeSort.java b/src/share/sample/forkjoin/mergesort/MergeSort.java
index b9cf0f50c163c15759431fbc6b064843b31e7bfd..0ae48dcd11a74da91b953fc37d96546143eb10c9 100644
--- a/src/share/sample/forkjoin/mergesort/MergeSort.java
+++ b/src/share/sample/forkjoin/mergesort/MergeSort.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.Arrays;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java
index 1c761e1c5dcf5139c2ce909b997b2dca54cc77a4..0187dc550fee4788e9128113ea1ddf225b41ce6b 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java
index ecb4cfcc7541c940ed65cd35db6432b5ba500671..5da41d1efbcfe9f519d85c3430c2bc83fcd9318d 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java
index 46aaaaa6ed655cfa16b4b7e48795744459ccccd9..364543ff9274467a38e65c5e99eab0723908dca9 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java
index 379e412535617013d2d8c6aad90fa0617ed01034..49ac5d67d7331c574d0eae625f0f840cf3a3a606 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.ResultRecord;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java
index bf620d664322c7c5d0e9c3722d5a6713f984bb94..6957e5de14fb78eedbcbb1bc8c985ce63f8c04c0 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java
index b6e7f8ffa4d96536f7aa3fed5d4efa0e9a3dd842..57f948f52e02f86e1fa3ebf0a36b993dcace100f 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.net.InetAddress;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java
index 2a71689b2453b710d59a9d6e767c5ecb49cca6ad..2e63a53b4a9c93b1609aefdce1710e4eecd314e0 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java
index 2714cee3f81c1f0b23e56efa2a6b2bd99b747771..d207add704d169d6c190b0c61c771e89d59c57c9 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java
index 52c7cc1092bc34a77a0b00dcc2d1704a6879afaf..90cedebb7a375fc32232f463432f36812e286e38 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState.*;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java
index 3eac0616004a966549d92c95311573867734cd4f..fa9b03b209e75b31019fbcd0507a48dcbcd15816 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.io.IOException;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java
index ec71766556833275a08f7d71f8caecc39468ddf6..e186046f3d9d6990ef58eacc671baca3575046fd 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.io.File;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java
index ae75835f00aa997045f7d25def3d9d832b2b1e53..133ad64f6ec8ec935bdde8ab969c0b6013253619 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.io.File;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java
index a621eec91a6f1fc9f8ead9f23f3b5f48916490d4..8277f47f84b233640f6240272d0eadbc5df2643f 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.util.Arrays;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java
index b1d906783d1ed3b17149d5afc9e59bbd2f9692b7..c2309289e20c5655b1f83470a612929621b5a512 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.util.Date;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java
index 5da3f97c2530658f09e1ac086f4bcaceaee2e61f..dbae7a8f8564ba1d6ad8cf33c5f5abeaeeafa7b3 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.util.Arrays;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java
index 75e4f7425e703165f81c3d079b7becc83c24f124..e450eaa8e31256f3f7533cd84790cababdaa5b5f 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.io.ByteArrayInputStream;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java
index b38a2d6614af6f377acd41f041e71203dd5259b5..247b1d4be502a1b38b12e349179aac091cfaf122 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java
index 36cda481b632d1d7682eae565552b5c7a85f1b84..f9cac9405ce60b2c09499b99823d5807e95c8d24 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.XmlConfigUtils;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java
index 9c700f395792c35ad9e741392e9479b54b371cc8..7c4e03106f9151f05278c4a51edba8d809404935 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.util.concurrent.LinkedBlockingQueue;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java
index 1916cc974799d235b97b58b9e124a3f0497cb7ea..de9b99d6b5887fa48344bc89b1f6285dd5232d45 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.lang.reflect.InvocationHandler;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java
index c63dca1b416de9e07bddce68ebf17dabb213c229..7b15d68accc918f080f924dcc93af411c9732cde 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import junit.framework.*;
diff --git a/src/share/sample/nio/chatserver/ChatServer.java b/src/share/sample/nio/chatserver/ChatServer.java
index 072999bd511e4cbbc87f8b3096f0424f7aa3a488..f807aa184a027c59564538d74da1da81c8daa284 100644
--- a/src/share/sample/nio/chatserver/ChatServer.java
+++ b/src/share/sample/nio/chatserver/ChatServer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
diff --git a/src/share/sample/nio/chatserver/Client.java b/src/share/sample/nio/chatserver/Client.java
index d89516a22d95e2c9d5931424017ae7e2c9545778..31ee034eb32bae5b92ad20d1bb079884bbef1dea 100644
--- a/src/share/sample/nio/chatserver/Client.java
+++ b/src/share/sample/nio/chatserver/Client.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousSocketChannel;
diff --git a/src/share/sample/nio/chatserver/ClientReader.java b/src/share/sample/nio/chatserver/ClientReader.java
index 5308805ea04cb84dac21517ae09f1cbf62e02b14..ee84b08a3db2cfd6c76f52b052c77d964270cb3e 100644
--- a/src/share/sample/nio/chatserver/ClientReader.java
+++ b/src/share/sample/nio/chatserver/ClientReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
import java.nio.channels.CompletionHandler;
diff --git a/src/share/sample/nio/chatserver/DataReader.java b/src/share/sample/nio/chatserver/DataReader.java
index 574c69dd1bf89d78554f06c6bd7630c112f5b938..8858c9f0962cc3a2832e7905fa7975e0fa90e200 100644
--- a/src/share/sample/nio/chatserver/DataReader.java
+++ b/src/share/sample/nio/chatserver/DataReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
public interface DataReader {
diff --git a/src/share/sample/nio/chatserver/MessageReader.java b/src/share/sample/nio/chatserver/MessageReader.java
index 46fde6f06f5dcb1e457800d74110a0b1dcc9b961..81c370b17c27b115c87faa48957698c8ce7cd259 100644
--- a/src/share/sample/nio/chatserver/MessageReader.java
+++ b/src/share/sample/nio/chatserver/MessageReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
/**
diff --git a/src/share/sample/nio/chatserver/NameReader.java b/src/share/sample/nio/chatserver/NameReader.java
index d0484d0fd044b5e17a84c27630e396d7a0d29af3..341d4da3347223e0aceebd31d86a62a10413ee83 100644
--- a/src/share/sample/nio/chatserver/NameReader.java
+++ b/src/share/sample/nio/chatserver/NameReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
/**
diff --git a/src/share/sample/nio/file/AclEdit.java b/src/share/sample/nio/file/AclEdit.java
index 02b6ae78aa3340cece625ee3bc150edee5d3b591..90af86518b6e63031d847058d845ffa3df85fbe6 100644
--- a/src/share/sample/nio/file/AclEdit.java
+++ b/src/share/sample/nio/file/AclEdit.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.nio.file.attribute.*;
import java.io.IOException;
diff --git a/src/share/sample/nio/file/Chmod.java b/src/share/sample/nio/file/Chmod.java
index 321f4552551fbc84dd30f18a13b0fda11d7f1bbe..05c16b9963129930e48c4d136c503abcc73785b7 100644
--- a/src/share/sample/nio/file/Chmod.java
+++ b/src/share/sample/nio/file/Chmod.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.nio.file.attribute.*;
import static java.nio.file.attribute.PosixFilePermission.*;
diff --git a/src/share/sample/nio/file/Copy.java b/src/share/sample/nio/file/Copy.java
index 7cb684183aa492706f9f08608cc6f94549ffc8d5..0d61ef3466d12e2f64ffca4357d593c608f4b8e8 100644
--- a/src/share/sample/nio/file/Copy.java
+++ b/src/share/sample/nio/file/Copy.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import static java.nio.file.StandardCopyOption.*;
import java.nio.file.attribute.*;
diff --git a/src/share/sample/nio/file/DiskUsage.java b/src/share/sample/nio/file/DiskUsage.java
index 8d6bbb674d1512032cfe9da01c616899cc2e72b6..7d30bdfe2275f915753d98df06ea03f2b96b7f89 100644
--- a/src/share/sample/nio/file/DiskUsage.java
+++ b/src/share/sample/nio/file/DiskUsage.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.nio.file.attribute.*;
import java.io.IOException;
diff --git a/src/share/sample/nio/file/FileType.java b/src/share/sample/nio/file/FileType.java
index dc754b5f8955053bd1d162971da85eadb7e78af4..d001d6018b06e78f9172cebcf5c707f9f0c4315c 100644
--- a/src/share/sample/nio/file/FileType.java
+++ b/src/share/sample/nio/file/FileType.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.io.IOException;
diff --git a/src/share/sample/nio/file/WatchDir.java b/src/share/sample/nio/file/WatchDir.java
index 49e278e14ef9899318600b42bd302abf952f487f..4c738209f8bff3f5b245f8053d53925ae223e3e9 100644
--- a/src/share/sample/nio/file/WatchDir.java
+++ b/src/share/sample/nio/file/WatchDir.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import static java.nio.file.StandardWatchEventKinds.*;
import static java.nio.file.LinkOption.*;
diff --git a/src/share/sample/nio/file/Xdd.java b/src/share/sample/nio/file/Xdd.java
index f07802f264ac473b18091525775891eb1b749449..c0c7f8778a362615bf9e7766f21a789fcfbca3c5 100644
--- a/src/share/sample/nio/file/Xdd.java
+++ b/src/share/sample/nio/file/Xdd.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.file.*;
diff --git a/src/share/sample/nio/multicast/MulticastAddress.java b/src/share/sample/nio/multicast/MulticastAddress.java
index df0619df167182c7f6bf3e5676c02b52b0c39f6b..400eb324f26f50958ab5832601d3dd436bb6a810 100644
--- a/src/share/sample/nio/multicast/MulticastAddress.java
+++ b/src/share/sample/nio/multicast/MulticastAddress.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.UnknownHostException;
diff --git a/src/share/sample/nio/multicast/Reader.java b/src/share/sample/nio/multicast/Reader.java
index 59190f5b8e9579e43932aaeda95f5bc4f78079c6..5780d730e89d4a1c5f6cc9a56d39d8ee9872e5d4 100644
--- a/src/share/sample/nio/multicast/Reader.java
+++ b/src/share/sample/nio/multicast/Reader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
import java.nio.charset.*;
import java.nio.ByteBuffer;
diff --git a/src/share/sample/nio/multicast/Sender.java b/src/share/sample/nio/multicast/Sender.java
index d22d334f604109ea98923d61d211f37c32d317c1..6bc76af27f02bb5cc6afbcd4c283e308f8eba6ca 100644
--- a/src/share/sample/nio/multicast/Sender.java
+++ b/src/share/sample/nio/multicast/Sender.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
import java.nio.charset.Charset;
import java.net.*;
diff --git a/src/share/sample/nio/server/AcceptHandler.java b/src/share/sample/nio/server/AcceptHandler.java
index f24e7d37c18002542f8ce5616311f2be5c2e3b16..2efd309f88a006c3a2c7e2cf7da6f2943f1fa6ed 100644
--- a/src/share/sample/nio/server/AcceptHandler.java
+++ b/src/share/sample/nio/server/AcceptHandler.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import javax.net.ssl.*;
diff --git a/src/share/sample/nio/server/Acceptor.java b/src/share/sample/nio/server/Acceptor.java
index a9fb52ba866993acbdbc6b7674712f1dd6b3675b..502e63275acd3f0a2f36e84df599da0ac20674d3 100644
--- a/src/share/sample/nio/server/Acceptor.java
+++ b/src/share/sample/nio/server/Acceptor.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import javax.net.ssl.*;
diff --git a/src/share/sample/nio/server/B1.java b/src/share/sample/nio/server/B1.java
index e858e4ebfc39d624c67025839d3df39010e08eb8..71011db72bca7cdc9eac92f35f259ca534dedcf2 100644
--- a/src/share/sample/nio/server/B1.java
+++ b/src/share/sample/nio/server/B1.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
/**
diff --git a/src/share/sample/nio/server/BN.java b/src/share/sample/nio/server/BN.java
index 57c2b7a484c9a5e7e5c7da12b89d85def78f672a..8a268c58d86fb56f98c21cf51a16a7464e187b76 100644
--- a/src/share/sample/nio/server/BN.java
+++ b/src/share/sample/nio/server/BN.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/BP.java b/src/share/sample/nio/server/BP.java
index a0d8e9e94f346a530993d985f10386bb2c35330a..5029cdd0cdbfb981644751e62af59914b1d63f2a 100644
--- a/src/share/sample/nio/server/BP.java
+++ b/src/share/sample/nio/server/BP.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
import java.util.concurrent.*;
diff --git a/src/share/sample/nio/server/ChannelIO.java b/src/share/sample/nio/server/ChannelIO.java
index 244a5062dff3d83145d0dd52eced24a67cb3b2bb..80fe9efdd151edea35c19d3eb56101e9c6d44cbc 100644
--- a/src/share/sample/nio/server/ChannelIO.java
+++ b/src/share/sample/nio/server/ChannelIO.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/ChannelIOSecure.java b/src/share/sample/nio/server/ChannelIOSecure.java
index 7cc05cb01ba6e6d3e4099ece64980f8270599645..3ec6c93767c50ea96031ca221ea561ad1209cce8 100644
--- a/src/share/sample/nio/server/ChannelIOSecure.java
+++ b/src/share/sample/nio/server/ChannelIOSecure.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/Content.java b/src/share/sample/nio/server/Content.java
index 7eebc90b2b41bbe547f0fea08b48fe4516ed944a..4a6938a6b945484871c214c0df9c3582530fb93c 100644
--- a/src/share/sample/nio/server/Content.java
+++ b/src/share/sample/nio/server/Content.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* An Sendable interface extension that adds additional
* methods for additional information, such as Files
diff --git a/src/share/sample/nio/server/Dispatcher.java b/src/share/sample/nio/server/Dispatcher.java
index 660790414b1eaa60f20d1ef9d8a5e7933e998579..d82cc55375c2bb2f19c0644cfc82c297f4ec119c 100644
--- a/src/share/sample/nio/server/Dispatcher.java
+++ b/src/share/sample/nio/server/Dispatcher.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/Dispatcher1.java b/src/share/sample/nio/server/Dispatcher1.java
index 78e93890acc0092c10b244447b40751e57b55f57..16d80aa553eb8b96ef4bc3117b88fa34fb4ad6a5 100644
--- a/src/share/sample/nio/server/Dispatcher1.java
+++ b/src/share/sample/nio/server/Dispatcher1.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import java.util.*;
diff --git a/src/share/sample/nio/server/DispatcherN.java b/src/share/sample/nio/server/DispatcherN.java
index 51355d6bc88514e78ed154b69dcd0bf506bb562d..1b0d4067e3b6e2342d3b17834e276814459029cd 100644
--- a/src/share/sample/nio/server/DispatcherN.java
+++ b/src/share/sample/nio/server/DispatcherN.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import java.util.*;
diff --git a/src/share/sample/nio/server/FileContent.java b/src/share/sample/nio/server/FileContent.java
index 36b7c6c6da9deda0f63ee5be321f65931ff6d488..675b00a0a02bf833e5eb06bec2f29390755b9c74 100644
--- a/src/share/sample/nio/server/FileContent.java
+++ b/src/share/sample/nio/server/FileContent.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/Handler.java b/src/share/sample/nio/server/Handler.java
index 5705fad6b66b6d46b0693ce1593f161d12c326c9..29e0b18711def55e40d20a6f34ce1624ae717533 100644
--- a/src/share/sample/nio/server/Handler.java
+++ b/src/share/sample/nio/server/Handler.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/MalformedRequestException.java b/src/share/sample/nio/server/MalformedRequestException.java
index 089805afb68ecad71d6a50b8ff2f5db6311f53dd..bc785ed1ce1418b571603747fcd663ff7fda91eb 100644
--- a/src/share/sample/nio/server/MalformedRequestException.java
+++ b/src/share/sample/nio/server/MalformedRequestException.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* Exception class used when a request can't be properly parsed.
*
diff --git a/src/share/sample/nio/server/N1.java b/src/share/sample/nio/server/N1.java
index 6aa03fe541a05222472850c77edc97b52eeefdae..761ec6e7409c8240d274eff4e014eb0dc0f80ffe 100644
--- a/src/share/sample/nio/server/N1.java
+++ b/src/share/sample/nio/server/N1.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
/**
diff --git a/src/share/sample/nio/server/N2.java b/src/share/sample/nio/server/N2.java
index 49a4abdfcd4d93813b3ae89cb7c24f7b2603e747..aff22cc4d664c6d71b8d2e415d2b926e7c8360f5 100644
--- a/src/share/sample/nio/server/N2.java
+++ b/src/share/sample/nio/server/N2.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A non-blocking/dual-threaded which performs accept()s in one thread,
* and services requests in a second. Both threads use select().
diff --git a/src/share/sample/nio/server/Reply.java b/src/share/sample/nio/server/Reply.java
index ff3da8984c2b040337565928bfbba1e4a365a39c..c2d7f3be89db1bf563568e8edca0cc176734c102 100644
--- a/src/share/sample/nio/server/Reply.java
+++ b/src/share/sample/nio/server/Reply.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.charset.*;
diff --git a/src/share/sample/nio/server/Request.java b/src/share/sample/nio/server/Request.java
index 3b227fe8ef1c44f58ab4254456d3665076af7612..7767d1a849c86b118b11e7fe18d97d5df893c6c7 100644
--- a/src/share/sample/nio/server/Request.java
+++ b/src/share/sample/nio/server/Request.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.net.*;
import java.nio.*;
import java.nio.charset.*;
diff --git a/src/share/sample/nio/server/RequestHandler.java b/src/share/sample/nio/server/RequestHandler.java
index 7b7ca78f94bb9b6e436bb8c0a833c942521dce90..59953c700999abe211d1abd101be9838b1705dfd 100644
--- a/src/share/sample/nio/server/RequestHandler.java
+++ b/src/share/sample/nio/server/RequestHandler.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/RequestServicer.java b/src/share/sample/nio/server/RequestServicer.java
index 9f9e099dd37e760f4116a3e673293623bfbd8d8d..149e3ded42196f592288487adcecbc77651f941c 100644
--- a/src/share/sample/nio/server/RequestServicer.java
+++ b/src/share/sample/nio/server/RequestServicer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
diff --git a/src/share/sample/nio/server/Sendable.java b/src/share/sample/nio/server/Sendable.java
index 57219b098921d4c6e8a7ca3842620764fdce4710..b12dacf8caa860c87dae94dfc05f1586a6ba80d1 100644
--- a/src/share/sample/nio/server/Sendable.java
+++ b/src/share/sample/nio/server/Sendable.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
/**
diff --git a/src/share/sample/nio/server/Server.java b/src/share/sample/nio/server/Server.java
index f18fcc8f692ce57b6a1d6830c2b98536f26f31c2..40d31cafd4fae8ac7f0ea0881afce47229c786b7 100644
--- a/src/share/sample/nio/server/Server.java
+++ b/src/share/sample/nio/server/Server.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/StringContent.java b/src/share/sample/nio/server/StringContent.java
index a66b86424d026367db5b0bcde84027941e1a1ccd..4fb5088eabd2bf8053c648384f3c188bed0ce4bc 100644
--- a/src/share/sample/nio/server/StringContent.java
+++ b/src/share/sample/nio/server/StringContent.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.charset.*;
diff --git a/src/share/sample/nio/server/URLDumper.java b/src/share/sample/nio/server/URLDumper.java
index 481fe61ee1b85252e3b648f5892d12d4c73c6db9..b2864c7558023767af8263972f0aa39e55076e09 100644
--- a/src/share/sample/nio/server/URLDumper.java
+++ b/src/share/sample/nio/server/URLDumper.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
diff --git a/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java b/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java
index 5bb93764807424fad234f4b6d1a01e68716a46c2..d5c154c3ae1b9554b26e5e29b4c2a581f132c0a4 100644
--- a/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java
+++ b/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.sample.scriptpad;
import javax.script.*;
diff --git a/src/share/sample/scripting/scriptpad/src/resources/Main.js b/src/share/sample/scripting/scriptpad/src/resources/Main.js
index 3674853a01dcb812c41d1beca7dab184a3daffd6..5c057a46fab0bf5e73c3e356f95bf431fa850ace 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/Main.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/Main.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script can be loaded in jrunscript to start scriptpad.
*
diff --git a/src/share/sample/scripting/scriptpad/src/resources/conc.js b/src/share/sample/scripting/scriptpad/src/resources/conc.js
index 92df812ab62a21ff44c403d9f9550cc036c80330..d9a241215fb1ea27b781a3eed263a60e150bd4e7 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/conc.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/conc.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* Concurrency utilities for JavaScript. These are based on
* java.lang and java.util.concurrent API. The following functions
diff --git a/src/share/sample/scripting/scriptpad/src/resources/gui.js b/src/share/sample/scripting/scriptpad/src/resources/gui.js
index 13e102003160b6a7ed0e7abe3af4e03517e32372..cdf69493bbafe093f679c422fa4b69ff6dad6638 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/gui.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/gui.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* Few user interface utilities.
*/
diff --git a/src/share/sample/scripting/scriptpad/src/resources/mm.js b/src/share/sample/scripting/scriptpad/src/resources/mm.js
index 1558aff11b65ae7a02f906827f4f513998fbacfc..7d7cfe40164992eeeec46a063993a8447278c6f2 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/mm.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/mm.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This is a collection of utilities for Monitoring
* and management API.
diff --git a/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js b/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js
index 28c8ed5ee0eeb71776706fd82b47a186975237af..cdc9657d07b71b133cb3c3e298766acd16dcaac2 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script creates a simple Notepad-like interface, which
* serves as a simple script editor, runner.
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/browse.js b/src/share/sample/scripting/scriptpad/src/scripts/browse.js
index cd03f904fc213381944a3654d28cc77be79a4a15..3bbc457f5c90352255fcb2ad7b873c3080c09e99 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/browse.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/browse.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This function uses new Swing Desktop API in JDK 6.
* To use this with scriptpad, open this in scriptpad
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js b/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js
index 68d86020271f1e7a919baec646235493c2a8b0b5..c57519a8ace7937ec1f067022c2d53972bae1075 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script adds "Insert File" mode menu item to "Tools" menu.
* When selected, this menu shows a file dialog box and inserts
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js b/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js
index 66c4c74047125736c050d2737f4d6e4c9fa017d3..fcdbe8d13468133f84adaea7049a955db1fadd64 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script adds "Line Wrap" mode menu item to "Tools" menu.
* When selected, this menu toggles the current word wrap mode
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/mail.js b/src/share/sample/scripting/scriptpad/src/scripts/mail.js
index 2a5db2a9566c9f9f8f602bc432796b5c2f95d450..9f6cc546422acb08f8528495887c8d7fa427373e 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/mail.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/mail.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This function uses new Swing Desktop API in JDK 6.
* To use this with scriptpad, open this in scriptpad
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js b/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js
index 641314bd23e801efad0cd69cf51c4b9d11494e8d..d1c286b561756d89fcd9648019222dfb6a60d3d1 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
// this checker function runs asynchronously
function memoryChecker(memoryBean, threshold, interval) {
while (true) {
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/memory.js b/src/share/sample/scripting/scriptpad/src/scripts/memory.js
index 9bd1989aa30df28bf668b1993eaffa4016dada41..4bd1301b4e9ff277830c99166cca56c81d9f1f37 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/memory.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/memory.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script serves as a simple "monitored application".
* Start this script using memory.bat or memory.sh in the
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js b/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js
index ae61327f7e72577dc52af612cb8401c33c57fd42..ff12ba7705e269009244c8938b3092bcd17c758b 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
* This script adds "Selected Text Color" menu item to "Tools" menu.
* When selected, this menu changes the "selected text" color.
diff --git a/src/share/sample/vm/clr-jvm/invoked.java b/src/share/sample/vm/clr-jvm/invoked.java
index 747071597d421402278798cca411ee6c831fe467..ec619c6207a51fb69e2a8a829a67a5f120518079 100644
--- a/src/share/sample/vm/clr-jvm/invoked.java
+++ b/src/share/sample/vm/clr-jvm/invoked.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
public class invoked {
public static void main(String args[]) {
diff --git a/src/share/sample/vm/clr-jvm/jinvoker.cpp b/src/share/sample/vm/clr-jvm/jinvoker.cpp
index d4a333f969093b55cf8d6c06f70b33f67ae52284..5504b936f1b71b1c43db49da80fa82d2b192e221 100644
--- a/src/share/sample/vm/clr-jvm/jinvoker.cpp
+++ b/src/share/sample/vm/clr-jvm/jinvoker.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include "jinvokerExp.h"
diff --git a/src/share/sample/vm/clr-jvm/jinvokerExp.h b/src/share/sample/vm/clr-jvm/jinvokerExp.h
index 7cd878d1e6fa3f873b2e1fa6446d96f30637b2fd..7edf4dac9179af23a13778b1b5a4fff3c7cb3150 100644
--- a/src/share/sample/vm/clr-jvm/jinvokerExp.h
+++ b/src/share/sample/vm/clr-jvm/jinvokerExp.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
diff --git a/src/share/sample/vm/jvm-clr/invoker.cpp b/src/share/sample/vm/jvm-clr/invoker.cpp
index 633c579f0d6ef53fc65091a388257b56c3ead99f..66a4dafffe2ed3158cf1d6acbe788ac76eabaab3 100644
--- a/src/share/sample/vm/jvm-clr/invoker.cpp
+++ b/src/share/sample/vm/jvm-clr/invoker.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#define _WIN32_WINNT 0x0400
#include "windows.h"
#include "Oleauto.h"
diff --git a/src/share/sample/vm/jvm-clr/invoker.h b/src/share/sample/vm/jvm-clr/invoker.h
index 7005df2dab743e8b7e779476409427bcbda93670..768e810c477eb0493c1537fcab1d5c273381676c 100644
--- a/src/share/sample/vm/jvm-clr/invoker.h
+++ b/src/share/sample/vm/jvm-clr/invoker.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* DO NOT EDIT THIS FILE - it is machine generated */
#include
/* Header for class invoker */
diff --git a/src/share/sample/vm/jvm-clr/invoker.java b/src/share/sample/vm/jvm-clr/invoker.java
index a1c8309626e6598a4dc27ca3f37ff0d159483f92..4d8154d6ab46c44678dc12ce55901dc74bb72e27 100644
--- a/src/share/sample/vm/jvm-clr/invoker.java
+++ b/src/share/sample/vm/jvm-clr/invoker.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
public class invoker {
static {
diff --git a/src/share/sample/vm/jvm-clr/invokerExp.h b/src/share/sample/vm/jvm-clr/invokerExp.h
index cea8c94a50da00e7bfe35481f41707783cbc6529..3565d1df8a69c8efac6df3c08eb4f10ed87b1a41 100644
--- a/src/share/sample/vm/jvm-clr/invokerExp.h
+++ b/src/share/sample/vm/jvm-clr/invokerExp.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef _invoker_h
#define _invoker_h
diff --git a/src/solaris/classes/sun/awt/X11/XToolkit.java b/src/solaris/classes/sun/awt/X11/XToolkit.java
index 641d82180a905406e592d86de0a4dead4ebf9943..9f29d734d5e9d0f984e6293a4c524252e95c9613 100644
--- a/src/solaris/classes/sun/awt/X11/XToolkit.java
+++ b/src/solaris/classes/sun/awt/X11/XToolkit.java
@@ -1532,6 +1532,10 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
}
public synchronized void addPropertyChangeListener(String name, PropertyChangeListener pcl) {
+ if (name == null) {
+ // See JavaDoc for the Toolkit.addPropertyChangeListener() method
+ return;
+ }
initXSettingsIfNeeded(name);
super.addPropertyChangeListener(name, pcl);
}
diff --git a/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java b/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java
index a4aae246afe59646134a78db0f2c8d1ec4985e08..ffb920b63643fb5d4ade227bd13f0fcecfcf22df 100644
--- a/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java
+++ b/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java
@@ -95,11 +95,11 @@ public class X11GraphicsEnvironment
}
// Now check for XRender system property
- boolean xRenderRequested = false;
+ boolean xRenderRequested = true;
String xProp = System.getProperty("sun.java2d.xrender");
if (xProp != null) {
- if (xProp.equals("true") || xProp.equals("t")) {
- xRenderRequested = true;
+ if (xProp.equals("false") || xProp.equals("f")) {
+ xRenderRequested = false;
} else if (xProp.equals("True") || xProp.equals("T")) {
xRenderRequested = true;
xRenderVerbose = true;
diff --git a/src/solaris/demo/jni/Poller/Client.java b/src/solaris/demo/jni/Poller/Client.java
index f2e69be0dfaacd8fb6c9536f7f29f2b04435c85f..759ae6207dc4cbe5b06b012cec715801c8ddd383 100644
--- a/src/solaris/demo/jni/Poller/Client.java
+++ b/src/solaris/demo/jni/Poller/Client.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.*;
import java.net.*;
import java.io.*;
diff --git a/src/solaris/demo/jni/Poller/LinkedQueue.java b/src/solaris/demo/jni/Poller/LinkedQueue.java
index 46d1586910f0b6edc8d236d3bed7664bd39ad24a..fcebf47787c90c99db5a91e9af73a8b0680de7ee 100644
--- a/src/solaris/demo/jni/Poller/LinkedQueue.java
+++ b/src/solaris/demo/jni/Poller/LinkedQueue.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
File: SLQ.java
Originally: LinkedQueue.java
diff --git a/src/solaris/demo/jni/Poller/Poller.c b/src/solaris/demo/jni/Poller/Poller.c
index aa96db01cc5bad9eda7c4d9c719d17c7fe8d8cf2..39a6ce462fd48f537d0060e89b19b3506ea342a0 100644
--- a/src/solaris/demo/jni/Poller/Poller.c
+++ b/src/solaris/demo/jni/Poller/Poller.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/*
**********************************************************************
* Poller.c :
diff --git a/src/solaris/demo/jni/Poller/Poller.java b/src/solaris/demo/jni/Poller/Poller.java
index 71de5ded00b2a5b3615fde299196ca7bb0af50be..8b8d6af863166dac46bfda7e3c27d8fd195c2aa7 100644
--- a/src/solaris/demo/jni/Poller/Poller.java
+++ b/src/solaris/demo/jni/Poller/Poller.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.lang.reflect.*;
import java.io.*;
import java.net.*;
diff --git a/src/solaris/demo/jni/Poller/PollingServer.java b/src/solaris/demo/jni/Poller/PollingServer.java
index 82f7f4966c3a77ded242f0f105efff5ae55e239f..095f3cc755a2fbbba8daa9e72504a698295e13f4 100644
--- a/src/solaris/demo/jni/Poller/PollingServer.java
+++ b/src/solaris/demo/jni/Poller/PollingServer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.lang.Byte;
diff --git a/src/solaris/demo/jni/Poller/SimpleServer.java b/src/solaris/demo/jni/Poller/SimpleServer.java
index 5b5956593087e4a503718ae3bc07eb42ad0886cc..4658a2fd67bb52c3eef5f52e438830286d57a021 100644
--- a/src/solaris/demo/jni/Poller/SimpleServer.java
+++ b/src/solaris/demo/jni/Poller/SimpleServer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.lang.Byte;
diff --git a/src/solaris/demo/jvmti/hprof/hprof_md.c b/src/solaris/demo/jvmti/hprof/hprof_md.c
index 5a1b67cf65accf02a5e06cfd33dad95bf3219a69..d3b8484a6eafc721dae026fb9bbd6b4c84ab434e 100644
--- a/src/solaris/demo/jvmti/hprof/hprof_md.c
+++ b/src/solaris/demo/jvmti/hprof/hprof_md.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include
#include
#include
diff --git a/src/windows/classes/sun/awt/windows/WToolkit.java b/src/windows/classes/sun/awt/windows/WToolkit.java
index 57f889e72f90cbc488efeb43cdc6e8dadfd4753a..26b234f1a9dc18c0560b5c6a057d156534e2f915 100644
--- a/src/windows/classes/sun/awt/windows/WToolkit.java
+++ b/src/windows/classes/sun/awt/windows/WToolkit.java
@@ -879,6 +879,10 @@ public class WToolkit extends SunToolkit implements Runnable {
}
public synchronized void addPropertyChangeListener(String name, PropertyChangeListener pcl) {
+ if (name == null) {
+ // See JavaDoc for the Toolkit.addPropertyChangeListener() method
+ return;
+ }
if ( WDesktopProperties.isWindowsProperty(name)
|| name.startsWith(awtPrefix)
|| name.startsWith(dndPrefix))
diff --git a/src/windows/demo/jvmti/hprof/hprof_md.c b/src/windows/demo/jvmti/hprof/hprof_md.c
index 073a946d2e46571d1711126879b39a248755a995..2f3ba24fc9a0ca970bc7141dc8b0ee87cda40809 100644
--- a/src/windows/demo/jvmti/hprof/hprof_md.c
+++ b/src/windows/demo/jvmti/hprof/hprof_md.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
// To ensure winsock2.h is used, it has to be included ahead of
// windows.h, which includes winsock.h by default.
#include
diff --git a/test/java/util/Currency/ValidateISO4217.java b/test/java/util/Currency/ValidateISO4217.java
index cfbe28b831200c211c2e27f541ed5046fea3677e..3f5078060d43b6a40f3635cd2b5e1ebed8ec7556 100644
--- a/test/java/util/Currency/ValidateISO4217.java
+++ b/test/java/util/Currency/ValidateISO4217.java
@@ -22,7 +22,7 @@
*/
/*
* @test
- * @bug 4691089 4819436 4942982 5104960 6544471 6627549
+ * @bug 4691089 4819436 4942982 5104960 6544471 6627549 7066203
* @summary Validate ISO 4217 data for Currency class.
*/
@@ -92,7 +92,7 @@ public class ValidateISO4217 {
/* Codes that are obsolete, do not have related country */
static final String otherCodes =
- "ADP-AFA-ATS-AYM-BEF-BGL-BOV-BYB-CLF-CYP-DEM-ESP-FIM-FRF-GRD-GWP-IEP-ITL-LUF-MGF-MTL-MXV-NLG-PTE-RUR-SDD-SIT-SRG-TPE-TRL-VEF-USN-USS-XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XTS-XXX-YUM-ZWN";
+ "ADP-AFA-ATS-AYM-BEF-BGL-BOV-BYB-CLF-CUC-CYP-DEM-EEK-ESP-FIM-FRF-GRD-GWP-IEP-ITL-LUF-MGF-MTL-MXV-NLG-PTE-RUR-SDD-SIT-SKK-SRG-TMM-TPE-TRL-VEF-USN-USS-XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-YUM-ZWD-ZWN-ZWR";
static boolean err = false;
diff --git a/test/java/util/Currency/tablea1.txt b/test/java/util/Currency/tablea1.txt
index 69684358b9c40577f99933a3a9a11137461a8a59..898af09b5384d4e3fbeaf10ef506e4b6becf6bcb 100644
--- a/test/java/util/Currency/tablea1.txt
+++ b/test/java/util/Currency/tablea1.txt
@@ -1,12 +1,12 @@
#
#
-# Based on BSi's ISO4217 data - "TABLE A1.doc" + amendments up until MA140.doc
-# (As of 24 September 2007)
+# Based on BSi's ISO4217 data - "TABLE A1.doc" + amendments up until MA151.doc
+# (As of 7 April 2011)
#
# Version
FILEVERSION=1
-DATAVERSION=140
+DATAVERSION=151
# ISO 4217 currency data
AF AFN 971 2
@@ -33,6 +33,7 @@ BE EUR 978 2
BZ BZD 84 2
BJ XOF 952 0
BM BMD 60 2
+BQ USD 840 2
#BT INR 356 2
BT BTN 64 2
BO BOB 68 2
@@ -68,6 +69,7 @@ CR CRC 188 2
CI XOF 952 0
HR HRK 191 2
CU CUP 192 2
+CW ANG 532 2
CY EUR 978 2
CZ CZK 203 2
DK DKK 208 2
@@ -80,7 +82,7 @@ SV SVC 222 2
#SV USD 840 2
GQ XAF 950 0
ER ERN 232 2
-EE EEK 233 2
+EE EUR 978 2
ET ETB 230 2
FK FKP 238 2
FO DKK 208 2
@@ -218,7 +220,7 @@ CS CSD 891 2
SC SCR 690 2
SL SLL 694 2
SG SGD 702 2
-SK SKK 703 2
+SK EUR 978 2
# MA 131
#SI SIT 705 2
SI EUR 978 2
@@ -230,6 +232,7 @@ LK LKR 144 2
SD SDG 938 2
SR SRD 968 2
SJ NOK 578 2
+SX ANG 532 2
SZ SZL 748 2
SE SEK 752 2
CH CHF 756 2
@@ -249,7 +252,7 @@ TN TND 788 3
# MA 128
#TR TRL 792 0
TR TRY 949 2
-TM TMM 795 2
+TM TMT 934 2
TC USD 840 2
TV AUD 36 2
UG UGX 800 2
@@ -271,7 +274,7 @@ WF XPF 953 0
EH MAD 504 2
YE YER 886 2
ZM ZMK 894 2
-ZW ZWD 716 2
+ZW ZWL 932 2
#XAU XAU 959
#XBA XBA 955
#XBB XBB 956
diff --git a/test/java/util/Locale/LocaleTest.java b/test/java/util/Locale/LocaleTest.java
index 88a01657191dda1c03fc8aa5eb085a2d48078ec9..4d269ee3ab4b40f9beb2babd3cc2638690dd315a 100644
--- a/test/java/util/Locale/LocaleTest.java
+++ b/test/java/util/Locale/LocaleTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2011, 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,7 +25,7 @@
* @bug 4052404 4052440 4084688 4092475 4101316 4105828 4107014 4107953 4110613
* 4118587 4118595 4122371 4126371 4126880 4135316 4135752 4139504 4139940 4143951
* 4147315 4147317 4147552 4335196 4778440 4940539 5010672 6475525 6544471 6627549
- * 6786276
+ * 6786276 7066203
* @summary test Locales
*/
/*
@@ -400,7 +400,7 @@ public class LocaleTest extends LocaleTestFmwk {
}
/**
- * @bug 4106155 4118587
+ * @bug 4106155 4118587 7066203
*/
public void TestGetLangsAndCountries() {
// It didn't seem right to just do an exhaustive test of everything here, so I check
@@ -440,8 +440,8 @@ public class LocaleTest extends LocaleTestFmwk {
String[] spotCheck2 = { "US", "CA", "GB", "FR", "DE", "IT", "JP", "KR", "CN", "TW", "TH" };
- if (test.length != 246)
- errln("Expected getISOCountries to return 246 countries; it returned " + test.length);
+ if (test.length != 249)
+ errln("Expected getISOCountries to return 249 countries; it returned " + test.length);
else {
for (int i = 0; i < spotCheck2.length; i++) {
int j;
diff --git a/test/javax/swing/JPopupMenu/6694823/bug6694823.java b/test/javax/swing/JPopupMenu/6694823/bug6694823.java
index 171113c2e67d39ff3104f868f264a6ad4a4ffaa9..e8d24d04c19fc5d56d5e9efc6d147eec96d45e12 100644
--- a/test/javax/swing/JPopupMenu/6694823/bug6694823.java
+++ b/test/javax/swing/JPopupMenu/6694823/bug6694823.java
@@ -69,7 +69,12 @@ public class bug6694823 {
toolkit.realSync();
System.out.println("Test passed!");
- frame.dispose();
+
+ SwingUtilities.invokeAndWait(new Runnable() {
+ public void run() {
+ frame.dispose();
+ }
+ });
}
private static void createGui() {
@@ -88,30 +93,44 @@ public class bug6694823 {
frame.setSize(200, 200);
}
- private static void showPopup(final boolean shouldBeShifted) {
- SwingUtilities.invokeLater(new Runnable() {
+ private static void showPopup(final boolean shouldBeShifted) throws Exception {
+ SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
// Place frame just above the task bar
Dimension screenSize = toolkit.getScreenSize();
frame.setLocation(screenSize.width / 2,
screenSize.height - frame.getHeight() - screenInsets.bottom);
frame.setVisible(true);
+ }
+ });
+
+ // Ensure frame is visible
+ toolkit.realSync();
+ final Point point = new Point();
+ SwingUtilities.invokeAndWait(new Runnable() {
+ public void run() {
// Place popup over the task bar
- Point frameLoc = frame.getLocationOnScreen();
- int x = 0;
- int y = frame.getHeight()
- - popup.getPreferredSize().height + screenInsets.bottom;
- popup.show(frame, x, y);
+ point.x = 0;
+ point.y = frame.getHeight() - popup.getPreferredSize().height + screenInsets.bottom;
+ popup.show(frame, point.x, point.y);
+ }
+ });
+ // Ensure popup is visible
+ toolkit.realSync();
+
+ SwingUtilities.invokeAndWait(new Runnable() {
+ public void run() {
+ Point frameLoc = frame.getLocationOnScreen();
if (shouldBeShifted) {
if (popup.getLocationOnScreen()
- .equals(new Point(frameLoc.x, frameLoc.y + y))) {
+ .equals(new Point(frameLoc.x, frameLoc.y + point.y))) {
throw new RuntimeException("Popup is not shifted");
}
} else {
if (!popup.getLocationOnScreen()
- .equals(new Point(frameLoc.x, frameLoc.y + y))) {
+ .equals(new Point(frameLoc.x, frameLoc.y + point.y))) {
throw new RuntimeException("Popup is unexpectedly shifted");
}
}
diff --git a/test/javax/swing/text/html/TableView/7030332/bug7030332.html b/test/javax/swing/text/html/TableView/7030332/bug7030332.html
new file mode 100644
index 0000000000000000000000000000000000000000..9a62f793008ad773d98b87664baa7c16b33db8c8
--- /dev/null
+++ b/test/javax/swing/text/html/TableView/7030332/bug7030332.html
@@ -0,0 +1,12 @@
+
+
+
+
+Compare Golden Images with rendered JEditorPane.
+They should looks simalar in each line. Pay attention to:
+
+1. Border width around tables
+2. Border width around cells
+
+
+
diff --git a/test/javax/swing/text/html/TableView/7030332/bug7030332.java b/test/javax/swing/text/html/TableView/7030332/bug7030332.java
new file mode 100644
index 0000000000000000000000000000000000000000..7038edb24652ed9f5c62d2e3deb632e9a7938624
--- /dev/null
+++ b/test/javax/swing/text/html/TableView/7030332/bug7030332.java
@@ -0,0 +1,98 @@
+/*
+ * Copyright (c) 2011, 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 7030332
+ @summary Default borders in tables looks incorrect JEditorPane
+ @author Pavel Porvatov
+ * @run applet/manual=yesno bug7030332.html
+*/
+
+import javax.swing.*;
+import java.awt.*;
+import java.net.URL;
+
+public class bug7030332 extends JApplet {
+ public static final String[] HTML_SAMPLES = new String[]{
+ "",
+ "",
+ "",
+ "",
+ };
+
+ public static void main(String[] args) throws Exception {
+ SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ JFrame frame = new JFrame();
+
+ frame.setContentPane(createContentPane());
+ frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ frame.setSize(600, 400);
+ frame.setLocationRelativeTo(null);
+
+ frame.setVisible(true);
+
+ }
+ });
+ }
+
+ public void init() {
+ try {
+ SwingUtilities.invokeAndWait(new Runnable() {
+ public void run() {
+ setContentPane(createContentPane());
+ }
+ });
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ private static Container createContentPane() {
+ JPanel result = new JPanel(new GridLayout(HTML_SAMPLES.length + 1, 3, 10, 10));
+
+ result.add(new JLabel("Html code"));
+ result.add(new JLabel("Golden image"));
+ result.add(new JLabel("JEditorPane"));
+
+ for (int i = 0; i < HTML_SAMPLES.length; i++) {
+ String htmlSample = HTML_SAMPLES[i];
+
+ JTextArea textArea = new JTextArea(htmlSample);
+
+ textArea.setLineWrap(true);
+
+ result.add(textArea);
+
+ String imageName = "sample" + i + ".png";
+ URL resource = bug7030332.class.getResource(imageName);
+
+ result.add(resource == null ? new JLabel(imageName + " not found") :
+ new JLabel(new ImageIcon(resource), SwingConstants.LEFT));
+
+ result.add(new JEditorPane("text/html", htmlSample));
+ }
+
+ return result;
+ }
+}
diff --git a/test/javax/swing/text/html/TableView/7030332/sample0.png b/test/javax/swing/text/html/TableView/7030332/sample0.png
new file mode 100644
index 0000000000000000000000000000000000000000..e18c9bb2362511e0416bb57c09f9d6f821ed54b3
Binary files /dev/null and b/test/javax/swing/text/html/TableView/7030332/sample0.png differ
diff --git a/test/javax/swing/text/html/TableView/7030332/sample1.png b/test/javax/swing/text/html/TableView/7030332/sample1.png
new file mode 100644
index 0000000000000000000000000000000000000000..e18c9bb2362511e0416bb57c09f9d6f821ed54b3
Binary files /dev/null and b/test/javax/swing/text/html/TableView/7030332/sample1.png differ
diff --git a/test/javax/swing/text/html/TableView/7030332/sample2.png b/test/javax/swing/text/html/TableView/7030332/sample2.png
new file mode 100644
index 0000000000000000000000000000000000000000..e18c9bb2362511e0416bb57c09f9d6f821ed54b3
Binary files /dev/null and b/test/javax/swing/text/html/TableView/7030332/sample2.png differ
diff --git a/test/javax/swing/text/html/TableView/7030332/sample3.png b/test/javax/swing/text/html/TableView/7030332/sample3.png
new file mode 100644
index 0000000000000000000000000000000000000000..7f876058e0d21df9c6f2c1a87ff96c029180f380
Binary files /dev/null and b/test/javax/swing/text/html/TableView/7030332/sample3.png differ
diff --git a/test/javax/swing/text/html/TableView/7030332/sample4.png b/test/javax/swing/text/html/TableView/7030332/sample4.png
new file mode 100644
index 0000000000000000000000000000000000000000..7f876058e0d21df9c6f2c1a87ff96c029180f380
Binary files /dev/null and b/test/javax/swing/text/html/TableView/7030332/sample4.png differ
diff --git a/test/sun/text/resources/LocaleData b/test/sun/text/resources/LocaleData
index a3d7088e35d96958425f98fa9f75a03f88e3f70c..00960071bd0ec3705c9b020379c493a1a0dc0278 100644
--- a/test/sun/text/resources/LocaleData
+++ b/test/sun/text/resources/LocaleData
@@ -6953,3 +6953,56 @@ CurrencyNames/de/mxv=Mexican Unidad de Inversion (UDI)
CurrencyNames/de/svc=El Salvador Colon
CurrencyNames/it/bob=Boliviano
+
+# bug 7066203
+CurrencyNames//CUC=CUC
+CurrencyNames//TMT=TMT
+CurrencyNames//XSU=XSU
+CurrencyNames//XUA=XUA
+CurrencyNames//ZWL=ZWL
+CurrencyNames//ZWR=ZWR
+CurrencyNames//cuc=Cuban Convertible Peso
+CurrencyNames//tmt=Turkmenistani Manat
+CurrencyNames//zwl=Zimbabwean Dollar (2009)
+CurrencyNames//zwr=Zimbabwean Dollar (2008)
+
+CurrencyNames/de/cuc=Kubanischer Peso (konvertibel)
+CurrencyNames/de/tmt=Neuer Turkmenistan-Manat
+CurrencyNames/de/zwl=Simbabwe-Dollar (2009)
+
+CurrencyNames/es/cuc=peso cubano convertible
+CurrencyNames/es/tmt=nuevo manat turcomano
+CurrencyNames/es/zwl=d\u00f3lar zimbabuense
+
+CurrencyNames/es_CU/CUP=CU$
+CurrencyNames/es_CU/CUC=CUC$
+
+CurrencyNames/et_EE/eek=Eesti kroon
+CurrencyNames/et_EE/EUR=\u20ac
+CurrencyNames/et_EE/eur=euro
+
+CurrencyNames/fr/cuc=peso cubain convertible
+CurrencyNames/fr/tmt=nouveau manat turkm\u00e8ne
+
+CurrencyNames/ja/cuc=\u30ad\u30e5\u30fc\u30d0 \u514c\u63db\u30da\u30bd
+CurrencyNames/ja/tmt=\u30c8\u30eb\u30af\u30e1\u30cb\u30b9\u30bf\u30f3 \u65b0\u30de\u30ca\u30c8
+CurrencyNames/ja/zwl=\u30b8\u30f3\u30d0\u30d6\u30a8 \u30c9\u30eb (2009)
+
+CurrencyNames/ko/cuc=\ucfe0\ubc14 \ud0dc\ud658 \ud398\uc18c
+
+CurrencyNames/pt/bob=Boliviano
+CurrencyNames/pt/cuc=Peso cubano convers\u00edvel
+CurrencyNames/pt/tmt=Novo Manat do Turcomenist\u00e3o
+CurrencyNames/pt/zwl=D\u00f3lar do Zimb\u00e1bue (2009)
+CurrencyNames/pt/zwr=D\u00f3lar do Zimb\u00e1bue (2008)
+
+CurrencyNames/sk_SK/skk=Slovensk\u00e1 koruna
+CurrencyNames/sk_SK/EUR=\u20ac
+
+CurrencyNames/zh_CN/cuc=\u53e4\u5df4\u53ef\u5151\u6362\u6bd4\u7d22
+CurrencyNames/zh_CN/tmt=\u571f\u5e93\u66fc\u65af\u5766\u65b0\u9a6c\u7eb3\u7279
+CurrencyNames/zh_CN/zwl=\u6d25\u5df4\u5e03\u97e6\u5143 (2009)
+
+CurrencyNames/zh_TW/cuc=\u53e4\u5df4\u53ef\u8f49\u63db\u62ab\u7d22
+CurrencyNames/zh_TW/tmt=\u571f\u5eab\u66fc\u65b0\u99ac\u7d0d\u7279
+CurrencyNames/zh_TW/zwl=\u8f9b\u5df4\u5a01\u5143 (2009)
diff --git a/test/sun/text/resources/LocaleDataTest.java b/test/sun/text/resources/LocaleDataTest.java
index 65037949c6d0e8bd412d0de6e9b982596b67512c..6ec423627bdb5a4a948f01bc73f409789dce1f95 100644
--- a/test/sun/text/resources/LocaleDataTest.java
+++ b/test/sun/text/resources/LocaleDataTest.java
@@ -33,7 +33,7 @@
* 6379214 6485516 6486607 4225362 4494727 6533691 6531591 6531593 6570259
* 6509039 6609737 6610748 6645271 6507067 6873931 6450945 6645268 6646611
* 6645405 6650730 6910489 6573250 6870908 6585666 6716626 6914413 6916787
- * 6919624 6998391 7019267 7020960 7025837 7020583 7036905
+ * 6919624 6998391 7019267 7020960 7025837 7020583 7036905 7066203
* @summary Verify locale data
*
*/