Merge jdk8-b03
authormfang
Wed, 31 Aug 2011 09:56:44 -0700
changeset 44947989ee9fe673
parent 4493 f10654c857fd
parent 4490 d8fccd6db59b
child 4495 d977bcc79584
Merge
     1.1 --- a/make/common/Defs.gmk	Mon Aug 29 17:09:35 2011 -0700
     1.2 +++ b/make/common/Defs.gmk	Wed Aug 31 09:56:44 2011 -0700
     1.3 @@ -300,6 +300,9 @@
     1.4  #where the demo source can be found
     1.5  DEMOSRCDIR          = $(SHARE_SRC)/demo
     1.6  
     1.7 +#where the sample source can be found
     1.8 +SAMPLESRCDIR          = $(SHARE_SRC)/sample
     1.9 +
    1.10  # An attempt is made to generate unique enough directories for the
    1.11  # generated files to not have name collisisons. Most build units
    1.12  # defines PRODUCT (except Release.gmk), but then they may or may 
     2.1 --- a/make/mkdemo/Makefile	Mon Aug 29 17:09:35 2011 -0700
     2.2 +++ b/make/mkdemo/Makefile	Wed Aug 31 09:56:44 2011 -0700
     2.3 @@ -39,9 +39,14 @@
     2.4  
     2.5  include $(BUILDDIR)/common/Subdirs.gmk
     2.6  
     2.7 +TOPLEVEL_FILES =							\
     2.8 +	$(DEMODIR)/README
     2.9 +
    2.10  all build:: nbproject
    2.11  	$(SUBDIRS-loop)
    2.12  
    2.13 +all build:: $(TOPLEVEL_FILES)
    2.14 +
    2.15  nbproject:
    2.16  	$(RM) -r $(DEMODIR)/nbproject
    2.17  	$(MKDIR) -p $(DEMODIR)
    2.18 @@ -54,8 +59,10 @@
    2.19  	  ( $(CD) $(DEMODIR) && $(TAR) -xf - )
    2.20  endif
    2.21  
    2.22 +$(DEMODIR)/%: $(DEMOSRCDIR)/%
    2.23 +	$(install-file)
    2.24 +
    2.25  clean clobber::
    2.26  	$(SUBDIRS-loop)
    2.27  	$(RM) -r $(DEMODIR)
    2.28  	$(RM) -r $(DEMOCLASSDIR)
    2.29 -
     3.1 --- a/make/mksample/Makefile	Mon Aug 29 17:09:35 2011 -0700
     3.2 +++ b/make/mksample/Makefile	Wed Aug 31 09:56:44 2011 -0700
     3.3 @@ -49,8 +49,16 @@
     3.4  
     3.5  include $(BUILDDIR)/common/Subdirs.gmk
     3.6  
     3.7 +TOPLEVEL_FILES =							\
     3.8 +	$(SAMPLEDIR)/README
     3.9 +
    3.10  all build clean clobber::
    3.11  	$(SUBDIRS-loop)
    3.12  
    3.13 +all build:: $(TOPLEVEL_FILES)
    3.14 +
    3.15 +$(SAMPLEDIR)/%: $(SAMPLESRCDIR)/%
    3.16 +	$(install-file)
    3.17 +
    3.18  clobber clean ::
    3.19  	$(RM) -r $(SAMPLEDIR)
     4.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
     4.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
     4.3 @@ -23,6 +23,15 @@
     4.4   * questions.
     4.5   */
     4.6  
     4.7 +/*
     4.8 + * This source code is provided to illustrate the usage of a given feature
     4.9 + * or technique and has been deliberately simplified. Additional steps
    4.10 + * required for a production-quality application, such as security checks,
    4.11 + * input validation and proper error handling, might not be present in
    4.12 + * this sample code.
    4.13 + */
    4.14 +
    4.15 +
    4.16  package com.sun.tools.example.debug.bdi;
    4.17  
    4.18  import com.sun.jdi.*;
     5.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java	Mon Aug 29 17:09:35 2011 -0700
     5.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java	Wed Aug 31 09:56:44 2011 -0700
     5.3 @@ -23,6 +23,15 @@
     5.4   * questions.
     5.5   */
     5.6  
     5.7 +/*
     5.8 + * This source code is provided to illustrate the usage of a given feature
     5.9 + * or technique and has been deliberately simplified. Additional steps
    5.10 + * required for a production-quality application, such as security checks,
    5.11 + * input validation and proper error handling, might not be present in
    5.12 + * this sample code.
    5.13 + */
    5.14 +
    5.15 +
    5.16  package com.sun.tools.example.debug.bdi;
    5.17  
    5.18  public class AmbiguousMethodException extends Exception
     6.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
     6.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
     6.3 @@ -23,6 +23,15 @@
     6.4   * questions.
     6.5   */
     6.6  
     6.7 +/*
     6.8 + * This source code is provided to illustrate the usage of a given feature
     6.9 + * or technique and has been deliberately simplified. Additional steps
    6.10 + * required for a production-quality application, such as security checks,
    6.11 + * input validation and proper error handling, might not be present in
    6.12 + * this sample code.
    6.13 + */
    6.14 +
    6.15 +
    6.16  package com.sun.tools.example.debug.bdi;
    6.17  
    6.18  public abstract class BreakpointSpec extends EventRequestSpec {
     7.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java	Mon Aug 29 17:09:35 2011 -0700
     7.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java	Wed Aug 31 09:56:44 2011 -0700
     7.3 @@ -23,6 +23,15 @@
     7.4   * questions.
     7.5   */
     7.6  
     7.7 +/*
     7.8 + * This source code is provided to illustrate the usage of a given feature
     7.9 + * or technique and has been deliberately simplified. Additional steps
    7.10 + * required for a production-quality application, such as security checks,
    7.11 + * input validation and proper error handling, might not be present in
    7.12 + * this sample code.
    7.13 + */
    7.14 +
    7.15 +
    7.16  package com.sun.tools.example.debug.bdi;
    7.17  
    7.18  import com.sun.jdi.*;
     8.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java	Mon Aug 29 17:09:35 2011 -0700
     8.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java	Wed Aug 31 09:56:44 2011 -0700
     8.3 @@ -23,6 +23,15 @@
     8.4   * questions.
     8.5   */
     8.6  
     8.7 +/*
     8.8 + * This source code is provided to illustrate the usage of a given feature
     8.9 + * or technique and has been deliberately simplified. Additional steps
    8.10 + * required for a production-quality application, such as security checks,
    8.11 + * input validation and proper error handling, might not be present in
    8.12 + * this sample code.
    8.13 + */
    8.14 +
    8.15 +
    8.16  package com.sun.tools.example.debug.bdi;
    8.17  
    8.18  public class EvaluationException extends Exception {
     9.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java	Mon Aug 29 17:09:35 2011 -0700
     9.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java	Wed Aug 31 09:56:44 2011 -0700
     9.3 @@ -23,6 +23,15 @@
     9.4   * questions.
     9.5   */
     9.6  
     9.7 +/*
     9.8 + * This source code is provided to illustrate the usage of a given feature
     9.9 + * or technique and has been deliberately simplified. Additional steps
    9.10 + * required for a production-quality application, such as security checks,
    9.11 + * input validation and proper error handling, might not be present in
    9.12 + * this sample code.
    9.13 + */
    9.14 +
    9.15 +
    9.16  package com.sun.tools.example.debug.bdi;
    9.17  
    9.18  import com.sun.jdi.*;
    10.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java	Mon Aug 29 17:09:35 2011 -0700
    10.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java	Wed Aug 31 09:56:44 2011 -0700
    10.3 @@ -23,6 +23,15 @@
    10.4   * questions.
    10.5   */
    10.6  
    10.7 +/*
    10.8 + * This source code is provided to illustrate the usage of a given feature
    10.9 + * or technique and has been deliberately simplified. Additional steps
   10.10 + * required for a production-quality application, such as security checks,
   10.11 + * input validation and proper error handling, might not be present in
   10.12 + * this sample code.
   10.13 + */
   10.14 +
   10.15 +
   10.16  package com.sun.tools.example.debug.bdi;
   10.17  
   10.18  import com.sun.jdi.*;
    11.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java	Mon Aug 29 17:09:35 2011 -0700
    11.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java	Wed Aug 31 09:56:44 2011 -0700
    11.3 @@ -23,6 +23,15 @@
    11.4   * questions.
    11.5   */
    11.6  
    11.7 +/*
    11.8 + * This source code is provided to illustrate the usage of a given feature
    11.9 + * or technique and has been deliberately simplified. Additional steps
   11.10 + * required for a production-quality application, such as security checks,
   11.11 + * input validation and proper error handling, might not be present in
   11.12 + * this sample code.
   11.13 + */
   11.14 +
   11.15 +
   11.16  package com.sun.tools.example.debug.bdi;
   11.17  
   11.18  import com.sun.jdi.ReferenceType;
    12.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java	Mon Aug 29 17:09:35 2011 -0700
    12.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java	Wed Aug 31 09:56:44 2011 -0700
    12.3 @@ -23,6 +23,15 @@
    12.4   * questions.
    12.5   */
    12.6  
    12.7 +/*
    12.8 + * This source code is provided to illustrate the usage of a given feature
    12.9 + * or technique and has been deliberately simplified. Additional steps
   12.10 + * required for a production-quality application, such as security checks,
   12.11 + * input validation and proper error handling, might not be present in
   12.12 + * this sample code.
   12.13 + */
   12.14 +
   12.15 +
   12.16  package com.sun.tools.example.debug.bdi;
   12.17  
   12.18  import com.sun.jdi.*;
    13.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java	Mon Aug 29 17:09:35 2011 -0700
    13.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java	Wed Aug 31 09:56:44 2011 -0700
    13.3 @@ -23,6 +23,15 @@
    13.4   * questions.
    13.5   */
    13.6  
    13.7 +/*
    13.8 + * This source code is provided to illustrate the usage of a given feature
    13.9 + * or technique and has been deliberately simplified. Additional steps
   13.10 + * required for a production-quality application, such as security checks,
   13.11 + * input validation and proper error handling, might not be present in
   13.12 + * this sample code.
   13.13 + */
   13.14 +
   13.15 +
   13.16  package com.sun.tools.example.debug.bdi;
   13.17  
   13.18  public class FrameIndexOutOfBoundsException extends IndexOutOfBoundsException {
    14.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java	Mon Aug 29 17:09:35 2011 -0700
    14.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java	Wed Aug 31 09:56:44 2011 -0700
    14.3 @@ -23,6 +23,15 @@
    14.4   * questions.
    14.5   */
    14.6  
    14.7 +/*
    14.8 + * This source code is provided to illustrate the usage of a given feature
    14.9 + * or technique and has been deliberately simplified. Additional steps
   14.10 + * required for a production-quality application, such as security checks,
   14.11 + * input validation and proper error handling, might not be present in
   14.12 + * this sample code.
   14.13 + */
   14.14 +
   14.15 +
   14.16  package com.sun.tools.example.debug.bdi;
   14.17  
   14.18  public interface InputListener {
    15.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java	Mon Aug 29 17:09:35 2011 -0700
    15.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java	Wed Aug 31 09:56:44 2011 -0700
    15.3 @@ -23,6 +23,15 @@
    15.4   * questions.
    15.5   */
    15.6  
    15.7 +/*
    15.8 + * This source code is provided to illustrate the usage of a given feature
    15.9 + * or technique and has been deliberately simplified. Additional steps
   15.10 + * required for a production-quality application, such as security checks,
   15.11 + * input validation and proper error handling, might not be present in
   15.12 + * this sample code.
   15.13 + */
   15.14 +
   15.15 +
   15.16  package com.sun.tools.example.debug.bdi;
   15.17  
   15.18  import com.sun.jdi.*;
    16.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
    16.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
    16.3 @@ -23,6 +23,15 @@
    16.4   * questions.
    16.5   */
    16.6  
    16.7 +/*
    16.8 + * This source code is provided to illustrate the usage of a given feature
    16.9 + * or technique and has been deliberately simplified. Additional steps
   16.10 + * required for a production-quality application, such as security checks,
   16.11 + * input validation and proper error handling, might not be present in
   16.12 + * this sample code.
   16.13 + */
   16.14 +
   16.15 +
   16.16  package com.sun.tools.example.debug.bdi;
   16.17  
   16.18  import com.sun.jdi.*;
    17.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java	Mon Aug 29 17:09:35 2011 -0700
    17.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java	Wed Aug 31 09:56:44 2011 -0700
    17.3 @@ -23,6 +23,15 @@
    17.4   * questions.
    17.5   */
    17.6  
    17.7 +/*
    17.8 + * This source code is provided to illustrate the usage of a given feature
    17.9 + * or technique and has been deliberately simplified. Additional steps
   17.10 + * required for a production-quality application, such as security checks,
   17.11 + * input validation and proper error handling, might not be present in
   17.12 + * this sample code.
   17.13 + */
   17.14 +
   17.15 +
   17.16  package com.sun.tools.example.debug.bdi;
   17.17  
   17.18  public class LineNotFoundException extends Exception
    18.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java	Mon Aug 29 17:09:35 2011 -0700
    18.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java	Wed Aug 31 09:56:44 2011 -0700
    18.3 @@ -23,6 +23,15 @@
    18.4   * questions.
    18.5   */
    18.6  
    18.7 +/*
    18.8 + * This source code is provided to illustrate the usage of a given feature
    18.9 + * or technique and has been deliberately simplified. Additional steps
   18.10 + * required for a production-quality application, such as security checks,
   18.11 + * input validation and proper error handling, might not be present in
   18.12 + * this sample code.
   18.13 + */
   18.14 +
   18.15 +
   18.16  package com.sun.tools.example.debug.bdi;
   18.17  
   18.18  class MalformedMemberNameException extends Exception {
    19.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
    19.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
    19.3 @@ -23,6 +23,15 @@
    19.4   * questions.
    19.5   */
    19.6  
    19.7 +/*
    19.8 + * This source code is provided to illustrate the usage of a given feature
    19.9 + * or technique and has been deliberately simplified. Additional steps
   19.10 + * required for a production-quality application, such as security checks,
   19.11 + * input validation and proper error handling, might not be present in
   19.12 + * this sample code.
   19.13 + */
   19.14 +
   19.15 +
   19.16  package com.sun.tools.example.debug.bdi;
   19.17  
   19.18  import com.sun.jdi.*;
    20.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java	Mon Aug 29 17:09:35 2011 -0700
    20.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java	Wed Aug 31 09:56:44 2011 -0700
    20.3 @@ -23,6 +23,15 @@
    20.4   * questions.
    20.5   */
    20.6  
    20.7 +/*
    20.8 + * This source code is provided to illustrate the usage of a given feature
    20.9 + * or technique and has been deliberately simplified. Additional steps
   20.10 + * required for a production-quality application, such as security checks,
   20.11 + * input validation and proper error handling, might not be present in
   20.12 + * this sample code.
   20.13 + */
   20.14 +
   20.15 +
   20.16  package com.sun.tools.example.debug.bdi;
   20.17  
   20.18  public class MethodNotFoundException extends Exception
    21.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
    21.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
    21.3 @@ -23,6 +23,15 @@
    21.4   * questions.
    21.5   */
    21.6  
    21.7 +/*
    21.8 + * This source code is provided to illustrate the usage of a given feature
    21.9 + * or technique and has been deliberately simplified. Additional steps
   21.10 + * required for a production-quality application, such as security checks,
   21.11 + * input validation and proper error handling, might not be present in
   21.12 + * this sample code.
   21.13 + */
   21.14 +
   21.15 +
   21.16  package com.sun.tools.example.debug.bdi;
   21.17  
   21.18  import com.sun.jdi.*;
    22.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java	Mon Aug 29 17:09:35 2011 -0700
    22.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java	Wed Aug 31 09:56:44 2011 -0700
    22.3 @@ -23,6 +23,15 @@
    22.4   * questions.
    22.5   */
    22.6  
    22.7 +/*
    22.8 + * This source code is provided to illustrate the usage of a given feature
    22.9 + * or technique and has been deliberately simplified. Additional steps
   22.10 + * required for a production-quality application, such as security checks,
   22.11 + * input validation and proper error handling, might not be present in
   22.12 + * this sample code.
   22.13 + */
   22.14 +
   22.15 +
   22.16  package com.sun.tools.example.debug.bdi;
   22.17  
   22.18  public class NoSessionException extends Exception {
    23.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java	Mon Aug 29 17:09:35 2011 -0700
    23.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java	Wed Aug 31 09:56:44 2011 -0700
    23.3 @@ -23,6 +23,15 @@
    23.4   * questions.
    23.5   */
    23.6  
    23.7 +/*
    23.8 + * This source code is provided to illustrate the usage of a given feature
    23.9 + * or technique and has been deliberately simplified. Additional steps
   23.10 + * required for a production-quality application, such as security checks,
   23.11 + * input validation and proper error handling, might not be present in
   23.12 + * this sample code.
   23.13 + */
   23.14 +
   23.15 +
   23.16  package com.sun.tools.example.debug.bdi;
   23.17  
   23.18  public class NoThreadException extends Exception {
    24.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java	Mon Aug 29 17:09:35 2011 -0700
    24.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java	Wed Aug 31 09:56:44 2011 -0700
    24.3 @@ -23,6 +23,15 @@
    24.4   * questions.
    24.5   */
    24.6  
    24.7 +/*
    24.8 + * This source code is provided to illustrate the usage of a given feature
    24.9 + * or technique and has been deliberately simplified. Additional steps
   24.10 + * required for a production-quality application, such as security checks,
   24.11 + * input validation and proper error handling, might not be present in
   24.12 + * this sample code.
   24.13 + */
   24.14 +
   24.15 +
   24.16  package com.sun.tools.example.debug.bdi;
   24.17  
   24.18  public interface OutputListener {
    25.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java	Mon Aug 29 17:09:35 2011 -0700
    25.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java	Wed Aug 31 09:56:44 2011 -0700
    25.3 @@ -23,6 +23,15 @@
    25.4   * questions.
    25.5   */
    25.6  
    25.7 +/*
    25.8 + * This source code is provided to illustrate the usage of a given feature
    25.9 + * or technique and has been deliberately simplified. Additional steps
   25.10 + * required for a production-quality application, such as security checks,
   25.11 + * input validation and proper error handling, might not be present in
   25.12 + * this sample code.
   25.13 + */
   25.14 +
   25.15 +
   25.16  package com.sun.tools.example.debug.bdi;
   25.17  
   25.18  // dummy placeholder for javaCC-generated code.
    26.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java	Mon Aug 29 17:09:35 2011 -0700
    26.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java	Wed Aug 31 09:56:44 2011 -0700
    26.3 @@ -23,6 +23,15 @@
    26.4   * questions.
    26.5   */
    26.6  
    26.7 +/*
    26.8 + * This source code is provided to illustrate the usage of a given feature
    26.9 + * or technique and has been deliberately simplified. Additional steps
   26.10 + * required for a production-quality application, such as security checks,
   26.11 + * input validation and proper error handling, might not be present in
   26.12 + * this sample code.
   26.13 + */
   26.14 +
   26.15 +
   26.16  package com.sun.tools.example.debug.bdi;
   26.17  
   26.18  import com.sun.jdi.*;
    27.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java	Mon Aug 29 17:09:35 2011 -0700
    27.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java	Wed Aug 31 09:56:44 2011 -0700
    27.3 @@ -23,6 +23,15 @@
    27.4   * questions.
    27.5   */
    27.6  
    27.7 +/*
    27.8 + * This source code is provided to illustrate the usage of a given feature
    27.9 + * or technique and has been deliberately simplified. Additional steps
   27.10 + * required for a production-quality application, such as security checks,
   27.11 + * input validation and proper error handling, might not be present in
   27.12 + * this sample code.
   27.13 + */
   27.14 +
   27.15 +
   27.16  package com.sun.tools.example.debug.bdi;
   27.17  
   27.18  import com.sun.jdi.*;
    28.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/Session.java	Mon Aug 29 17:09:35 2011 -0700
    28.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/Session.java	Wed Aug 31 09:56:44 2011 -0700
    28.3 @@ -23,6 +23,15 @@
    28.4   * questions.
    28.5   */
    28.6  
    28.7 +/*
    28.8 + * This source code is provided to illustrate the usage of a given feature
    28.9 + * or technique and has been deliberately simplified. Additional steps
   28.10 + * required for a production-quality application, such as security checks,
   28.11 + * input validation and proper error handling, might not be present in
   28.12 + * this sample code.
   28.13 + */
   28.14 +
   28.15 +
   28.16  package com.sun.tools.example.debug.bdi;
   28.17  
   28.18  import com.sun.jdi.VirtualMachine;
    29.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java	Mon Aug 29 17:09:35 2011 -0700
    29.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java	Wed Aug 31 09:56:44 2011 -0700
    29.3 @@ -23,6 +23,15 @@
    29.4   * questions.
    29.5   */
    29.6  
    29.7 +/*
    29.8 + * This source code is provided to illustrate the usage of a given feature
    29.9 + * or technique and has been deliberately simplified. Additional steps
   29.10 + * required for a production-quality application, such as security checks,
   29.11 + * input validation and proper error handling, might not be present in
   29.12 + * this sample code.
   29.13 + */
   29.14 +
   29.15 +
   29.16  package com.sun.tools.example.debug.bdi;
   29.17  
   29.18  import java.util.EventObject;
    30.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java	Mon Aug 29 17:09:35 2011 -0700
    30.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java	Wed Aug 31 09:56:44 2011 -0700
    30.3 @@ -23,6 +23,15 @@
    30.4   * questions.
    30.5   */
    30.6  
    30.7 +/*
    30.8 + * This source code is provided to illustrate the usage of a given feature
    30.9 + * or technique and has been deliberately simplified. Additional steps
   30.10 + * required for a production-quality application, such as security checks,
   30.11 + * input validation and proper error handling, might not be present in
   30.12 + * this sample code.
   30.13 + */
   30.14 +
   30.15 +
   30.16  package com.sun.tools.example.debug.bdi;
   30.17  
   30.18  import com.sun.jdi.*;
    31.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java	Mon Aug 29 17:09:35 2011 -0700
    31.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java	Wed Aug 31 09:56:44 2011 -0700
    31.3 @@ -23,6 +23,15 @@
    31.4   * questions.
    31.5   */
    31.6  
    31.7 +/*
    31.8 + * This source code is provided to illustrate the usage of a given feature
    31.9 + * or technique and has been deliberately simplified. Additional steps
   31.10 + * required for a production-quality application, such as security checks,
   31.11 + * input validation and proper error handling, might not be present in
   31.12 + * this sample code.
   31.13 + */
   31.14 +
   31.15 +
   31.16  package com.sun.tools.example.debug.bdi;
   31.17  
   31.18  public class SpecErrorEvent extends SpecEvent {
    32.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java	Mon Aug 29 17:09:35 2011 -0700
    32.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java	Wed Aug 31 09:56:44 2011 -0700
    32.3 @@ -23,6 +23,15 @@
    32.4   * questions.
    32.5   */
    32.6  
    32.7 +/*
    32.8 + * This source code is provided to illustrate the usage of a given feature
    32.9 + * or technique and has been deliberately simplified. Additional steps
   32.10 + * required for a production-quality application, such as security checks,
   32.11 + * input validation and proper error handling, might not be present in
   32.12 + * this sample code.
   32.13 + */
   32.14 +
   32.15 +
   32.16  package com.sun.tools.example.debug.bdi;
   32.17  
   32.18  import java.util.EventObject;
    33.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java	Mon Aug 29 17:09:35 2011 -0700
    33.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java	Wed Aug 31 09:56:44 2011 -0700
    33.3 @@ -23,6 +23,15 @@
    33.4   * questions.
    33.5   */
    33.6  
    33.7 +/*
    33.8 + * This source code is provided to illustrate the usage of a given feature
    33.9 + * or technique and has been deliberately simplified. Additional steps
   33.10 + * required for a production-quality application, such as security checks,
   33.11 + * input validation and proper error handling, might not be present in
   33.12 + * this sample code.
   33.13 + */
   33.14 +
   33.15 +
   33.16  package com.sun.tools.example.debug.bdi;
   33.17  
   33.18  import java.util.EventListener;
    34.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java	Mon Aug 29 17:09:35 2011 -0700
    34.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java	Wed Aug 31 09:56:44 2011 -0700
    34.3 @@ -23,6 +23,15 @@
    34.4   * questions.
    34.5   */
    34.6  
    34.7 +/*
    34.8 + * This source code is provided to illustrate the usage of a given feature
    34.9 + * or technique and has been deliberately simplified. Additional steps
   34.10 + * required for a production-quality application, such as security checks,
   34.11 + * input validation and proper error handling, might not be present in
   34.12 + * this sample code.
   34.13 + */
   34.14 +
   34.15 +
   34.16  package com.sun.tools.example.debug.bdi;
   34.17  
   34.18  import com.sun.jdi.ThreadGroupReference;
    35.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java	Mon Aug 29 17:09:35 2011 -0700
    35.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java	Wed Aug 31 09:56:44 2011 -0700
    35.3 @@ -23,6 +23,15 @@
    35.4   * questions.
    35.5   */
    35.6  
    35.7 +/*
    35.8 + * This source code is provided to illustrate the usage of a given feature
    35.9 + * or technique and has been deliberately simplified. Additional steps
   35.10 + * required for a production-quality application, such as security checks,
   35.11 + * input validation and proper error handling, might not be present in
   35.12 + * this sample code.
   35.13 + */
   35.14 +
   35.15 +
   35.16  package com.sun.tools.example.debug.bdi;
   35.17  
   35.18  import com.sun.jdi.*;
    36.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java	Mon Aug 29 17:09:35 2011 -0700
    36.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java	Wed Aug 31 09:56:44 2011 -0700
    36.3 @@ -23,6 +23,15 @@
    36.4   * questions.
    36.5   */
    36.6  
    36.7 +/*
    36.8 + * This source code is provided to illustrate the usage of a given feature
    36.9 + * or technique and has been deliberately simplified. Additional steps
   36.10 + * required for a production-quality application, such as security checks,
   36.11 + * input validation and proper error handling, might not be present in
   36.12 + * this sample code.
   36.13 + */
   36.14 +
   36.15 +
   36.16  package com.sun.tools.example.debug.bdi;
   36.17  
   36.18  import com.sun.jdi.ThreadGroupReference;
    37.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java	Mon Aug 29 17:09:35 2011 -0700
    37.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java	Wed Aug 31 09:56:44 2011 -0700
    37.3 @@ -23,6 +23,15 @@
    37.4   * questions.
    37.5   */
    37.6  
    37.7 +/*
    37.8 + * This source code is provided to illustrate the usage of a given feature
    37.9 + * or technique and has been deliberately simplified. Additional steps
   37.10 + * required for a production-quality application, such as security checks,
   37.11 + * input validation and proper error handling, might not be present in
   37.12 + * this sample code.
   37.13 + */
   37.14 +
   37.15 +
   37.16  package com.sun.tools.example.debug.bdi;   //### does it belong here?
   37.17  
   37.18  import com.sun.jdi.*;
    38.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java	Mon Aug 29 17:09:35 2011 -0700
    38.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java	Wed Aug 31 09:56:44 2011 -0700
    38.3 @@ -23,6 +23,15 @@
    38.4   * questions.
    38.5   */
    38.6  
    38.7 +/*
    38.8 + * This source code is provided to illustrate the usage of a given feature
    38.9 + * or technique and has been deliberately simplified. Additional steps
   38.10 + * required for a production-quality application, such as security checks,
   38.11 + * input validation and proper error handling, might not be present in
   38.12 + * this sample code.
   38.13 + */
   38.14 +
   38.15 +
   38.16  package com.sun.tools.example.debug.bdi;
   38.17  
   38.18  public class VMLaunchFailureException extends Exception {
    39.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java	Mon Aug 29 17:09:35 2011 -0700
    39.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java	Wed Aug 31 09:56:44 2011 -0700
    39.3 @@ -23,6 +23,15 @@
    39.4   * questions.
    39.5   */
    39.6  
    39.7 +/*
    39.8 + * This source code is provided to illustrate the usage of a given feature
    39.9 + * or technique and has been deliberately simplified. Additional steps
   39.10 + * required for a production-quality application, such as security checks,
   39.11 + * input validation and proper error handling, might not be present in
   39.12 + * this sample code.
   39.13 + */
   39.14 +
   39.15 +
   39.16  package com.sun.tools.example.debug.bdi;
   39.17  
   39.18  public class VMNotInterruptedException extends Exception {
    40.1 --- a/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
    40.2 +++ b/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
    40.3 @@ -23,6 +23,15 @@
    40.4   * questions.
    40.5   */
    40.6  
    40.7 +/*
    40.8 + * This source code is provided to illustrate the usage of a given feature
    40.9 + * or technique and has been deliberately simplified. Additional steps
   40.10 + * required for a production-quality application, such as security checks,
   40.11 + * input validation and proper error handling, might not be present in
   40.12 + * this sample code.
   40.13 + */
   40.14 +
   40.15 +
   40.16  package com.sun.tools.example.debug.bdi;
   40.17  
   40.18  public abstract class WatchpointSpec extends EventRequestSpec {
    41.1 --- a/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    41.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    41.3 @@ -23,6 +23,15 @@
    41.4   * questions.
    41.5   */
    41.6  
    41.7 +/*
    41.8 + * This source code is provided to illustrate the usage of a given feature
    41.9 + * or technique and has been deliberately simplified. Additional steps
   41.10 + * required for a production-quality application, such as security checks,
   41.11 + * input validation and proper error handling, might not be present in
   41.12 + * this sample code.
   41.13 + */
   41.14 +
   41.15 +
   41.16  package com.sun.tools.example.debug.event;
   41.17  
   41.18  import com.sun.jdi.*;
    42.1 --- a/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    42.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    42.3 @@ -23,6 +23,15 @@
    42.4   * questions.
    42.5   */
    42.6  
    42.7 +/*
    42.8 + * This source code is provided to illustrate the usage of a given feature
    42.9 + * or technique and has been deliberately simplified. Additional steps
   42.10 + * required for a production-quality application, such as security checks,
   42.11 + * input validation and proper error handling, might not be present in
   42.12 + * this sample code.
   42.13 + */
   42.14 +
   42.15 +
   42.16  package com.sun.tools.example.debug.event;
   42.17  
   42.18  import com.sun.jdi.event.*;
    43.1 --- a/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    43.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    43.3 @@ -23,6 +23,15 @@
    43.4   * questions.
    43.5   */
    43.6  
    43.7 +/*
    43.8 + * This source code is provided to illustrate the usage of a given feature
    43.9 + * or technique and has been deliberately simplified. Additional steps
   43.10 + * required for a production-quality application, such as security checks,
   43.11 + * input validation and proper error handling, might not be present in
   43.12 + * this sample code.
   43.13 + */
   43.14 +
   43.15 +
   43.16  package com.sun.tools.example.debug.event;
   43.17  
   43.18  import com.sun.jdi.*;
    44.1 --- a/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    44.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    44.3 @@ -23,6 +23,15 @@
    44.4   * questions.
    44.5   */
    44.6  
    44.7 +/*
    44.8 + * This source code is provided to illustrate the usage of a given feature
    44.9 + * or technique and has been deliberately simplified. Additional steps
   44.10 + * required for a production-quality application, such as security checks,
   44.11 + * input validation and proper error handling, might not be present in
   44.12 + * this sample code.
   44.13 + */
   44.14 +
   44.15 +
   44.16  package com.sun.tools.example.debug.event;
   44.17  
   44.18  import com.sun.jdi.event.*;
    45.1 --- a/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    45.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    45.3 @@ -23,6 +23,15 @@
    45.4   * questions.
    45.5   */
    45.6  
    45.7 +/*
    45.8 + * This source code is provided to illustrate the usage of a given feature
    45.9 + * or technique and has been deliberately simplified. Additional steps
   45.10 + * required for a production-quality application, such as security checks,
   45.11 + * input validation and proper error handling, might not be present in
   45.12 + * this sample code.
   45.13 + */
   45.14 +
   45.15 +
   45.16  package com.sun.tools.example.debug.event;
   45.17  
   45.18  import com.sun.jdi.*;
    46.1 --- a/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java	Mon Aug 29 17:09:35 2011 -0700
    46.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java	Wed Aug 31 09:56:44 2011 -0700
    46.3 @@ -23,6 +23,15 @@
    46.4   * questions.
    46.5   */
    46.6  
    46.7 +/*
    46.8 + * This source code is provided to illustrate the usage of a given feature
    46.9 + * or technique and has been deliberately simplified. Additional steps
   46.10 + * required for a production-quality application, such as security checks,
   46.11 + * input validation and proper error handling, might not be present in
   46.12 + * this sample code.
   46.13 + */
   46.14 +
   46.15 +
   46.16  package com.sun.tools.example.debug.event;
   46.17  
   46.18  /**
    47.1 --- a/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java	Mon Aug 29 17:09:35 2011 -0700
    47.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java	Wed Aug 31 09:56:44 2011 -0700
    47.3 @@ -23,6 +23,15 @@
    47.4   * questions.
    47.5   */
    47.6  
    47.7 +/*
    47.8 + * This source code is provided to illustrate the usage of a given feature
    47.9 + * or technique and has been deliberately simplified. Additional steps
   47.10 + * required for a production-quality application, such as security checks,
   47.11 + * input validation and proper error handling, might not be present in
   47.12 + * this sample code.
   47.13 + */
   47.14 +
   47.15 +
   47.16  package com.sun.tools.example.debug.event;
   47.17  
   47.18  import java.util.EventListener;
    48.1 --- a/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    48.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    48.3 @@ -23,6 +23,15 @@
    48.4   * questions.
    48.5   */
    48.6  
    48.7 +/*
    48.8 + * This source code is provided to illustrate the usage of a given feature
    48.9 + * or technique and has been deliberately simplified. Additional steps
   48.10 + * required for a production-quality application, such as security checks,
   48.11 + * input validation and proper error handling, might not be present in
   48.12 + * this sample code.
   48.13 + */
   48.14 +
   48.15 +
   48.16  package com.sun.tools.example.debug.event;
   48.17  
   48.18  import com.sun.jdi.*;
    49.1 --- a/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    49.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    49.3 @@ -23,6 +23,15 @@
    49.4   * questions.
    49.5   */
    49.6  
    49.7 +/*
    49.8 + * This source code is provided to illustrate the usage of a given feature
    49.9 + * or technique and has been deliberately simplified. Additional steps
   49.10 + * required for a production-quality application, such as security checks,
   49.11 + * input validation and proper error handling, might not be present in
   49.12 + * this sample code.
   49.13 + */
   49.14 +
   49.15 +
   49.16  package com.sun.tools.example.debug.event;
   49.17  
   49.18  import com.sun.jdi.event.*;
    50.1 --- a/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    50.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    50.3 @@ -23,6 +23,15 @@
    50.4   * questions.
    50.5   */
    50.6  
    50.7 +/*
    50.8 + * This source code is provided to illustrate the usage of a given feature
    50.9 + * or technique and has been deliberately simplified. Additional steps
   50.10 + * required for a production-quality application, such as security checks,
   50.11 + * input validation and proper error handling, might not be present in
   50.12 + * this sample code.
   50.13 + */
   50.14 +
   50.15 +
   50.16  package com.sun.tools.example.debug.event;
   50.17  
   50.18  import com.sun.jdi.*;
    51.1 --- a/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    51.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    51.3 @@ -23,6 +23,15 @@
    51.4   * questions.
    51.5   */
    51.6  
    51.7 +/*
    51.8 + * This source code is provided to illustrate the usage of a given feature
    51.9 + * or technique and has been deliberately simplified. Additional steps
   51.10 + * required for a production-quality application, such as security checks,
   51.11 + * input validation and proper error handling, might not be present in
   51.12 + * this sample code.
   51.13 + */
   51.14 +
   51.15 +
   51.16  package com.sun.tools.example.debug.event;
   51.17  
   51.18  import com.sun.jdi.*;
    52.1 --- a/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    52.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    52.3 @@ -23,6 +23,15 @@
    52.4   * questions.
    52.5   */
    52.6  
    52.7 +/*
    52.8 + * This source code is provided to illustrate the usage of a given feature
    52.9 + * or technique and has been deliberately simplified. Additional steps
   52.10 + * required for a production-quality application, such as security checks,
   52.11 + * input validation and proper error handling, might not be present in
   52.12 + * this sample code.
   52.13 + */
   52.14 +
   52.15 +
   52.16  package com.sun.tools.example.debug.event;
   52.17  
   52.18  import com.sun.jdi.*;
    53.1 --- a/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    53.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    53.3 @@ -23,6 +23,15 @@
    53.4   * questions.
    53.5   */
    53.6  
    53.7 +/*
    53.8 + * This source code is provided to illustrate the usage of a given feature
    53.9 + * or technique and has been deliberately simplified. Additional steps
   53.10 + * required for a production-quality application, such as security checks,
   53.11 + * input validation and proper error handling, might not be present in
   53.12 + * this sample code.
   53.13 + */
   53.14 +
   53.15 +
   53.16  package com.sun.tools.example.debug.event;
   53.17  
   53.18  import com.sun.jdi.event.*;
    54.1 --- a/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    54.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    54.3 @@ -23,6 +23,15 @@
    54.4   * questions.
    54.5   */
    54.6  
    54.7 +/*
    54.8 + * This source code is provided to illustrate the usage of a given feature
    54.9 + * or technique and has been deliberately simplified. Additional steps
   54.10 + * required for a production-quality application, such as security checks,
   54.11 + * input validation and proper error handling, might not be present in
   54.12 + * this sample code.
   54.13 + */
   54.14 +
   54.15 +
   54.16  package com.sun.tools.example.debug.event;
   54.17  
   54.18  import com.sun.jdi.event.*;
    55.1 --- a/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    55.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    55.3 @@ -23,6 +23,15 @@
    55.4   * questions.
    55.5   */
    55.6  
    55.7 +/*
    55.8 + * This source code is provided to illustrate the usage of a given feature
    55.9 + * or technique and has been deliberately simplified. Additional steps
   55.10 + * required for a production-quality application, such as security checks,
   55.11 + * input validation and proper error handling, might not be present in
   55.12 + * this sample code.
   55.13 + */
   55.14 +
   55.15 +
   55.16  package com.sun.tools.example.debug.event;
   55.17  
   55.18  import com.sun.jdi.*;
    56.1 --- a/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java	Mon Aug 29 17:09:35 2011 -0700
    56.2 +++ b/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java	Wed Aug 31 09:56:44 2011 -0700
    56.3 @@ -23,6 +23,15 @@
    56.4   * questions.
    56.5   */
    56.6  
    56.7 +/*
    56.8 + * This source code is provided to illustrate the usage of a given feature
    56.9 + * or technique and has been deliberately simplified. Additional steps
   56.10 + * required for a production-quality application, such as security checks,
   56.11 + * input validation and proper error handling, might not be present in
   56.12 + * this sample code.
   56.13 + */
   56.14 +
   56.15 +
   56.16  package com.sun.tools.example.debug.event;
   56.17  
   56.18  import com.sun.jdi.*;
    57.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java	Mon Aug 29 17:09:35 2011 -0700
    57.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java	Wed Aug 31 09:56:44 2011 -0700
    57.3 @@ -23,6 +23,15 @@
    57.4   * questions.
    57.5   */
    57.6  
    57.7 +/*
    57.8 + * This source code is provided to illustrate the usage of a given feature
    57.9 + * or technique and has been deliberately simplified. Additional steps
   57.10 + * required for a production-quality application, such as security checks,
   57.11 + * input validation and proper error handling, might not be present in
   57.12 + * this sample code.
   57.13 + */
   57.14 +
   57.15 +
   57.16  /* Generated By:JavaCC: Do not edit this line. ASCII_UCodeESC_CharStream.java Version 0.7pre6 */
   57.17  
   57.18  package com.sun.tools.example.debug.expr;
    58.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java	Mon Aug 29 17:09:35 2011 -0700
    58.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java	Wed Aug 31 09:56:44 2011 -0700
    58.3 @@ -23,6 +23,15 @@
    58.4   * questions.
    58.5   */
    58.6  
    58.7 +/*
    58.8 + * This source code is provided to illustrate the usage of a given feature
    58.9 + * or technique and has been deliberately simplified. Additional steps
   58.10 + * required for a production-quality application, such as security checks,
   58.11 + * input validation and proper error handling, might not be present in
   58.12 + * this sample code.
   58.13 + */
   58.14 +
   58.15 +
   58.16  /* Generated By:JavaCC: Do not edit this line. ExpressionParser.java */
   58.17  package com.sun.tools.example.debug.expr;
   58.18  
    59.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java	Mon Aug 29 17:09:35 2011 -0700
    59.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java	Wed Aug 31 09:56:44 2011 -0700
    59.3 @@ -23,6 +23,15 @@
    59.4   * questions.
    59.5   */
    59.6  
    59.7 +/*
    59.8 + * This source code is provided to illustrate the usage of a given feature
    59.9 + * or technique and has been deliberately simplified. Additional steps
   59.10 + * required for a production-quality application, such as security checks,
   59.11 + * input validation and proper error handling, might not be present in
   59.12 + * this sample code.
   59.13 + */
   59.14 +
   59.15 +
   59.16  /* Generated By:JavaCC: Do not edit this line. ExpressionParserConstants.java */
   59.17  package com.sun.tools.example.debug.expr;
   59.18  
    60.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java	Mon Aug 29 17:09:35 2011 -0700
    60.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java	Wed Aug 31 09:56:44 2011 -0700
    60.3 @@ -23,6 +23,15 @@
    60.4   * questions.
    60.5   */
    60.6  
    60.7 +/*
    60.8 + * This source code is provided to illustrate the usage of a given feature
    60.9 + * or technique and has been deliberately simplified. Additional steps
   60.10 + * required for a production-quality application, such as security checks,
   60.11 + * input validation and proper error handling, might not be present in
   60.12 + * this sample code.
   60.13 + */
   60.14 +
   60.15 +
   60.16  /* Generated By:JavaCC: Do not edit this line. ExpressionParserTokenManager.java */
   60.17  package com.sun.tools.example.debug.expr;
   60.18  
    61.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/LValue.java	Mon Aug 29 17:09:35 2011 -0700
    61.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/LValue.java	Wed Aug 31 09:56:44 2011 -0700
    61.3 @@ -23,6 +23,15 @@
    61.4   * questions.
    61.5   */
    61.6  
    61.7 +/*
    61.8 + * This source code is provided to illustrate the usage of a given feature
    61.9 + * or technique and has been deliberately simplified. Additional steps
   61.10 + * required for a production-quality application, such as security checks,
   61.11 + * input validation and proper error handling, might not be present in
   61.12 + * this sample code.
   61.13 + */
   61.14 +
   61.15 +
   61.16  package com.sun.tools.example.debug.expr;
   61.17  
   61.18  import com.sun.jdi.*;
    62.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java	Mon Aug 29 17:09:35 2011 -0700
    62.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java	Wed Aug 31 09:56:44 2011 -0700
    62.3 @@ -23,6 +23,15 @@
    62.4   * questions.
    62.5   */
    62.6  
    62.7 +/*
    62.8 + * This source code is provided to illustrate the usage of a given feature
    62.9 + * or technique and has been deliberately simplified. Additional steps
   62.10 + * required for a production-quality application, such as security checks,
   62.11 + * input validation and proper error handling, might not be present in
   62.12 + * this sample code.
   62.13 + */
   62.14 +
   62.15 +
   62.16  /* Generated By:JavaCC: Do not edit this line. ParseException.java Version 0.7pre6 */
   62.17  package com.sun.tools.example.debug.expr;
   62.18  
    63.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/Token.java	Mon Aug 29 17:09:35 2011 -0700
    63.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/Token.java	Wed Aug 31 09:56:44 2011 -0700
    63.3 @@ -23,6 +23,15 @@
    63.4   * questions.
    63.5   */
    63.6  
    63.7 +/*
    63.8 + * This source code is provided to illustrate the usage of a given feature
    63.9 + * or technique and has been deliberately simplified. Additional steps
   63.10 + * required for a production-quality application, such as security checks,
   63.11 + * input validation and proper error handling, might not be present in
   63.12 + * this sample code.
   63.13 + */
   63.14 +
   63.15 +
   63.16  /* Generated By:JavaCC: Do not edit this line. Token.java Version 0.7pre3 */
   63.17  package com.sun.tools.example.debug.expr;
   63.18  
    64.1 --- a/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java	Mon Aug 29 17:09:35 2011 -0700
    64.2 +++ b/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java	Wed Aug 31 09:56:44 2011 -0700
    64.3 @@ -23,6 +23,15 @@
    64.4   * questions.
    64.5   */
    64.6  
    64.7 +/*
    64.8 + * This source code is provided to illustrate the usage of a given feature
    64.9 + * or technique and has been deliberately simplified. Additional steps
   64.10 + * required for a production-quality application, such as security checks,
   64.11 + * input validation and proper error handling, might not be present in
   64.12 + * this sample code.
   64.13 + */
   64.14 +
   64.15 +
   64.16  /* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 0.7pre2 */
   64.17  package com.sun.tools.example.debug.expr;
   64.18  
    65.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java	Mon Aug 29 17:09:35 2011 -0700
    65.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java	Wed Aug 31 09:56:44 2011 -0700
    65.3 @@ -23,6 +23,15 @@
    65.4   * questions.
    65.5   */
    65.6  
    65.7 +/*
    65.8 + * This source code is provided to illustrate the usage of a given feature
    65.9 + * or technique and has been deliberately simplified. Additional steps
   65.10 + * required for a production-quality application, such as security checks,
   65.11 + * input validation and proper error handling, might not be present in
   65.12 + * this sample code.
   65.13 + */
   65.14 +
   65.15 +
   65.16  package com.sun.tools.example.debug.gui;
   65.17  
   65.18  import javax.swing.*;
    66.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java	Mon Aug 29 17:09:35 2011 -0700
    66.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java	Wed Aug 31 09:56:44 2011 -0700
    66.3 @@ -23,6 +23,15 @@
    66.4   * questions.
    66.5   */
    66.6  
    66.7 +/*
    66.8 + * This source code is provided to illustrate the usage of a given feature
    66.9 + * or technique and has been deliberately simplified. Additional steps
   66.10 + * required for a production-quality application, such as security checks,
   66.11 + * input validation and proper error handling, might not be present in
   66.12 + * this sample code.
   66.13 + */
   66.14 +
   66.15 +
   66.16  package com.sun.tools.example.debug.gui;
   66.17  
   66.18  public class ClassManager {
    67.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java	Mon Aug 29 17:09:35 2011 -0700
    67.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java	Wed Aug 31 09:56:44 2011 -0700
    67.3 @@ -23,6 +23,15 @@
    67.4   * questions.
    67.5   */
    67.6  
    67.7 +/*
    67.8 + * This source code is provided to illustrate the usage of a given feature
    67.9 + * or technique and has been deliberately simplified. Additional steps
   67.10 + * required for a production-quality application, such as security checks,
   67.11 + * input validation and proper error handling, might not be present in
   67.12 + * this sample code.
   67.13 + */
   67.14 +
   67.15 +
   67.16  package com.sun.tools.example.debug.gui;
   67.17  
   67.18  import java.util.*;
    68.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java	Mon Aug 29 17:09:35 2011 -0700
    68.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java	Wed Aug 31 09:56:44 2011 -0700
    68.3 @@ -23,6 +23,15 @@
    68.4   * questions.
    68.5   */
    68.6  
    68.7 +/*
    68.8 + * This source code is provided to illustrate the usage of a given feature
    68.9 + * or technique and has been deliberately simplified. Additional steps
   68.10 + * required for a production-quality application, such as security checks,
   68.11 + * input validation and proper error handling, might not be present in
   68.12 + * this sample code.
   68.13 + */
   68.14 +
   68.15 +
   68.16  package com.sun.tools.example.debug.gui;
   68.17  
   68.18  import java.io.*;
    69.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java	Mon Aug 29 17:09:35 2011 -0700
    69.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java	Wed Aug 31 09:56:44 2011 -0700
    69.3 @@ -23,6 +23,15 @@
    69.4   * questions.
    69.5   */
    69.6  
    69.7 +/*
    69.8 + * This source code is provided to illustrate the usage of a given feature
    69.9 + * or technique and has been deliberately simplified. Additional steps
   69.10 + * required for a production-quality application, such as security checks,
   69.11 + * input validation and proper error handling, might not be present in
   69.12 + * this sample code.
   69.13 + */
   69.14 +
   69.15 +
   69.16  package com.sun.tools.example.debug.gui;
   69.17  
   69.18  import java.io.*;
    70.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java	Mon Aug 29 17:09:35 2011 -0700
    70.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java	Wed Aug 31 09:56:44 2011 -0700
    70.3 @@ -23,6 +23,15 @@
    70.4   * questions.
    70.5   */
    70.6  
    70.7 +/*
    70.8 + * This source code is provided to illustrate the usage of a given feature
    70.9 + * or technique and has been deliberately simplified. Additional steps
   70.10 + * required for a production-quality application, such as security checks,
   70.11 + * input validation and proper error handling, might not be present in
   70.12 + * this sample code.
   70.13 + */
   70.14 +
   70.15 +
   70.16  package com.sun.tools.example.debug.gui;
   70.17  
   70.18  public interface ContextListener {
    71.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java	Mon Aug 29 17:09:35 2011 -0700
    71.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java	Wed Aug 31 09:56:44 2011 -0700
    71.3 @@ -23,6 +23,15 @@
    71.4   * questions.
    71.5   */
    71.6  
    71.7 +/*
    71.8 + * This source code is provided to illustrate the usage of a given feature
    71.9 + * or technique and has been deliberately simplified. Additional steps
   71.10 + * required for a production-quality application, such as security checks,
   71.11 + * input validation and proper error handling, might not be present in
   71.12 + * this sample code.
   71.13 + */
   71.14 +
   71.15 +
   71.16  package com.sun.tools.example.debug.gui;
   71.17  
   71.18  import java.io.*;
    72.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java	Mon Aug 29 17:09:35 2011 -0700
    72.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java	Wed Aug 31 09:56:44 2011 -0700
    72.3 @@ -23,6 +23,15 @@
    72.4   * questions.
    72.5   */
    72.6  
    72.7 +/*
    72.8 + * This source code is provided to illustrate the usage of a given feature
    72.9 + * or technique and has been deliberately simplified. Additional steps
   72.10 + * required for a production-quality application, such as security checks,
   72.11 + * input validation and proper error handling, might not be present in
   72.12 + * this sample code.
   72.13 + */
   72.14 +
   72.15 +
   72.16  package com.sun.tools.example.debug.gui;
   72.17  
   72.18  import com.sun.jdi.*;
    73.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/Environment.java	Mon Aug 29 17:09:35 2011 -0700
    73.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/Environment.java	Wed Aug 31 09:56:44 2011 -0700
    73.3 @@ -23,6 +23,15 @@
    73.4   * questions.
    73.5   */
    73.6  
    73.7 +/*
    73.8 + * This source code is provided to illustrate the usage of a given feature
    73.9 + * or technique and has been deliberately simplified. Additional steps
   73.10 + * required for a production-quality application, such as security checks,
   73.11 + * input validation and proper error handling, might not be present in
   73.12 + * this sample code.
   73.13 + */
   73.14 +
   73.15 +
   73.16  package com.sun.tools.example.debug.gui;
   73.17  
   73.18  import java.io.*;
    74.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/GUI.java	Mon Aug 29 17:09:35 2011 -0700
    74.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/GUI.java	Wed Aug 31 09:56:44 2011 -0700
    74.3 @@ -23,6 +23,15 @@
    74.4   * questions.
    74.5   */
    74.6  
    74.7 +/*
    74.8 + * This source code is provided to illustrate the usage of a given feature
    74.9 + * or technique and has been deliberately simplified. Additional steps
   74.10 + * required for a production-quality application, such as security checks,
   74.11 + * input validation and proper error handling, might not be present in
   74.12 + * this sample code.
   74.13 + */
   74.14 +
   74.15 +
   74.16  package com.sun.tools.example.debug.gui;
   74.17  
   74.18  import java.io.*;
    75.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/Icons.java	Mon Aug 29 17:09:35 2011 -0700
    75.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/Icons.java	Wed Aug 31 09:56:44 2011 -0700
    75.3 @@ -23,6 +23,15 @@
    75.4   * questions.
    75.5   */
    75.6  
    75.7 +/*
    75.8 + * This source code is provided to illustrate the usage of a given feature
    75.9 + * or technique and has been deliberately simplified. Additional steps
   75.10 + * required for a production-quality application, such as security checks,
   75.11 + * input validation and proper error handling, might not be present in
   75.12 + * this sample code.
   75.13 + */
   75.14 +
   75.15 +
   75.16  package com.sun.tools.example.debug.gui;
   75.17  
   75.18  import javax.swing.Icon;
    76.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java	Mon Aug 29 17:09:35 2011 -0700
    76.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java	Wed Aug 31 09:56:44 2011 -0700
    76.3 @@ -23,6 +23,15 @@
    76.4   * questions.
    76.5   */
    76.6  
    76.7 +/*
    76.8 + * This source code is provided to illustrate the usage of a given feature
    76.9 + * or technique and has been deliberately simplified. Additional steps
   76.10 + * required for a production-quality application, such as security checks,
   76.11 + * input validation and proper error handling, might not be present in
   76.12 + * this sample code.
   76.13 + */
   76.14 +
   76.15 +
   76.16  package com.sun.tools.example.debug.gui;
   76.17  
   76.18  import java.io.File;
    77.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java	Mon Aug 29 17:09:35 2011 -0700
    77.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java	Wed Aug 31 09:56:44 2011 -0700
    77.3 @@ -23,6 +23,15 @@
    77.4   * questions.
    77.5   */
    77.6  
    77.7 +/*
    77.8 + * This source code is provided to illustrate the usage of a given feature
    77.9 + * or technique and has been deliberately simplified. Additional steps
   77.10 + * required for a production-quality application, such as security checks,
   77.11 + * input validation and proper error handling, might not be present in
   77.12 + * this sample code.
   77.13 + */
   77.14 +
   77.15 +
   77.16  package com.sun.tools.example.debug.gui;
   77.17  
   77.18  import javax.swing.*;
    78.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java	Mon Aug 29 17:09:35 2011 -0700
    78.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java	Wed Aug 31 09:56:44 2011 -0700
    78.3 @@ -23,6 +23,15 @@
    78.4   * questions.
    78.5   */
    78.6  
    78.7 +/*
    78.8 + * This source code is provided to illustrate the usage of a given feature
    78.9 + * or technique and has been deliberately simplified. Additional steps
   78.10 + * required for a production-quality application, such as security checks,
   78.11 + * input validation and proper error handling, might not be present in
   78.12 + * this sample code.
   78.13 + */
   78.14 +
   78.15 +
   78.16  package com.sun.tools.example.debug.gui;
   78.17  
   78.18  import javax.swing.*;
    79.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java	Mon Aug 29 17:09:35 2011 -0700
    79.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java	Wed Aug 31 09:56:44 2011 -0700
    79.3 @@ -23,6 +23,15 @@
    79.4   * questions.
    79.5   */
    79.6  
    79.7 +/*
    79.8 + * This source code is provided to illustrate the usage of a given feature
    79.9 + * or technique and has been deliberately simplified. Additional steps
   79.10 + * required for a production-quality application, such as security checks,
   79.11 + * input validation and proper error handling, might not be present in
   79.12 + * this sample code.
   79.13 + */
   79.14 +
   79.15 +
   79.16  package com.sun.tools.example.debug.gui;
   79.17  
   79.18  import java.util.List;
    80.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java	Mon Aug 29 17:09:35 2011 -0700
    80.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java	Wed Aug 31 09:56:44 2011 -0700
    80.3 @@ -23,6 +23,15 @@
    80.4   * questions.
    80.5   */
    80.6  
    80.7 +/*
    80.8 + * This source code is provided to illustrate the usage of a given feature
    80.9 + * or technique and has been deliberately simplified. Additional steps
   80.10 + * required for a production-quality application, such as security checks,
   80.11 + * input validation and proper error handling, might not be present in
   80.12 + * this sample code.
   80.13 + */
   80.14 +
   80.15 +
   80.16  package com.sun.tools.example.debug.gui;
   80.17  
   80.18  import java.util.*;
    81.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java	Mon Aug 29 17:09:35 2011 -0700
    81.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java	Wed Aug 31 09:56:44 2011 -0700
    81.3 @@ -23,6 +23,15 @@
    81.4   * questions.
    81.5   */
    81.6  
    81.7 +/*
    81.8 + * This source code is provided to illustrate the usage of a given feature
    81.9 + * or technique and has been deliberately simplified. Additional steps
   81.10 + * required for a production-quality application, such as security checks,
   81.11 + * input validation and proper error handling, might not be present in
   81.12 + * this sample code.
   81.13 + */
   81.14 +
   81.15 +
   81.16  package com.sun.tools.example.debug.gui;
   81.17  
   81.18  import javax.swing.*;
    82.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java	Mon Aug 29 17:09:35 2011 -0700
    82.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java	Wed Aug 31 09:56:44 2011 -0700
    82.3 @@ -23,6 +23,15 @@
    82.4   * questions.
    82.5   */
    82.6  
    82.7 +/*
    82.8 + * This source code is provided to illustrate the usage of a given feature
    82.9 + * or technique and has been deliberately simplified. Additional steps
   82.10 + * required for a production-quality application, such as security checks,
   82.11 + * input validation and proper error handling, might not be present in
   82.12 + * this sample code.
   82.13 + */
   82.14 +
   82.15 +
   82.16  package com.sun.tools.example.debug.gui;
   82.17  
   82.18  import java.io.*;
    83.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java	Mon Aug 29 17:09:35 2011 -0700
    83.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java	Wed Aug 31 09:56:44 2011 -0700
    83.3 @@ -23,6 +23,15 @@
    83.4   * questions.
    83.5   */
    83.6  
    83.7 +/*
    83.8 + * This source code is provided to illustrate the usage of a given feature
    83.9 + * or technique and has been deliberately simplified. Additional steps
   83.10 + * required for a production-quality application, such as security checks,
   83.11 + * input validation and proper error handling, might not be present in
   83.12 + * this sample code.
   83.13 + */
   83.14 +
   83.15 +
   83.16  package com.sun.tools.example.debug.gui;
   83.17  
   83.18  import java.io.*;
    84.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java	Mon Aug 29 17:09:35 2011 -0700
    84.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java	Wed Aug 31 09:56:44 2011 -0700
    84.3 @@ -23,6 +23,15 @@
    84.4   * questions.
    84.5   */
    84.6  
    84.7 +/*
    84.8 + * This source code is provided to illustrate the usage of a given feature
    84.9 + * or technique and has been deliberately simplified. Additional steps
   84.10 + * required for a production-quality application, such as security checks,
   84.11 + * input validation and proper error handling, might not be present in
   84.12 + * this sample code.
   84.13 + */
   84.14 +
   84.15 +
   84.16  package com.sun.tools.example.debug.gui;
   84.17  
   84.18  import javax.swing.tree.*;
    85.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java	Mon Aug 29 17:09:35 2011 -0700
    85.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java	Wed Aug 31 09:56:44 2011 -0700
    85.3 @@ -23,6 +23,15 @@
    85.4   * questions.
    85.5   */
    85.6  
    85.7 +/*
    85.8 + * This source code is provided to illustrate the usage of a given feature
    85.9 + * or technique and has been deliberately simplified. Additional steps
   85.10 + * required for a production-quality application, such as security checks,
   85.11 + * input validation and proper error handling, might not be present in
   85.12 + * this sample code.
   85.13 + */
   85.14 +
   85.15 +
   85.16  package com.sun.tools.example.debug.gui;
   85.17  
   85.18  public interface SourceListener {
    86.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java	Mon Aug 29 17:09:35 2011 -0700
    86.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java	Wed Aug 31 09:56:44 2011 -0700
    86.3 @@ -23,6 +23,15 @@
    86.4   * questions.
    86.5   */
    86.6  
    86.7 +/*
    86.8 + * This source code is provided to illustrate the usage of a given feature
    86.9 + * or technique and has been deliberately simplified. Additional steps
   86.10 + * required for a production-quality application, such as security checks,
   86.11 + * input validation and proper error handling, might not be present in
   86.12 + * this sample code.
   86.13 + */
   86.14 +
   86.15 +
   86.16  package com.sun.tools.example.debug.gui;
   86.17  
   86.18  import java.io.*;
    87.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java	Mon Aug 29 17:09:35 2011 -0700
    87.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java	Wed Aug 31 09:56:44 2011 -0700
    87.3 @@ -23,6 +23,15 @@
    87.4   * questions.
    87.5   */
    87.6  
    87.7 +/*
    87.8 + * This source code is provided to illustrate the usage of a given feature
    87.9 + * or technique and has been deliberately simplified. Additional steps
   87.10 + * required for a production-quality application, such as security checks,
   87.11 + * input validation and proper error handling, might not be present in
   87.12 + * this sample code.
   87.13 + */
   87.14 +
   87.15 +
   87.16  package com.sun.tools.example.debug.gui;
   87.17  
   87.18  import java.io.*;
    88.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java	Mon Aug 29 17:09:35 2011 -0700
    88.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java	Wed Aug 31 09:56:44 2011 -0700
    88.3 @@ -23,6 +23,15 @@
    88.4   * questions.
    88.5   */
    88.6  
    88.7 +/*
    88.8 + * This source code is provided to illustrate the usage of a given feature
    88.9 + * or technique and has been deliberately simplified. Additional steps
   88.10 + * required for a production-quality application, such as security checks,
   88.11 + * input validation and proper error handling, might not be present in
   88.12 + * this sample code.
   88.13 + */
   88.14 +
   88.15 +
   88.16  package com.sun.tools.example.debug.gui;
   88.17  
   88.18  import java.io.*;
    89.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java	Mon Aug 29 17:09:35 2011 -0700
    89.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java	Wed Aug 31 09:56:44 2011 -0700
    89.3 @@ -23,6 +23,15 @@
    89.4   * questions.
    89.5   */
    89.6  
    89.7 +/*
    89.8 + * This source code is provided to illustrate the usage of a given feature
    89.9 + * or technique and has been deliberately simplified. Additional steps
   89.10 + * required for a production-quality application, such as security checks,
   89.11 + * input validation and proper error handling, might not be present in
   89.12 + * this sample code.
   89.13 + */
   89.14 +
   89.15 +
   89.16  package com.sun.tools.example.debug.gui;
   89.17  
   89.18  import java.io.*;
    90.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java	Mon Aug 29 17:09:35 2011 -0700
    90.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java	Wed Aug 31 09:56:44 2011 -0700
    90.3 @@ -23,6 +23,15 @@
    90.4   * questions.
    90.5   */
    90.6  
    90.7 +/*
    90.8 + * This source code is provided to illustrate the usage of a given feature
    90.9 + * or technique and has been deliberately simplified. Additional steps
   90.10 + * required for a production-quality application, such as security checks,
   90.11 + * input validation and proper error handling, might not be present in
   90.12 + * this sample code.
   90.13 + */
   90.14 +
   90.15 +
   90.16  package com.sun.tools.example.debug.gui;
   90.17  
   90.18  import java.util.EventObject;
    91.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java	Mon Aug 29 17:09:35 2011 -0700
    91.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java	Wed Aug 31 09:56:44 2011 -0700
    91.3 @@ -23,6 +23,15 @@
    91.4   * questions.
    91.5   */
    91.6  
    91.7 +/*
    91.8 + * This source code is provided to illustrate the usage of a given feature
    91.9 + * or technique and has been deliberately simplified. Additional steps
   91.10 + * required for a production-quality application, such as security checks,
   91.11 + * input validation and proper error handling, might not be present in
   91.12 + * this sample code.
   91.13 + */
   91.14 +
   91.15 +
   91.16  package com.sun.tools.example.debug.gui;
   91.17  
   91.18  import javax.swing.*;
    92.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java	Mon Aug 29 17:09:35 2011 -0700
    92.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java	Wed Aug 31 09:56:44 2011 -0700
    92.3 @@ -23,6 +23,15 @@
    92.4   * questions.
    92.5   */
    92.6  
    92.7 +/*
    92.8 + * This source code is provided to illustrate the usage of a given feature
    92.9 + * or technique and has been deliberately simplified. Additional steps
   92.10 + * required for a production-quality application, such as security checks,
   92.11 + * input validation and proper error handling, might not be present in
   92.12 + * this sample code.
   92.13 + */
   92.14 +
   92.15 +
   92.16  package com.sun.tools.example.debug.gui;
   92.17  
   92.18  import java.util.*;
    93.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java	Mon Aug 29 17:09:35 2011 -0700
    93.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java	Wed Aug 31 09:56:44 2011 -0700
    93.3 @@ -23,6 +23,15 @@
    93.4   * questions.
    93.5   */
    93.6  
    93.7 +/*
    93.8 + * This source code is provided to illustrate the usage of a given feature
    93.9 + * or technique and has been deliberately simplified. Additional steps
   93.10 + * required for a production-quality application, such as security checks,
   93.11 + * input validation and proper error handling, might not be present in
   93.12 + * this sample code.
   93.13 + */
   93.14 +
   93.15 +
   93.16  package com.sun.tools.example.debug.gui;
   93.17  
   93.18  import java.awt.*;
    94.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java	Mon Aug 29 17:09:35 2011 -0700
    94.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java	Wed Aug 31 09:56:44 2011 -0700
    94.3 @@ -23,6 +23,15 @@
    94.4   * questions.
    94.5   */
    94.6  
    94.7 +/*
    94.8 + * This source code is provided to illustrate the usage of a given feature
    94.9 + * or technique and has been deliberately simplified. Additional steps
   94.10 + * required for a production-quality application, such as security checks,
   94.11 + * input validation and proper error handling, might not be present in
   94.12 + * this sample code.
   94.13 + */
   94.14 +
   94.15 +
   94.16  package com.sun.tools.example.debug.gui;
   94.17  
   94.18  import com.sun.tools.example.debug.bdi.OutputListener;
    95.1 --- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java	Mon Aug 29 17:09:35 2011 -0700
    95.2 +++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java	Wed Aug 31 09:56:44 2011 -0700
    95.3 @@ -23,6 +23,15 @@
    95.4   * questions.
    95.5   */
    95.6  
    95.7 +/*
    95.8 + * This source code is provided to illustrate the usage of a given feature
    95.9 + * or technique and has been deliberately simplified. Additional steps
   95.10 + * required for a production-quality application, such as security checks,
   95.11 + * input validation and proper error handling, might not be present in
   95.12 + * this sample code.
   95.13 + */
   95.14 +
   95.15 +
   95.16  package com.sun.tools.example.debug.gui;
   95.17  
   95.18  import java.io.*;
    96.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
    96.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
    96.3 @@ -23,6 +23,15 @@
    96.4   * questions.
    96.5   */
    96.6  
    96.7 +/*
    96.8 + * This source code is provided to illustrate the usage of a given feature
    96.9 + * or technique and has been deliberately simplified. Additional steps
   96.10 + * required for a production-quality application, such as security checks,
   96.11 + * input validation and proper error handling, might not be present in
   96.12 + * this sample code.
   96.13 + */
   96.14 +
   96.15 +
   96.16  package com.sun.tools.example.debug.tty;
   96.17  
   96.18  import com.sun.jdi.*;
    97.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java	Mon Aug 29 17:09:35 2011 -0700
    97.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java	Wed Aug 31 09:56:44 2011 -0700
    97.3 @@ -23,6 +23,15 @@
    97.4   * questions.
    97.5   */
    97.6  
    97.7 +/*
    97.8 + * This source code is provided to illustrate the usage of a given feature
    97.9 + * or technique and has been deliberately simplified. Additional steps
   97.10 + * required for a production-quality application, such as security checks,
   97.11 + * input validation and proper error handling, might not be present in
   97.12 + * this sample code.
   97.13 + */
   97.14 +
   97.15 +
   97.16  package com.sun.tools.example.debug.tty;
   97.17  
   97.18  public class AmbiguousMethodException extends Exception
    98.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
    98.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
    98.3 @@ -23,6 +23,15 @@
    98.4   * questions.
    98.5   */
    98.6  
    98.7 +/*
    98.8 + * This source code is provided to illustrate the usage of a given feature
    98.9 + * or technique and has been deliberately simplified. Additional steps
   98.10 + * required for a production-quality application, such as security checks,
   98.11 + * input validation and proper error handling, might not be present in
   98.12 + * this sample code.
   98.13 + */
   98.14 +
   98.15 +
   98.16  package com.sun.tools.example.debug.tty;
   98.17  
   98.18  import com.sun.jdi.*;
    99.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/Commands.java	Mon Aug 29 17:09:35 2011 -0700
    99.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/Commands.java	Wed Aug 31 09:56:44 2011 -0700
    99.3 @@ -23,6 +23,15 @@
    99.4   * questions.
    99.5   */
    99.6  
    99.7 +/*
    99.8 + * This source code is provided to illustrate the usage of a given feature
    99.9 + * or technique and has been deliberately simplified. Additional steps
   99.10 + * required for a production-quality application, such as security checks,
   99.11 + * input validation and proper error handling, might not be present in
   99.12 + * this sample code.
   99.13 + */
   99.14 +
   99.15 +
   99.16  package com.sun.tools.example.debug.tty;
   99.17  
   99.18  import com.sun.jdi.*;
   100.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/Env.java	Mon Aug 29 17:09:35 2011 -0700
   100.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/Env.java	Wed Aug 31 09:56:44 2011 -0700
   100.3 @@ -23,6 +23,15 @@
   100.4   * questions.
   100.5   */
   100.6  
   100.7 +/*
   100.8 + * This source code is provided to illustrate the usage of a given feature
   100.9 + * or technique and has been deliberately simplified. Additional steps
  100.10 + * required for a production-quality application, such as security checks,
  100.11 + * input validation and proper error handling, might not be present in
  100.12 + * this sample code.
  100.13 + */
  100.14 +
  100.15 +
  100.16  package com.sun.tools.example.debug.tty;
  100.17  
  100.18  import com.sun.jdi.*;
   101.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java	Mon Aug 29 17:09:35 2011 -0700
   101.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java	Wed Aug 31 09:56:44 2011 -0700
   101.3 @@ -23,6 +23,15 @@
   101.4   * questions.
   101.5   */
   101.6  
   101.7 +/*
   101.8 + * This source code is provided to illustrate the usage of a given feature
   101.9 + * or technique and has been deliberately simplified. Additional steps
  101.10 + * required for a production-quality application, such as security checks,
  101.11 + * input validation and proper error handling, might not be present in
  101.12 + * this sample code.
  101.13 + */
  101.14 +
  101.15 +
  101.16  package com.sun.tools.example.debug.tty;
  101.17  
  101.18  import com.sun.jdi.*;
   102.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java	Mon Aug 29 17:09:35 2011 -0700
   102.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java	Wed Aug 31 09:56:44 2011 -0700
   102.3 @@ -23,6 +23,15 @@
   102.4   * questions.
   102.5   */
   102.6  
   102.7 +/*
   102.8 + * This source code is provided to illustrate the usage of a given feature
   102.9 + * or technique and has been deliberately simplified. Additional steps
  102.10 + * required for a production-quality application, such as security checks,
  102.11 + * input validation and proper error handling, might not be present in
  102.12 + * this sample code.
  102.13 + */
  102.14 +
  102.15 +
  102.16  package com.sun.tools.example.debug.tty;
  102.17  
  102.18  import com.sun.jdi.event.*;
   103.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java	Mon Aug 29 17:09:35 2011 -0700
   103.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java	Wed Aug 31 09:56:44 2011 -0700
   103.3 @@ -23,6 +23,15 @@
   103.4   * questions.
   103.5   */
   103.6  
   103.7 +/*
   103.8 + * This source code is provided to illustrate the usage of a given feature
   103.9 + * or technique and has been deliberately simplified. Additional steps
  103.10 + * required for a production-quality application, such as security checks,
  103.11 + * input validation and proper error handling, might not be present in
  103.12 + * this sample code.
  103.13 + */
  103.14 +
  103.15 +
  103.16  package com.sun.tools.example.debug.tty;
  103.17  
  103.18  import com.sun.jdi.*;
   104.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java	Mon Aug 29 17:09:35 2011 -0700
   104.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java	Wed Aug 31 09:56:44 2011 -0700
   104.3 @@ -23,6 +23,15 @@
   104.4   * questions.
   104.5   */
   104.6  
   104.7 +/*
   104.8 + * This source code is provided to illustrate the usage of a given feature
   104.9 + * or technique and has been deliberately simplified. Additional steps
  104.10 + * required for a production-quality application, such as security checks,
  104.11 + * input validation and proper error handling, might not be present in
  104.12 + * this sample code.
  104.13 + */
  104.14 +
  104.15 +
  104.16  package com.sun.tools.example.debug.tty;
  104.17  
  104.18  import com.sun.jdi.request.EventRequest;
   105.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java	Mon Aug 29 17:09:35 2011 -0700
   105.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java	Wed Aug 31 09:56:44 2011 -0700
   105.3 @@ -23,6 +23,15 @@
   105.4   * questions.
   105.5   */
   105.6  
   105.7 +/*
   105.8 + * This source code is provided to illustrate the usage of a given feature
   105.9 + * or technique and has been deliberately simplified. Additional steps
  105.10 + * required for a production-quality application, such as security checks,
  105.11 + * input validation and proper error handling, might not be present in
  105.12 + * this sample code.
  105.13 + */
  105.14 +
  105.15 +
  105.16  package com.sun.tools.example.debug.tty;
  105.17  
  105.18  import com.sun.jdi.ReferenceType;
   106.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java	Mon Aug 29 17:09:35 2011 -0700
   106.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java	Wed Aug 31 09:56:44 2011 -0700
   106.3 @@ -23,6 +23,15 @@
   106.4   * questions.
   106.5   */
   106.6  
   106.7 +/*
   106.8 + * This source code is provided to illustrate the usage of a given feature
   106.9 + * or technique and has been deliberately simplified. Additional steps
  106.10 + * required for a production-quality application, such as security checks,
  106.11 + * input validation and proper error handling, might not be present in
  106.12 + * this sample code.
  106.13 + */
  106.14 +
  106.15 +
  106.16  package com.sun.tools.example.debug.tty;
  106.17  
  106.18  public class LineNotFoundException extends Exception
   107.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java	Mon Aug 29 17:09:35 2011 -0700
   107.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java	Wed Aug 31 09:56:44 2011 -0700
   107.3 @@ -23,6 +23,15 @@
   107.4   * questions.
   107.5   */
   107.6  
   107.7 +/*
   107.8 + * This source code is provided to illustrate the usage of a given feature
   107.9 + * or technique and has been deliberately simplified. Additional steps
  107.10 + * required for a production-quality application, such as security checks,
  107.11 + * input validation and proper error handling, might not be present in
  107.12 + * this sample code.
  107.13 + */
  107.14 +
  107.15 +
  107.16  package com.sun.tools.example.debug.tty;
  107.17  
  107.18  class MalformedMemberNameException extends Exception {
   108.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java	Mon Aug 29 17:09:35 2011 -0700
   108.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java	Wed Aug 31 09:56:44 2011 -0700
   108.3 @@ -22,6 +22,15 @@
   108.4   * or visit www.oracle.com if you need additional information or have any
   108.5   * questions.
   108.6   */
   108.7 +
   108.8 +/*
   108.9 + * This source code is provided to illustrate the usage of a given feature
  108.10 + * or technique and has been deliberately simplified. Additional steps
  108.11 + * required for a production-quality application, such as security checks,
  108.12 + * input validation and proper error handling, might not be present in
  108.13 + * this sample code.
  108.14 + */
  108.15 +
  108.16  package com.sun.tools.example.debug.tty;
  108.17  
  108.18  import java.util.*;
   109.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
   109.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
   109.3 @@ -23,6 +23,15 @@
   109.4   * questions.
   109.5   */
   109.6  
   109.7 +/*
   109.8 + * This source code is provided to illustrate the usage of a given feature
   109.9 + * or technique and has been deliberately simplified. Additional steps
  109.10 + * required for a production-quality application, such as security checks,
  109.11 + * input validation and proper error handling, might not be present in
  109.12 + * this sample code.
  109.13 + */
  109.14 +
  109.15 +
  109.16  package com.sun.tools.example.debug.tty;
  109.17  
  109.18  import com.sun.jdi.*;
   110.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java	Mon Aug 29 17:09:35 2011 -0700
   110.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java	Wed Aug 31 09:56:44 2011 -0700
   110.3 @@ -23,6 +23,15 @@
   110.4   * questions.
   110.5   */
   110.6  
   110.7 +/*
   110.8 + * This source code is provided to illustrate the usage of a given feature
   110.9 + * or technique and has been deliberately simplified. Additional steps
  110.10 + * required for a production-quality application, such as security checks,
  110.11 + * input validation and proper error handling, might not be present in
  110.12 + * this sample code.
  110.13 + */
  110.14 +
  110.15 +
  110.16  package com.sun.tools.example.debug.tty;
  110.17  
  110.18  import com.sun.jdi.*;
   111.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java	Mon Aug 29 17:09:35 2011 -0700
   111.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java	Wed Aug 31 09:56:44 2011 -0700
   111.3 @@ -23,6 +23,15 @@
   111.4   * questions.
   111.5   */
   111.6  
   111.7 +/*
   111.8 + * This source code is provided to illustrate the usage of a given feature
   111.9 + * or technique and has been deliberately simplified. Additional steps
  111.10 + * required for a production-quality application, such as security checks,
  111.11 + * input validation and proper error handling, might not be present in
  111.12 + * this sample code.
  111.13 + */
  111.14 +
  111.15 +
  111.16  package com.sun.tools.example.debug.tty;
  111.17  
  111.18  import com.sun.jdi.*;
   112.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java	Mon Aug 29 17:09:35 2011 -0700
   112.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java	Wed Aug 31 09:56:44 2011 -0700
   112.3 @@ -23,6 +23,15 @@
   112.4   * questions.
   112.5   */
   112.6  
   112.7 +/*
   112.8 + * This source code is provided to illustrate the usage of a given feature
   112.9 + * or technique and has been deliberately simplified. Additional steps
  112.10 + * required for a production-quality application, such as security checks,
  112.11 + * input validation and proper error handling, might not be present in
  112.12 + * this sample code.
  112.13 + */
  112.14 +
  112.15 +
  112.16  package com.sun.tools.example.debug.tty;
  112.17  
  112.18  import com.sun.jdi.Location;
   113.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/TTY.java	Mon Aug 29 17:09:35 2011 -0700
   113.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/TTY.java	Wed Aug 31 09:56:44 2011 -0700
   113.3 @@ -23,6 +23,15 @@
   113.4   * questions.
   113.5   */
   113.6  
   113.7 +/*
   113.8 + * This source code is provided to illustrate the usage of a given feature
   113.9 + * or technique and has been deliberately simplified. Additional steps
  113.10 + * required for a production-quality application, such as security checks,
  113.11 + * input validation and proper error handling, might not be present in
  113.12 + * this sample code.
  113.13 + */
  113.14 +
  113.15 +
  113.16  package com.sun.tools.example.debug.tty;
  113.17  
  113.18  import com.sun.jdi.*;
   114.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java	Mon Aug 29 17:09:35 2011 -0700
   114.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java	Wed Aug 31 09:56:44 2011 -0700
   114.3 @@ -23,6 +23,15 @@
   114.4   * questions.
   114.5   */
   114.6  
   114.7 +/*
   114.8 + * This source code is provided to illustrate the usage of a given feature
   114.9 + * or technique and has been deliberately simplified. Additional steps
  114.10 + * required for a production-quality application, such as security checks,
  114.11 + * input validation and proper error handling, might not be present in
  114.12 + * this sample code.
  114.13 + */
  114.14 +
  114.15 +
  114.16  package com.sun.tools.example.debug.tty;
  114.17  
  114.18  /**
   115.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java	Mon Aug 29 17:09:35 2011 -0700
   115.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java	Wed Aug 31 09:56:44 2011 -0700
   115.3 @@ -23,6 +23,15 @@
   115.4   * questions.
   115.5   */
   115.6  
   115.7 +/*
   115.8 + * This source code is provided to illustrate the usage of a given feature
   115.9 + * or technique and has been deliberately simplified. Additional steps
  115.10 + * required for a production-quality application, such as security checks,
  115.11 + * input validation and proper error handling, might not be present in
  115.12 + * this sample code.
  115.13 + */
  115.14 +
  115.15 +
  115.16  package com.sun.tools.example.debug.tty;
  115.17  
  115.18  /**
   116.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java	Mon Aug 29 17:09:35 2011 -0700
   116.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java	Wed Aug 31 09:56:44 2011 -0700
   116.3 @@ -23,6 +23,15 @@
   116.4   * questions.
   116.5   */
   116.6  
   116.7 +/*
   116.8 + * This source code is provided to illustrate the usage of a given feature
   116.9 + * or technique and has been deliberately simplified. Additional steps
  116.10 + * required for a production-quality application, such as security checks,
  116.11 + * input validation and proper error handling, might not be present in
  116.12 + * this sample code.
  116.13 + */
  116.14 +
  116.15 +
  116.16  package com.sun.tools.example.debug.tty;
  116.17  
  116.18  /**
   117.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java	Mon Aug 29 17:09:35 2011 -0700
   117.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java	Wed Aug 31 09:56:44 2011 -0700
   117.3 @@ -23,6 +23,15 @@
   117.4   * questions.
   117.5   */
   117.6  
   117.7 +/*
   117.8 + * This source code is provided to illustrate the usage of a given feature
   117.9 + * or technique and has been deliberately simplified. Additional steps
  117.10 + * required for a production-quality application, such as security checks,
  117.11 + * input validation and proper error handling, might not be present in
  117.12 + * this sample code.
  117.13 + */
  117.14 +
  117.15 +
  117.16  package com.sun.tools.example.debug.tty;
  117.17  
  117.18  import com.sun.jdi.ThreadGroupReference;
   118.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java	Mon Aug 29 17:09:35 2011 -0700
   118.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java	Wed Aug 31 09:56:44 2011 -0700
   118.3 @@ -23,6 +23,15 @@
   118.4   * questions.
   118.5   */
   118.6  
   118.7 +/*
   118.8 + * This source code is provided to illustrate the usage of a given feature
   118.9 + * or technique and has been deliberately simplified. Additional steps
  118.10 + * required for a production-quality application, such as security checks,
  118.11 + * input validation and proper error handling, might not be present in
  118.12 + * this sample code.
  118.13 + */
  118.14 +
  118.15 +
  118.16  package com.sun.tools.example.debug.tty;
  118.17  
  118.18  import com.sun.jdi.ThreadReference;
   119.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java	Mon Aug 29 17:09:35 2011 -0700
   119.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java	Wed Aug 31 09:56:44 2011 -0700
   119.3 @@ -23,6 +23,15 @@
   119.4   * questions.
   119.5   */
   119.6  
   119.7 +/*
   119.8 + * This source code is provided to illustrate the usage of a given feature
   119.9 + * or technique and has been deliberately simplified. Additional steps
  119.10 + * required for a production-quality application, such as security checks,
  119.11 + * input validation and proper error handling, might not be present in
  119.12 + * this sample code.
  119.13 + */
  119.14 +
  119.15 +
  119.16  package com.sun.tools.example.debug.tty;
  119.17  
  119.18  import com.sun.jdi.ThreadGroupReference;
   120.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java	Mon Aug 29 17:09:35 2011 -0700
   120.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java	Wed Aug 31 09:56:44 2011 -0700
   120.3 @@ -23,6 +23,15 @@
   120.4   * questions.
   120.5   */
   120.6  
   120.7 +/*
   120.8 + * This source code is provided to illustrate the usage of a given feature
   120.9 + * or technique and has been deliberately simplified. Additional steps
  120.10 + * required for a production-quality application, such as security checks,
  120.11 + * input validation and proper error handling, might not be present in
  120.12 + * this sample code.
  120.13 + */
  120.14 +
  120.15 +
  120.16  package com.sun.tools.example.debug.tty;
  120.17  
  120.18  import com.sun.jdi.*;
   121.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java	Mon Aug 29 17:09:35 2011 -0700
   121.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java	Wed Aug 31 09:56:44 2011 -0700
   121.3 @@ -23,6 +23,15 @@
   121.4   * questions.
   121.5   */
   121.6  
   121.7 +/*
   121.8 + * This source code is provided to illustrate the usage of a given feature
   121.9 + * or technique and has been deliberately simplified. Additional steps
  121.10 + * required for a production-quality application, such as security checks,
  121.11 + * input validation and proper error handling, might not be present in
  121.12 + * this sample code.
  121.13 + */
  121.14 +
  121.15 +
  121.16  package com.sun.tools.example.debug.tty;
  121.17  
  121.18  public class VMNotConnectedException extends RuntimeException {
   122.1 --- a/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java	Mon Aug 29 17:09:35 2011 -0700
   122.2 +++ b/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java	Wed Aug 31 09:56:44 2011 -0700
   122.3 @@ -23,6 +23,15 @@
   122.4   * questions.
   122.5   */
   122.6  
   122.7 +/*
   122.8 + * This source code is provided to illustrate the usage of a given feature
   122.9 + * or technique and has been deliberately simplified. Additional steps
  122.10 + * required for a production-quality application, such as security checks,
  122.11 + * input validation and proper error handling, might not be present in
  122.12 + * this sample code.
  122.13 + */
  122.14 +
  122.15 +
  122.16  package com.sun.tools.example.debug.tty;
  122.17  
  122.18  abstract class WatchpointSpec extends EventRequestSpec {
   123.1 --- a/src/share/classes/com/sun/tools/example/trace/EventThread.java	Mon Aug 29 17:09:35 2011 -0700
   123.2 +++ b/src/share/classes/com/sun/tools/example/trace/EventThread.java	Wed Aug 31 09:56:44 2011 -0700
   123.3 @@ -23,6 +23,15 @@
   123.4   * questions.
   123.5   */
   123.6  
   123.7 +/*
   123.8 + * This source code is provided to illustrate the usage of a given feature
   123.9 + * or technique and has been deliberately simplified. Additional steps
  123.10 + * required for a production-quality application, such as security checks,
  123.11 + * input validation and proper error handling, might not be present in
  123.12 + * this sample code.
  123.13 + */
  123.14 +
  123.15 +
  123.16  package com.sun.tools.example.trace;
  123.17  
  123.18  import com.sun.jdi.*;
   124.1 --- a/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java	Mon Aug 29 17:09:35 2011 -0700
   124.2 +++ b/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java	Wed Aug 31 09:56:44 2011 -0700
   124.3 @@ -23,6 +23,15 @@
   124.4   * questions.
   124.5   */
   124.6  
   124.7 +/*
   124.8 + * This source code is provided to illustrate the usage of a given feature
   124.9 + * or technique and has been deliberately simplified. Additional steps
  124.10 + * required for a production-quality application, such as security checks,
  124.11 + * input validation and proper error handling, might not be present in
  124.12 + * this sample code.
  124.13 + */
  124.14 +
  124.15 +
  124.16  package com.sun.tools.example.trace;
  124.17  
  124.18  import java.io.*;
   125.1 --- a/src/share/classes/com/sun/tools/example/trace/Trace.java	Mon Aug 29 17:09:35 2011 -0700
   125.2 +++ b/src/share/classes/com/sun/tools/example/trace/Trace.java	Wed Aug 31 09:56:44 2011 -0700
   125.3 @@ -23,6 +23,15 @@
   125.4   * questions.
   125.5   */
   125.6  
   125.7 +/*
   125.8 + * This source code is provided to illustrate the usage of a given feature
   125.9 + * or technique and has been deliberately simplified. Additional steps
  125.10 + * required for a production-quality application, such as security checks,
  125.11 + * input validation and proper error handling, might not be present in
  125.12 + * this sample code.
  125.13 + */
  125.14 +
  125.15 +
  125.16  package com.sun.tools.example.trace;
  125.17  
  125.18  import com.sun.jdi.VirtualMachine;
   126.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   126.2 +++ b/src/share/demo/README	Wed Aug 31 09:56:44 2011 -0700
   126.3 @@ -0,0 +1,6 @@
   126.4 +The source code provided with samples and demos for the JDK is meant
   126.5 +to illustrate the usage of a given feature or technique and has been
   126.6 +deliberately simplified. Additional steps required for a
   126.7 +production-quality application, such as security checks, input
   126.8 +validation, and proper error handling, might not be present in the
   126.9 +sample code.
   127.1 --- a/src/share/demo/applets/ArcTest/ArcTest.java	Mon Aug 29 17:09:35 2011 -0700
   127.2 +++ b/src/share/demo/applets/ArcTest/ArcTest.java	Wed Aug 31 09:56:44 2011 -0700
   127.3 @@ -29,6 +29,15 @@
   127.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   127.5   */
   127.6  
   127.7 +/*
   127.8 + * This source code is provided to illustrate the usage of a given feature
   127.9 + * or technique and has been deliberately simplified. Additional steps
  127.10 + * required for a production-quality application, such as security checks,
  127.11 + * input validation and proper error handling, might not be present in
  127.12 + * this sample code.
  127.13 + */
  127.14 +
  127.15 +
  127.16  
  127.17  import java.awt.*;
  127.18  import java.awt.event.*;
   128.1 --- a/src/share/demo/applets/BarChart/BarChart.java	Mon Aug 29 17:09:35 2011 -0700
   128.2 +++ b/src/share/demo/applets/BarChart/BarChart.java	Wed Aug 31 09:56:44 2011 -0700
   128.3 @@ -29,6 +29,15 @@
   128.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   128.5   */
   128.6  
   128.7 +/*
   128.8 + * This source code is provided to illustrate the usage of a given feature
   128.9 + * or technique and has been deliberately simplified. Additional steps
  128.10 + * required for a production-quality application, such as security checks,
  128.11 + * input validation and proper error handling, might not be present in
  128.12 + * this sample code.
  128.13 + */
  128.14 +
  128.15 +
  128.16  
  128.17  import java.awt.*;
  128.18  
   129.1 --- a/src/share/demo/applets/Blink/Blink.java	Mon Aug 29 17:09:35 2011 -0700
   129.2 +++ b/src/share/demo/applets/Blink/Blink.java	Wed Aug 31 09:56:44 2011 -0700
   129.3 @@ -29,6 +29,15 @@
   129.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   129.5   */
   129.6  
   129.7 +/*
   129.8 + * This source code is provided to illustrate the usage of a given feature
   129.9 + * or technique and has been deliberately simplified. Additional steps
  129.10 + * required for a production-quality application, such as security checks,
  129.11 + * input validation and proper error handling, might not be present in
  129.12 + * this sample code.
  129.13 + */
  129.14 +
  129.15 +
  129.16  
  129.17  /**
  129.18   * I love blinking things.
   130.1 --- a/src/share/demo/applets/CardTest/CardTest.java	Mon Aug 29 17:09:35 2011 -0700
   130.2 +++ b/src/share/demo/applets/CardTest/CardTest.java	Wed Aug 31 09:56:44 2011 -0700
   130.3 @@ -29,6 +29,15 @@
   130.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   130.5   */
   130.6  
   130.7 +/*
   130.8 + * This source code is provided to illustrate the usage of a given feature
   130.9 + * or technique and has been deliberately simplified. Additional steps
  130.10 + * required for a production-quality application, such as security checks,
  130.11 + * input validation and proper error handling, might not be present in
  130.12 + * this sample code.
  130.13 + */
  130.14 +
  130.15 +
  130.16  
  130.17  import java.applet.Applet;
  130.18  import java.awt.BorderLayout;
   131.1 --- a/src/share/demo/applets/Clock/Clock.java	Mon Aug 29 17:09:35 2011 -0700
   131.2 +++ b/src/share/demo/applets/Clock/Clock.java	Wed Aug 31 09:56:44 2011 -0700
   131.3 @@ -29,6 +29,15 @@
   131.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   131.5   */
   131.6  
   131.7 +/*
   131.8 + * This source code is provided to illustrate the usage of a given feature
   131.9 + * or technique and has been deliberately simplified. Additional steps
  131.10 + * required for a production-quality application, such as security checks,
  131.11 + * input validation and proper error handling, might not be present in
  131.12 + * this sample code.
  131.13 + */
  131.14 +
  131.15 +
  131.16  
  131.17  import java.applet.Applet;
  131.18  import java.awt.Color;
   132.1 --- a/src/share/demo/applets/DitherTest/DitherTest.java	Mon Aug 29 17:09:35 2011 -0700
   132.2 +++ b/src/share/demo/applets/DitherTest/DitherTest.java	Wed Aug 31 09:56:44 2011 -0700
   132.3 @@ -29,6 +29,15 @@
   132.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   132.5   */
   132.6  
   132.7 +/*
   132.8 + * This source code is provided to illustrate the usage of a given feature
   132.9 + * or technique and has been deliberately simplified. Additional steps
  132.10 + * required for a production-quality application, such as security checks,
  132.11 + * input validation and proper error handling, might not be present in
  132.12 + * this sample code.
  132.13 + */
  132.14 +
  132.15 +
  132.16  
  132.17  import java.applet.Applet;
  132.18  import java.awt.AWTEvent;
   133.1 --- a/src/share/demo/applets/DrawTest/DrawTest.java	Mon Aug 29 17:09:35 2011 -0700
   133.2 +++ b/src/share/demo/applets/DrawTest/DrawTest.java	Wed Aug 31 09:56:44 2011 -0700
   133.3 @@ -29,6 +29,15 @@
   133.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   133.5   */
   133.6  
   133.7 +/*
   133.8 + * This source code is provided to illustrate the usage of a given feature
   133.9 + * or technique and has been deliberately simplified. Additional steps
  133.10 + * required for a production-quality application, such as security checks,
  133.11 + * input validation and proper error handling, might not be present in
  133.12 + * this sample code.
  133.13 + */
  133.14 +
  133.15 +
  133.16  
  133.17  import java.applet.Applet;
  133.18  import java.awt.BorderLayout;
   134.1 --- a/src/share/demo/applets/Fractal/CLSFractal.java	Mon Aug 29 17:09:35 2011 -0700
   134.2 +++ b/src/share/demo/applets/Fractal/CLSFractal.java	Wed Aug 31 09:56:44 2011 -0700
   134.3 @@ -29,6 +29,15 @@
   134.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   134.5   */
   134.6  
   134.7 +/*
   134.8 + * This source code is provided to illustrate the usage of a given feature
   134.9 + * or technique and has been deliberately simplified. Additional steps
  134.10 + * required for a production-quality application, such as security checks,
  134.11 + * input validation and proper error handling, might not be present in
  134.12 + * this sample code.
  134.13 + */
  134.14 +
  134.15 +
  134.16  
  134.17  import java.awt.Graphics;
  134.18  import java.util.Stack;
   135.1 --- a/src/share/demo/applets/GraphicsTest/AppletFrame.java	Mon Aug 29 17:09:35 2011 -0700
   135.2 +++ b/src/share/demo/applets/GraphicsTest/AppletFrame.java	Wed Aug 31 09:56:44 2011 -0700
   135.3 @@ -29,6 +29,15 @@
   135.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   135.5   */
   135.6  
   135.7 +/*
   135.8 + * This source code is provided to illustrate the usage of a given feature
   135.9 + * or technique and has been deliberately simplified. Additional steps
  135.10 + * required for a production-quality application, such as security checks,
  135.11 + * input validation and proper error handling, might not be present in
  135.12 + * this sample code.
  135.13 + */
  135.14 +
  135.15 +
  135.16  
  135.17  import java.awt.Frame;
  135.18  import java.awt.Event;
   136.1 --- a/src/share/demo/applets/GraphicsTest/GraphicsTest.java	Mon Aug 29 17:09:35 2011 -0700
   136.2 +++ b/src/share/demo/applets/GraphicsTest/GraphicsTest.java	Wed Aug 31 09:56:44 2011 -0700
   136.3 @@ -29,6 +29,15 @@
   136.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   136.5   */
   136.6  
   136.7 +/*
   136.8 + * This source code is provided to illustrate the usage of a given feature
   136.9 + * or technique and has been deliberately simplified. Additional steps
  136.10 + * required for a production-quality application, such as security checks,
  136.11 + * input validation and proper error handling, might not be present in
  136.12 + * this sample code.
  136.13 + */
  136.14 +
  136.15 +
  136.16  
  136.17  import java.awt.*;
  136.18  import java.util.*;
   137.1 --- a/src/share/demo/applets/MoleculeViewer/Matrix3D.java	Mon Aug 29 17:09:35 2011 -0700
   137.2 +++ b/src/share/demo/applets/MoleculeViewer/Matrix3D.java	Wed Aug 31 09:56:44 2011 -0700
   137.3 @@ -29,6 +29,15 @@
   137.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   137.5   */
   137.6  
   137.7 +/*
   137.8 + * This source code is provided to illustrate the usage of a given feature
   137.9 + * or technique and has been deliberately simplified. Additional steps
  137.10 + * required for a production-quality application, such as security checks,
  137.11 + * input validation and proper error handling, might not be present in
  137.12 + * this sample code.
  137.13 + */
  137.14 +
  137.15 +
  137.16  
  137.17  /** A fairly conventional 3D matrix object that can transform sets of
  137.18  3D points and perform a variety of manipulations on the transform */
   138.1 --- a/src/share/demo/applets/MoleculeViewer/XYZApp.java	Mon Aug 29 17:09:35 2011 -0700
   138.2 +++ b/src/share/demo/applets/MoleculeViewer/XYZApp.java	Wed Aug 31 09:56:44 2011 -0700
   138.3 @@ -29,6 +29,15 @@
   138.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   138.5   */
   138.6  
   138.7 +/*
   138.8 + * This source code is provided to illustrate the usage of a given feature
   138.9 + * or technique and has been deliberately simplified. Additional steps
  138.10 + * required for a production-quality application, such as security checks,
  138.11 + * input validation and proper error handling, might not be present in
  138.12 + * this sample code.
  138.13 + */
  138.14 +
  138.15 +
  138.16  
  138.17  import java.applet.Applet;
  138.18  import java.awt.Image;
   139.1 --- a/src/share/demo/applets/NervousText/NervousText.java	Mon Aug 29 17:09:35 2011 -0700
   139.2 +++ b/src/share/demo/applets/NervousText/NervousText.java	Wed Aug 31 09:56:44 2011 -0700
   139.3 @@ -29,6 +29,15 @@
   139.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   139.5   */
   139.6  
   139.7 +/*
   139.8 + * This source code is provided to illustrate the usage of a given feature
   139.9 + * or technique and has been deliberately simplified. Additional steps
  139.10 + * required for a production-quality application, such as security checks,
  139.11 + * input validation and proper error handling, might not be present in
  139.12 + * this sample code.
  139.13 + */
  139.14 +
  139.15 +
  139.16  
  139.17  import java.awt.Graphics;
  139.18  import java.awt.Font;
   140.1 --- a/src/share/demo/applets/SimpleGraph/GraphApplet.java	Mon Aug 29 17:09:35 2011 -0700
   140.2 +++ b/src/share/demo/applets/SimpleGraph/GraphApplet.java	Wed Aug 31 09:56:44 2011 -0700
   140.3 @@ -29,6 +29,15 @@
   140.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   140.5   */
   140.6  
   140.7 +/*
   140.8 + * This source code is provided to illustrate the usage of a given feature
   140.9 + * or technique and has been deliberately simplified. Additional steps
  140.10 + * required for a production-quality application, such as security checks,
  140.11 + * input validation and proper error handling, might not be present in
  140.12 + * this sample code.
  140.13 + */
  140.14 +
  140.15 +
  140.16  
  140.17  import java.awt.Graphics;
  140.18  
   141.1 --- a/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java	Mon Aug 29 17:09:35 2011 -0700
   141.2 +++ b/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java	Wed Aug 31 09:56:44 2011 -0700
   141.3 @@ -29,6 +29,15 @@
   141.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   141.5   */
   141.6  
   141.7 +/*
   141.8 + * This source code is provided to illustrate the usage of a given feature
   141.9 + * or technique and has been deliberately simplified. Additional steps
  141.10 + * required for a production-quality application, such as security checks,
  141.11 + * input validation and proper error handling, might not be present in
  141.12 + * this sample code.
  141.13 + */
  141.14 +
  141.15 +
  141.16  
  141.17  /**
  141.18   * A bi-directional bubble sort demonstration algorithm
   142.1 --- a/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java	Mon Aug 29 17:09:35 2011 -0700
   142.2 +++ b/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java	Wed Aug 31 09:56:44 2011 -0700
   142.3 @@ -29,6 +29,15 @@
   142.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   142.5   */
   142.6  
   142.7 +/*
   142.8 + * This source code is provided to illustrate the usage of a given feature
   142.9 + * or technique and has been deliberately simplified. Additional steps
  142.10 + * required for a production-quality application, such as security checks,
  142.11 + * input validation and proper error handling, might not be present in
  142.12 + * this sample code.
  142.13 + */
  142.14 +
  142.15 +
  142.16  
  142.17  /**
  142.18   * A bubble sort demonstration algorithm
   143.1 --- a/src/share/demo/applets/SortDemo/QSortAlgorithm.java	Mon Aug 29 17:09:35 2011 -0700
   143.2 +++ b/src/share/demo/applets/SortDemo/QSortAlgorithm.java	Wed Aug 31 09:56:44 2011 -0700
   143.3 @@ -29,6 +29,15 @@
   143.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   143.5   */
   143.6  
   143.7 +/*
   143.8 + * This source code is provided to illustrate the usage of a given feature
   143.9 + * or technique and has been deliberately simplified. Additional steps
  143.10 + * required for a production-quality application, such as security checks,
  143.11 + * input validation and proper error handling, might not be present in
  143.12 + * this sample code.
  143.13 + */
  143.14 +
  143.15 +
  143.16  
  143.17  /**
  143.18   * A quick sort demonstration algorithm
   144.1 --- a/src/share/demo/applets/SortDemo/SortAlgorithm.java	Mon Aug 29 17:09:35 2011 -0700
   144.2 +++ b/src/share/demo/applets/SortDemo/SortAlgorithm.java	Wed Aug 31 09:56:44 2011 -0700
   144.3 @@ -29,6 +29,15 @@
   144.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   144.5   */
   144.6  
   144.7 +/*
   144.8 + * This source code is provided to illustrate the usage of a given feature
   144.9 + * or technique and has been deliberately simplified. Additional steps
  144.10 + * required for a production-quality application, such as security checks,
  144.11 + * input validation and proper error handling, might not be present in
  144.12 + * this sample code.
  144.13 + */
  144.14 +
  144.15 +
  144.16  
  144.17  /**
  144.18   * A generic sort demonstration algorithm
   145.1 --- a/src/share/demo/applets/SortDemo/SortItem.java	Mon Aug 29 17:09:35 2011 -0700
   145.2 +++ b/src/share/demo/applets/SortDemo/SortItem.java	Wed Aug 31 09:56:44 2011 -0700
   145.3 @@ -29,6 +29,15 @@
   145.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   145.5   */
   145.6  
   145.7 +/*
   145.8 + * This source code is provided to illustrate the usage of a given feature
   145.9 + * or technique and has been deliberately simplified. Additional steps
  145.10 + * required for a production-quality application, such as security checks,
  145.11 + * input validation and proper error handling, might not be present in
  145.12 + * this sample code.
  145.13 + */
  145.14 +
  145.15 +
  145.16  
  145.17  import java.awt.Color;
  145.18  import java.awt.Dimension;
   146.1 --- a/src/share/demo/applets/SpreadSheet/SpreadSheet.java	Mon Aug 29 17:09:35 2011 -0700
   146.2 +++ b/src/share/demo/applets/SpreadSheet/SpreadSheet.java	Wed Aug 31 09:56:44 2011 -0700
   146.3 @@ -29,6 +29,15 @@
   146.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   146.5   */
   146.6  
   146.7 +/*
   146.8 + * This source code is provided to illustrate the usage of a given feature
   146.9 + * or technique and has been deliberately simplified. Additional steps
  146.10 + * required for a production-quality application, such as security checks,
  146.11 + * input validation and proper error handling, might not be present in
  146.12 + * this sample code.
  146.13 + */
  146.14 +
  146.15 +
  146.16  
  146.17  import java.applet.Applet;
  146.18  import java.awt.*;
   147.1 --- a/src/share/demo/applets/WireFrame/Matrix3D.java	Mon Aug 29 17:09:35 2011 -0700
   147.2 +++ b/src/share/demo/applets/WireFrame/Matrix3D.java	Wed Aug 31 09:56:44 2011 -0700
   147.3 @@ -29,6 +29,15 @@
   147.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   147.5   */
   147.6  
   147.7 +/*
   147.8 + * This source code is provided to illustrate the usage of a given feature
   147.9 + * or technique and has been deliberately simplified. Additional steps
  147.10 + * required for a production-quality application, such as security checks,
  147.11 + * input validation and proper error handling, might not be present in
  147.12 + * this sample code.
  147.13 + */
  147.14 +
  147.15 +
  147.16  
  147.17  /** A fairly conventional 3D matrix object that can transform sets of
  147.18  3D points and perform a variety of manipulations on the transform */
   148.1 --- a/src/share/demo/applets/WireFrame/ThreeD.java	Mon Aug 29 17:09:35 2011 -0700
   148.2 +++ b/src/share/demo/applets/WireFrame/ThreeD.java	Wed Aug 31 09:56:44 2011 -0700
   148.3 @@ -29,6 +29,15 @@
   148.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   148.5   */
   148.6  
   148.7 +/*
   148.8 + * This source code is provided to illustrate the usage of a given feature
   148.9 + * or technique and has been deliberately simplified. Additional steps
  148.10 + * required for a production-quality application, such as security checks,
  148.11 + * input validation and proper error handling, might not be present in
  148.12 + * this sample code.
  148.13 + */
  148.14 +
  148.15 +
  148.16  
  148.17  import java.applet.Applet;
  148.18  import java.awt.Graphics;
   149.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java	Mon Aug 29 17:09:35 2011 -0700
   149.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java	Wed Aug 31 09:56:44 2011 -0700
   149.3 @@ -29,6 +29,15 @@
   149.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   149.5   */
   149.6  
   149.7 +/*
   149.8 + * This source code is provided to illustrate the usage of a given feature
   149.9 + * or technique and has been deliberately simplified. Additional steps
  149.10 + * required for a production-quality application, such as security checks,
  149.11 + * input validation and proper error handling, might not be present in
  149.12 + * this sample code.
  149.13 + */
  149.14 +
  149.15 +
  149.16  package j2dbench;
  149.17  
  149.18  import java.awt.Image;
   150.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java	Mon Aug 29 17:09:35 2011 -0700
   150.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java	Wed Aug 31 09:56:44 2011 -0700
   150.3 @@ -29,6 +29,15 @@
   150.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   150.5   */
   150.6  
   150.7 +/*
   150.8 + * This source code is provided to illustrate the usage of a given feature
   150.9 + * or technique and has been deliberately simplified. Additional steps
  150.10 + * required for a production-quality application, such as security checks,
  150.11 + * input validation and proper error handling, might not be present in
  150.12 + * this sample code.
  150.13 + */
  150.14 +
  150.15 +
  150.16  package j2dbench;
  150.17  
  150.18  import java.io.PrintWriter;
   151.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java	Mon Aug 29 17:09:35 2011 -0700
   151.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java	Wed Aug 31 09:56:44 2011 -0700
   151.3 @@ -29,6 +29,15 @@
   151.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   151.5   */
   151.6  
   151.7 +/*
   151.8 + * This source code is provided to illustrate the usage of a given feature
   151.9 + * or technique and has been deliberately simplified. Additional steps
  151.10 + * required for a production-quality application, such as security checks,
  151.11 + * input validation and proper error handling, might not be present in
  151.12 + * this sample code.
  151.13 + */
  151.14 +
  151.15 +
  151.16  package j2dbench;
  151.17  
  151.18  import java.io.PrintWriter;
   152.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java	Mon Aug 29 17:09:35 2011 -0700
   152.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java	Wed Aug 31 09:56:44 2011 -0700
   152.3 @@ -29,6 +29,15 @@
   152.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   152.5   */
   152.6  
   152.7 +/*
   152.8 + * This source code is provided to illustrate the usage of a given feature
   152.9 + * or technique and has been deliberately simplified. Additional steps
  152.10 + * required for a production-quality application, such as security checks,
  152.11 + * input validation and proper error handling, might not be present in
  152.12 + * this sample code.
  152.13 + */
  152.14 +
  152.15 +
  152.16  package j2dbench;
  152.17  
  152.18  public interface Modifier {
   153.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java	Mon Aug 29 17:09:35 2011 -0700
   153.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java	Wed Aug 31 09:56:44 2011 -0700
   153.3 @@ -29,6 +29,15 @@
   153.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   153.5   */
   153.6  
   153.7 +/*
   153.8 + * This source code is provided to illustrate the usage of a given feature
   153.9 + * or technique and has been deliberately simplified. Additional steps
  153.10 + * required for a production-quality application, such as security checks,
  153.11 + * input validation and proper error handling, might not be present in
  153.12 + * this sample code.
  153.13 + */
  153.14 +
  153.15 +
  153.16  package j2dbench;
  153.17  
  153.18  import java.io.PrintWriter;
   154.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java	Mon Aug 29 17:09:35 2011 -0700
   154.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java	Wed Aug 31 09:56:44 2011 -0700
   154.3 @@ -29,6 +29,15 @@
   154.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   154.5   */
   154.6  
   154.7 +/*
   154.8 + * This source code is provided to illustrate the usage of a given feature
   154.9 + * or technique and has been deliberately simplified. Additional steps
  154.10 + * required for a production-quality application, such as security checks,
  154.11 + * input validation and proper error handling, might not be present in
  154.12 + * this sample code.
  154.13 + */
  154.14 +
  154.15 +
  154.16  package j2dbench;
  154.17  
  154.18  import java.awt.BorderLayout;
   155.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java	Mon Aug 29 17:09:35 2011 -0700
   155.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java	Wed Aug 31 09:56:44 2011 -0700
   155.3 @@ -29,6 +29,15 @@
   155.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   155.5   */
   155.6  
   155.7 +/*
   155.8 + * This source code is provided to illustrate the usage of a given feature
   155.9 + * or technique and has been deliberately simplified. Additional steps
  155.10 + * required for a production-quality application, such as security checks,
  155.11 + * input validation and proper error handling, might not be present in
  155.12 + * this sample code.
  155.13 + */
  155.14 +
  155.15 +
  155.16  package j2dbench;
  155.17  
  155.18  import java.util.Vector;
   156.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java	Mon Aug 29 17:09:35 2011 -0700
   156.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java	Wed Aug 31 09:56:44 2011 -0700
   156.3 @@ -29,6 +29,15 @@
   156.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   156.5   */
   156.6  
   156.7 +/*
   156.8 + * This source code is provided to illustrate the usage of a given feature
   156.9 + * or technique and has been deliberately simplified. Additional steps
  156.10 + * required for a production-quality application, such as security checks,
  156.11 + * input validation and proper error handling, might not be present in
  156.12 + * this sample code.
  156.13 + */
  156.14 +
  156.15 +
  156.16  package j2dbench;
  156.17  
  156.18  import java.util.Hashtable;
   157.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java	Mon Aug 29 17:09:35 2011 -0700
   157.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java	Wed Aug 31 09:56:44 2011 -0700
   157.3 @@ -29,6 +29,15 @@
   157.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   157.5   */
   157.6  
   157.7 +/*
   157.8 + * This source code is provided to illustrate the usage of a given feature
   157.9 + * or technique and has been deliberately simplified. Additional steps
  157.10 + * required for a production-quality application, such as security checks,
  157.11 + * input validation and proper error handling, might not be present in
  157.12 + * this sample code.
  157.13 + */
  157.14 +
  157.15 +
  157.16  package j2dbench;
  157.17  
  157.18  public abstract class Test extends Option.Enable {
   158.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java	Mon Aug 29 17:09:35 2011 -0700
   158.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java	Wed Aug 31 09:56:44 2011 -0700
   158.3 @@ -29,6 +29,15 @@
   158.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   158.5   */
   158.6  
   158.7 +/*
   158.8 + * This source code is provided to illustrate the usage of a given feature
   158.9 + * or technique and has been deliberately simplified. Additional steps
  158.10 + * required for a production-quality application, such as security checks,
  158.11 + * input validation and proper error handling, might not be present in
  158.12 + * this sample code.
  158.13 + */
  158.14 +
  158.15 +
  158.16  package j2dbench;
  158.17  
  158.18  import java.awt.Canvas;
   159.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java	Mon Aug 29 17:09:35 2011 -0700
   159.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java	Wed Aug 31 09:56:44 2011 -0700
   159.3 @@ -29,6 +29,15 @@
   159.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   159.5   */
   159.6  
   159.7 +/*
   159.8 + * This source code is provided to illustrate the usage of a given feature
   159.9 + * or technique and has been deliberately simplified. Additional steps
  159.10 + * required for a production-quality application, such as security checks,
  159.11 + * input validation and proper error handling, might not be present in
  159.12 + * this sample code.
  159.13 + */
  159.14 +
  159.15 +
  159.16  /**
  159.17   * HTMLSeriesReporter.java
  159.18   *
   160.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java	Mon Aug 29 17:09:35 2011 -0700
   160.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java	Wed Aug 31 09:56:44 2011 -0700
   160.3 @@ -29,6 +29,15 @@
   160.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   160.5   */
   160.6  
   160.7 +/*
   160.8 + * This source code is provided to illustrate the usage of a given feature
   160.9 + * or technique and has been deliberately simplified. Additional steps
  160.10 + * required for a production-quality application, such as security checks,
  160.11 + * input validation and proper error handling, might not be present in
  160.12 + * this sample code.
  160.13 + */
  160.14 +
  160.15 +
  160.16  package j2dbench.report;
  160.17  
  160.18  import java.io.*;
   161.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java	Mon Aug 29 17:09:35 2011 -0700
   161.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java	Wed Aug 31 09:56:44 2011 -0700
   161.3 @@ -29,6 +29,15 @@
   161.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   161.5   */
   161.6  
   161.7 +/*
   161.8 + * This source code is provided to illustrate the usage of a given feature
   161.9 + * or technique and has been deliberately simplified. Additional steps
  161.10 + * required for a production-quality application, such as security checks,
  161.11 + * input validation and proper error handling, might not be present in
  161.12 + * this sample code.
  161.13 + */
  161.14 +
  161.15 +
  161.16  package j2dbench.report;
  161.17  
  161.18  import java.util.Vector;
   162.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java	Mon Aug 29 17:09:35 2011 -0700
   162.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java	Wed Aug 31 09:56:44 2011 -0700
   162.3 @@ -29,6 +29,15 @@
   162.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   162.5   */
   162.6  
   162.7 +/*
   162.8 + * This source code is provided to illustrate the usage of a given feature
   162.9 + * or technique and has been deliberately simplified. Additional steps
  162.10 + * required for a production-quality application, such as security checks,
  162.11 + * input validation and proper error handling, might not be present in
  162.12 + * this sample code.
  162.13 + */
  162.14 +
  162.15 +
  162.16  /**
  162.17   * XMLHTMLReporter.java
  162.18   *
   163.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java	Mon Aug 29 17:09:35 2011 -0700
   163.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java	Wed Aug 31 09:56:44 2011 -0700
   163.3 @@ -29,6 +29,15 @@
   163.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   163.5   */
   163.6  
   163.7 +/*
   163.8 + * This source code is provided to illustrate the usage of a given feature
   163.9 + * or technique and has been deliberately simplified. Additional steps
  163.10 + * required for a production-quality application, such as security checks,
  163.11 + * input validation and proper error handling, might not be present in
  163.12 + * this sample code.
  163.13 + */
  163.14 +
  163.15 +
  163.16  package j2dbench.tests;
  163.17  
  163.18  import java.awt.Graphics;
   164.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java	Mon Aug 29 17:09:35 2011 -0700
   164.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java	Wed Aug 31 09:56:44 2011 -0700
   164.3 @@ -29,6 +29,15 @@
   164.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   164.5   */
   164.6  
   164.7 +/*
   164.8 + * This source code is provided to illustrate the usage of a given feature
   164.9 + * or technique and has been deliberately simplified. Additional steps
  164.10 + * required for a production-quality application, such as security checks,
  164.11 + * input validation and proper error handling, might not be present in
  164.12 + * this sample code.
  164.13 + */
  164.14 +
  164.15 +
  164.16  package j2dbench.tests;
  164.17  
  164.18  import j2dbench.Destinations;
   165.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java	Mon Aug 29 17:09:35 2011 -0700
   165.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java	Wed Aug 31 09:56:44 2011 -0700
   165.3 @@ -29,6 +29,15 @@
   165.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   165.5   */
   165.6  
   165.7 +/*
   165.8 + * This source code is provided to illustrate the usage of a given feature
   165.9 + * or technique and has been deliberately simplified. Additional steps
  165.10 + * required for a production-quality application, such as security checks,
  165.11 + * input validation and proper error handling, might not be present in
  165.12 + * this sample code.
  165.13 + */
  165.14 +
  165.15 +
  165.16  package j2dbench.tests;
  165.17  
  165.18  import java.awt.Dimension;
   166.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java	Mon Aug 29 17:09:35 2011 -0700
   166.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java	Wed Aug 31 09:56:44 2011 -0700
   166.3 @@ -29,6 +29,15 @@
   166.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   166.5   */
   166.6  
   166.7 +/*
   166.8 + * This source code is provided to illustrate the usage of a given feature
   166.9 + * or technique and has been deliberately simplified. Additional steps
  166.10 + * required for a production-quality application, such as security checks,
  166.11 + * input validation and proper error handling, might not be present in
  166.12 + * this sample code.
  166.13 + */
  166.14 +
  166.15 +
  166.16  package j2dbench.tests;
  166.17  
  166.18  import j2dbench.Destinations;
   167.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java	Mon Aug 29 17:09:35 2011 -0700
   167.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java	Wed Aug 31 09:56:44 2011 -0700
   167.3 @@ -29,6 +29,15 @@
   167.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   167.5   */
   167.6  
   167.7 +/*
   167.8 + * This source code is provided to illustrate the usage of a given feature
   167.9 + * or technique and has been deliberately simplified. Additional steps
  167.10 + * required for a production-quality application, such as security checks,
  167.11 + * input validation and proper error handling, might not be present in
  167.12 + * this sample code.
  167.13 + */
  167.14 +
  167.15 +
  167.16  package j2dbench.tests;
  167.17  
  167.18  import java.awt.Graphics;
   168.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java	Mon Aug 29 17:09:35 2011 -0700
   168.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java	Wed Aug 31 09:56:44 2011 -0700
   168.3 @@ -29,6 +29,15 @@
   168.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   168.5   */
   168.6  
   168.7 +/*
   168.8 + * This source code is provided to illustrate the usage of a given feature
   168.9 + * or technique and has been deliberately simplified. Additional steps
  168.10 + * required for a production-quality application, such as security checks,
  168.11 + * input validation and proper error handling, might not be present in
  168.12 + * this sample code.
  168.13 + */
  168.14 +
  168.15 +
  168.16  package j2dbench.tests.iio;
  168.17  
  168.18  import java.awt.AlphaComposite;
   169.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java	Mon Aug 29 17:09:35 2011 -0700
   169.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java	Wed Aug 31 09:56:44 2011 -0700
   169.3 @@ -29,6 +29,15 @@
   169.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   169.5   */
   169.6  
   169.7 +/*
   169.8 + * This source code is provided to illustrate the usage of a given feature
   169.9 + * or technique and has been deliberately simplified. Additional steps
  169.10 + * required for a production-quality application, such as security checks,
  169.11 + * input validation and proper error handling, might not be present in
  169.12 + * this sample code.
  169.13 + */
  169.14 +
  169.15 +
  169.16  package j2dbench.tests.iio;
  169.17  
  169.18  import java.awt.Component;
   170.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java	Mon Aug 29 17:09:35 2011 -0700
   170.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java	Wed Aug 31 09:56:44 2011 -0700
   170.3 @@ -29,6 +29,15 @@
   170.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   170.5   */
   170.6  
   170.7 +/*
   170.8 + * This source code is provided to illustrate the usage of a given feature
   170.9 + * or technique and has been deliberately simplified. Additional steps
  170.10 + * required for a production-quality application, such as security checks,
  170.11 + * input validation and proper error handling, might not be present in
  170.12 + * this sample code.
  170.13 + */
  170.14 +
  170.15 +
  170.16  package j2dbench.tests.iio;
  170.17  
  170.18  import java.io.File;
   171.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java	Mon Aug 29 17:09:35 2011 -0700
   171.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java	Wed Aug 31 09:56:44 2011 -0700
   171.3 @@ -29,6 +29,15 @@
   171.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   171.5   */
   171.6  
   171.7 +/*
   171.8 + * This source code is provided to illustrate the usage of a given feature
   171.9 + * or technique and has been deliberately simplified. Additional steps
  171.10 + * required for a production-quality application, such as security checks,
  171.11 + * input validation and proper error handling, might not be present in
  171.12 + * this sample code.
  171.13 + */
  171.14 +
  171.15 +
  171.16  package j2dbench.tests.iio;
  171.17  
  171.18  import java.io.BufferedInputStream;
   172.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java	Mon Aug 29 17:09:35 2011 -0700
   172.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java	Wed Aug 31 09:56:44 2011 -0700
   172.3 @@ -29,6 +29,15 @@
   172.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   172.5   */
   172.6  
   172.7 +/*
   172.8 + * This source code is provided to illustrate the usage of a given feature
   172.9 + * or technique and has been deliberately simplified. Additional steps
  172.10 + * required for a production-quality application, such as security checks,
  172.11 + * input validation and proper error handling, might not be present in
  172.12 + * this sample code.
  172.13 + */
  172.14 +
  172.15 +
  172.16  package j2dbench.tests.iio;
  172.17  
  172.18  import java.awt.Graphics;
   173.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java	Mon Aug 29 17:09:35 2011 -0700
   173.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java	Wed Aug 31 09:56:44 2011 -0700
   173.3 @@ -29,6 +29,15 @@
   173.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   173.5   */
   173.6  
   173.7 +/*
   173.8 + * This source code is provided to illustrate the usage of a given feature
   173.9 + * or technique and has been deliberately simplified. Additional steps
  173.10 + * required for a production-quality application, such as security checks,
  173.11 + * input validation and proper error handling, might not be present in
  173.12 + * this sample code.
  173.13 + */
  173.14 +
  173.15 +
  173.16  package j2dbench.tests.iio;
  173.17  
  173.18  import java.io.File;
   174.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java	Mon Aug 29 17:09:35 2011 -0700
   174.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java	Wed Aug 31 09:56:44 2011 -0700
   174.3 @@ -29,6 +29,15 @@
   174.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   174.5   */
   174.6  
   174.7 +/*
   174.8 + * This source code is provided to illustrate the usage of a given feature
   174.9 + * or technique and has been deliberately simplified. Additional steps
  174.10 + * required for a production-quality application, such as security checks,
  174.11 + * input validation and proper error handling, might not be present in
  174.12 + * this sample code.
  174.13 + */
  174.14 +
  174.15 +
  174.16  package j2dbench.tests.iio;
  174.17  
  174.18  import java.io.BufferedOutputStream;
   175.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java	Mon Aug 29 17:09:35 2011 -0700
   175.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java	Wed Aug 31 09:56:44 2011 -0700
   175.3 @@ -30,6 +30,15 @@
   175.4   */
   175.5  
   175.6  /*
   175.7 + * This source code is provided to illustrate the usage of a given feature
   175.8 + * or technique and has been deliberately simplified. Additional steps
   175.9 + * required for a production-quality application, such as security checks,
  175.10 + * input validation and proper error handling, might not be present in
  175.11 + * this sample code.
  175.12 + */
  175.13 +
  175.14 +
  175.15 +/*
  175.16   * (C) Copyright IBM Corp. 2003, All Rights Reserved.
  175.17   * This technology is protected by multiple US and International
  175.18   * patents. This notice and attribution to IBM may not be removed.
   176.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java	Mon Aug 29 17:09:35 2011 -0700
   176.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java	Wed Aug 31 09:56:44 2011 -0700
   176.3 @@ -30,6 +30,15 @@
   176.4   */
   176.5  
   176.6  /*
   176.7 + * This source code is provided to illustrate the usage of a given feature
   176.8 + * or technique and has been deliberately simplified. Additional steps
   176.9 + * required for a production-quality application, such as security checks,
  176.10 + * input validation and proper error handling, might not be present in
  176.11 + * this sample code.
  176.12 + */
  176.13 +
  176.14 +
  176.15 +/*
  176.16   * (C) Copyright IBM Corp. 2003, All Rights Reserved.
  176.17   * This technology is protected by multiple US and International
  176.18   * patents. This notice and attribution to IBM may not be removed.
   177.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java	Mon Aug 29 17:09:35 2011 -0700
   177.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java	Wed Aug 31 09:56:44 2011 -0700
   177.3 @@ -30,6 +30,15 @@
   177.4   */
   177.5  
   177.6  /*
   177.7 + * This source code is provided to illustrate the usage of a given feature
   177.8 + * or technique and has been deliberately simplified. Additional steps
   177.9 + * required for a production-quality application, such as security checks,
  177.10 + * input validation and proper error handling, might not be present in
  177.11 + * this sample code.
  177.12 + */
  177.13 +
  177.14 +
  177.15 +/*
  177.16   * (C) Copyright IBM Corp. 2003, All Rights Reserved.
  177.17   * This technology is protected by multiple US and International
  177.18   * patents. This notice and attribution to IBM may not be removed.
   178.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java	Mon Aug 29 17:09:35 2011 -0700
   178.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java	Wed Aug 31 09:56:44 2011 -0700
   178.3 @@ -30,6 +30,15 @@
   178.4   */
   178.5  
   178.6  /*
   178.7 + * This source code is provided to illustrate the usage of a given feature
   178.8 + * or technique and has been deliberately simplified. Additional steps
   178.9 + * required for a production-quality application, such as security checks,
  178.10 + * input validation and proper error handling, might not be present in
  178.11 + * this sample code.
  178.12 + */
  178.13 +
  178.14 +
  178.15 +/*
  178.16   * (C) Copyright IBM Corp. 2003, All Rights Reserved.
  178.17   * This technology is protected by multiple US and International
  178.18   * patents. This notice and attribution to IBM may not be removed.
   179.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java	Mon Aug 29 17:09:35 2011 -0700
   179.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java	Wed Aug 31 09:56:44 2011 -0700
   179.3 @@ -29,6 +29,15 @@
   179.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   179.5   */
   179.6  
   179.7 +/*
   179.8 + * This source code is provided to illustrate the usage of a given feature
   179.9 + * or technique and has been deliberately simplified. Additional steps
  179.10 + * required for a production-quality application, such as security checks,
  179.11 + * input validation and proper error handling, might not be present in
  179.12 + * this sample code.
  179.13 + */
  179.14 +
  179.15 +
  179.16  package j2dbench.ui;
  179.17  
  179.18  import java.awt.Dimension;
   180.1 --- a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java	Mon Aug 29 17:09:35 2011 -0700
   180.2 +++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java	Wed Aug 31 09:56:44 2011 -0700
   180.3 @@ -29,6 +29,15 @@
   180.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   180.5   */
   180.6  
   180.7 +/*
   180.8 + * This source code is provided to illustrate the usage of a given feature
   180.9 + * or technique and has been deliberately simplified. Additional steps
  180.10 + * required for a production-quality application, such as security checks,
  180.11 + * input validation and proper error handling, might not be present in
  180.12 + * this sample code.
  180.13 + */
  180.14 +
  180.15 +
  180.16  package j2dbench.ui;
  180.17  
  180.18  import j2dbench.Group;
   181.1 --- a/src/share/demo/jfc/CodePointIM/CodePointIM.java	Mon Aug 29 17:09:35 2011 -0700
   181.2 +++ b/src/share/demo/jfc/CodePointIM/CodePointIM.java	Wed Aug 31 09:56:44 2011 -0700
   181.3 @@ -29,6 +29,15 @@
   181.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   181.5   */
   181.6  
   181.7 +/*
   181.8 + * This source code is provided to illustrate the usage of a given feature
   181.9 + * or technique and has been deliberately simplified. Additional steps
  181.10 + * required for a production-quality application, such as security checks,
  181.11 + * input validation and proper error handling, might not be present in
  181.12 + * this sample code.
  181.13 + */
  181.14 +
  181.15 +
  181.16  
  181.17  import java.util.Locale;
  181.18  import java.util.MissingResourceException;
   182.1 --- a/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java	Mon Aug 29 17:09:35 2011 -0700
   182.2 +++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java	Wed Aug 31 09:56:44 2011 -0700
   182.3 @@ -28,6 +28,15 @@
   182.4   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   182.5   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   182.6   */
   182.7 +
   182.8 +/*
   182.9 + * This source code is provided to illustrate the usage of a given feature
  182.10 + * or technique and has been deliberately simplified. Additional steps
  182.11 + * required for a production-quality application, such as security checks,
  182.12 + * input validation and proper error handling, might not be present in
  182.13 + * this sample code.
  182.14 + */
  182.15 +
  182.16  package com.sun.inputmethods.internal.codepointim;
  182.17  
  182.18  
   183.1 --- a/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java	Mon Aug 29 17:09:35 2011 -0700
   183.2 +++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java	Wed Aug 31 09:56:44 2011 -0700
   183.3 @@ -28,6 +28,15 @@
   183.4   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   183.5   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   183.6   */
   183.7 +
   183.8 +/*
   183.9 + * This source code is provided to illustrate the usage of a given feature
  183.10 + * or technique and has been deliberately simplified. Additional steps
  183.11 + * required for a production-quality application, such as security checks,
  183.12 + * input validation and proper error handling, might not be present in
  183.13 + * this sample code.
  183.14 + */
  183.15 +
  183.16  package com.sun.inputmethods.internal.codepointim;
  183.17  
  183.18  
   184.1 --- a/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java	Mon Aug 29 17:09:35 2011 -0700
   184.2 +++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java	Wed Aug 31 09:56:44 2011 -0700
   184.3 @@ -29,6 +29,15 @@
   184.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   184.5   */
   184.6  
   184.7 +/*
   184.8 + * This source code is provided to illustrate the usage of a given feature
   184.9 + * or technique and has been deliberately simplified. Additional steps
  184.10 + * required for a production-quality application, such as security checks,
  184.11 + * input validation and proper error handling, might not be present in
  184.12 + * this sample code.
  184.13 + */
  184.14 +
  184.15 +
  184.16  
  184.17  import java.io.File;
  184.18  import java.io.IOException;
   185.1 --- a/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java	Mon Aug 29 17:09:35 2011 -0700
   185.2 +++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java	Wed Aug 31 09:56:44 2011 -0700
   185.3 @@ -29,6 +29,15 @@
   185.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   185.5   */
   185.6  
   185.7 +/*
   185.8 + * This source code is provided to illustrate the usage of a given feature
   185.9 + * or technique and has been deliberately simplified. Additional steps
  185.10 + * required for a production-quality application, such as security checks,
  185.11 + * input validation and proper error handling, might not be present in
  185.12 + * this sample code.
  185.13 + */
  185.14 +
  185.15 +
  185.16  
  185.17  import javax.swing.*;
  185.18  import javax.swing.filechooser.*;
   186.1 --- a/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java	Mon Aug 29 17:09:35 2011 -0700
   186.2 +++ b/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java	Wed Aug 31 09:56:44 2011 -0700
   186.3 @@ -29,6 +29,15 @@
   186.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   186.5   */
   186.6  
   186.7 +/*
   186.8 + * This source code is provided to illustrate the usage of a given feature
   186.9 + * or technique and has been deliberately simplified. Additional steps
  186.10 + * required for a production-quality application, such as security checks,
  186.11 + * input validation and proper error handling, might not be present in
  186.12 + * this sample code.
  186.13 + */
  186.14 +
  186.15 +
  186.16  
  186.17  import java.lang.reflect.InvocationTargetException;
  186.18  import java.util.logging.Level;
   187.1 --- a/src/share/demo/jfc/Font2DTest/Font2DTest.java	Mon Aug 29 17:09:35 2011 -0700
   187.2 +++ b/src/share/demo/jfc/Font2DTest/Font2DTest.java	Wed Aug 31 09:56:44 2011 -0700
   187.3 @@ -29,6 +29,15 @@
   187.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   187.5   */
   187.6  
   187.7 +/*
   187.8 + * This source code is provided to illustrate the usage of a given feature
   187.9 + * or technique and has been deliberately simplified. Additional steps
  187.10 + * required for a production-quality application, such as security checks,
  187.11 + * input validation and proper error handling, might not be present in
  187.12 + * this sample code.
  187.13 + */
  187.14 +
  187.15 +
  187.16  
  187.17  import java.awt.Color;
  187.18  import java.awt.Component;
   188.1 --- a/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java	Mon Aug 29 17:09:35 2011 -0700
   188.2 +++ b/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java	Wed Aug 31 09:56:44 2011 -0700
   188.3 @@ -30,6 +30,15 @@
   188.4   */
   188.5  
   188.6  /*
   188.7 + * This source code is provided to illustrate the usage of a given feature
   188.8 + * or technique and has been deliberately simplified. Additional steps
   188.9 + * required for a production-quality application, such as security checks,
  188.10 + * input validation and proper error handling, might not be present in
  188.11 + * this sample code.
  188.12 + */
  188.13 +
  188.14 +
  188.15 +/*
  188.16   */
  188.17  
  188.18  import java.awt.AWTPermission;
   189.1 --- a/src/share/demo/jfc/Font2DTest/FontPanel.java	Mon Aug 29 17:09:35 2011 -0700
   189.2 +++ b/src/share/demo/jfc/Font2DTest/FontPanel.java	Wed Aug 31 09:56:44 2011 -0700
   189.3 @@ -29,6 +29,15 @@
   189.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   189.5   */
   189.6  
   189.7 +/*
   189.8 + * This source code is provided to illustrate the usage of a given feature
   189.9 + * or technique and has been deliberately simplified. Additional steps
  189.10 + * required for a production-quality application, such as security checks,
  189.11 + * input validation and proper error handling, might not be present in
  189.12 + * this sample code.
  189.13 + */
  189.14 +
  189.15 +
  189.16  
  189.17  import java.awt.BorderLayout;
  189.18  import java.awt.Color;
   190.1 --- a/src/share/demo/jfc/Font2DTest/RangeMenu.java	Mon Aug 29 17:09:35 2011 -0700
   190.2 +++ b/src/share/demo/jfc/Font2DTest/RangeMenu.java	Wed Aug 31 09:56:44 2011 -0700
   190.3 @@ -30,6 +30,15 @@
   190.4   */
   190.5  
   190.6  /*
   190.7 + * This source code is provided to illustrate the usage of a given feature
   190.8 + * or technique and has been deliberately simplified. Additional steps
   190.9 + * required for a production-quality application, such as security checks,
  190.10 + * input validation and proper error handling, might not be present in
  190.11 + * this sample code.
  190.12 + */
  190.13 +
  190.14 +
  190.15 +/*
  190.16   */
  190.17  
  190.18  import java.awt.BorderLayout;
   191.1 --- a/src/share/demo/jfc/Metalworks/AquaMetalTheme.java	Mon Aug 29 17:09:35 2011 -0700
   191.2 +++ b/src/share/demo/jfc/Metalworks/AquaMetalTheme.java	Wed Aug 31 09:56:44 2011 -0700
   191.3 @@ -29,6 +29,15 @@
   191.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   191.5   */
   191.6  
   191.7 +/*
   191.8 + * This source code is provided to illustrate the usage of a given feature
   191.9 + * or technique and has been deliberately simplified. Additional steps
  191.10 + * required for a production-quality application, such as security checks,
  191.11 + * input validation and proper error handling, might not be present in
  191.12 + * this sample code.
  191.13 + */
  191.14 +
  191.15 +
  191.16  
  191.17  import javax.swing.plaf.ColorUIResource;
  191.18  import javax.swing.plaf.metal.DefaultMetalTheme;
   192.1 --- a/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java	Mon Aug 29 17:09:35 2011 -0700
   192.2 +++ b/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java	Wed Aug 31 09:56:44 2011 -0700
   192.3 @@ -29,6 +29,15 @@
   192.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   192.5   */
   192.6  
   192.7 +/*
   192.8 + * This source code is provided to illustrate the usage of a given feature
   192.9 + * or technique and has been deliberately simplified. Additional steps
  192.10 + * required for a production-quality application, such as security checks,
  192.11 + * input validation and proper error handling, might not be present in
  192.12 + * this sample code.
  192.13 + */
  192.14 +
  192.15 +
  192.16  
  192.17  import javax.swing.plaf.*;
  192.18  import javax.swing.plaf.metal.*;
   193.1 --- a/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java	Mon Aug 29 17:09:35 2011 -0700
   193.2 +++ b/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java	Wed Aug 31 09:56:44 2011 -0700
   193.3 @@ -29,6 +29,15 @@
   193.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   193.5   */
   193.6  
   193.7 +/*
   193.8 + * This source code is provided to illustrate the usage of a given feature
   193.9 + * or technique and has been deliberately simplified. Additional steps
  193.10 + * required for a production-quality application, such as security checks,
  193.11 + * input validation and proper error handling, might not be present in
  193.12 + * this sample code.
  193.13 + */
  193.14 +
  193.15 +
  193.16  
  193.17  import javax.swing.UIDefaults;
  193.18  import javax.swing.border.Border;
   194.1 --- a/src/share/demo/jfc/Metalworks/DemoMetalTheme.java	Mon Aug 29 17:09:35 2011 -0700
   194.2 +++ b/src/share/demo/jfc/Metalworks/DemoMetalTheme.java	Wed Aug 31 09:56:44 2011 -0700
   194.3 @@ -29,6 +29,15 @@
   194.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   194.5   */
   194.6  
   194.7 +/*
   194.8 + * This source code is provided to illustrate the usage of a given feature
   194.9 + * or technique and has been deliberately simplified. Additional steps
  194.10 + * required for a production-quality application, such as security checks,
  194.11 + * input validation and proper error handling, might not be present in
  194.12 + * this sample code.
  194.13 + */
  194.14 +
  194.15 +
  194.16  
  194.17  import java.awt.Font;
  194.18  import javax.swing.UIDefaults;
   195.1 --- a/src/share/demo/jfc/Metalworks/GreenMetalTheme.java	Mon Aug 29 17:09:35 2011 -0700
   195.2 +++ b/src/share/demo/jfc/Metalworks/GreenMetalTheme.java	Wed Aug 31 09:56:44 2011 -0700
   195.3 @@ -29,6 +29,15 @@
   195.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   195.5   */
   195.6  
   195.7 +/*
   195.8 + * This source code is provided to illustrate the usage of a given feature
   195.9 + * or technique and has been deliberately simplified. Additional steps
  195.10 + * required for a production-quality application, such as security checks,
  195.11 + * input validation and proper error handling, might not be present in
  195.12 + * this sample code.
  195.13 + */
  195.14 +
  195.15 +
  195.16  
  195.17  import javax.swing.plaf.ColorUIResource;
  195.18  import javax.swing.plaf.metal.DefaultMetalTheme;
   196.1 --- a/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java	Mon Aug 29 17:09:35 2011 -0700
   196.2 +++ b/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java	Wed Aug 31 09:56:44 2011 -0700
   196.3 @@ -29,6 +29,15 @@
   196.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   196.5   */
   196.6  
   196.7 +/*
   196.8 + * This source code is provided to illustrate the usage of a given feature
   196.9 + * or technique and has been deliberately simplified. Additional steps
  196.10 + * required for a production-quality application, such as security checks,
  196.11 + * input validation and proper error handling, might not be present in
  196.12 + * this sample code.
  196.13 + */
  196.14 +
  196.15 +
  196.16  
  196.17  import javax.swing.plaf.ColorUIResource;
  196.18  import javax.swing.plaf.metal.DefaultMetalTheme;
   197.1 --- a/src/share/demo/jfc/Metalworks/MetalThemeMenu.java	Mon Aug 29 17:09:35 2011 -0700
   197.2 +++ b/src/share/demo/jfc/Metalworks/MetalThemeMenu.java	Wed Aug 31 09:56:44 2011 -0700
   197.3 @@ -29,6 +29,15 @@
   197.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   197.5   */
   197.6  
   197.7 +/*
   197.8 + * This source code is provided to illustrate the usage of a given feature
   197.9 + * or technique and has been deliberately simplified. Additional steps
  197.10 + * required for a production-quality application, such as security checks,
  197.11 + * input validation and proper error handling, might not be present in
  197.12 + * this sample code.
  197.13 + */
  197.14 +
  197.15 +
  197.16  
  197.17  import java.awt.event.ActionEvent;
  197.18  import java.awt.event.ActionListener;
   198.1 --- a/src/share/demo/jfc/Metalworks/Metalworks.java	Mon Aug 29 17:09:35 2011 -0700
   198.2 +++ b/src/share/demo/jfc/Metalworks/Metalworks.java	Wed Aug 31 09:56:44 2011 -0700
   198.3 @@ -29,6 +29,15 @@
   198.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   198.5   */
   198.6  
   198.7 +/*
   198.8 + * This source code is provided to illustrate the usage of a given feature
   198.9 + * or technique and has been deliberately simplified. Additional steps
  198.10 + * required for a production-quality application, such as security checks,
  198.11 + * input validation and proper error handling, might not be present in
  198.12 + * this sample code.
  198.13 + */
  198.14 +
  198.15 +
  198.16  
  198.17  import java.awt.Toolkit;
  198.18  import javax.swing.JDialog;
   199.1 --- a/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java	Mon Aug 29 17:09:35 2011 -0700
   199.2 +++ b/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java	Wed Aug 31 09:56:44 2011 -0700
   199.3 @@ -29,6 +29,15 @@
   199.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   199.5   */
   199.6  
   199.7 +/*
   199.8 + * This source code is provided to illustrate the usage of a given feature
   199.9 + * or technique and has been deliberately simplified. Additional steps
  199.10 + * required for a production-quality application, such as security checks,
  199.11 + * input validation and proper error handling, might not be present in
  199.12 + * this sample code.
  199.13 + */
  199.14 +
  199.15 +
  199.16  
  199.17  import java.awt.BorderLayout;
  199.18  import java.awt.Component;
   200.1 --- a/src/share/demo/jfc/Metalworks/MetalworksFrame.java	Mon Aug 29 17:09:35 2011 -0700
   200.2 +++ b/src/share/demo/jfc/Metalworks/MetalworksFrame.java	Wed Aug 31 09:56:44 2011 -0700
   200.3 @@ -29,6 +29,15 @@
   200.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   200.5   */
   200.6  
   200.7 +/*
   200.8 + * This source code is provided to illustrate the usage of a given feature
   200.9 + * or technique and has been deliberately simplified. Additional steps
  200.10 + * required for a production-quality application, such as security checks,
  200.11 + * input validation and proper error handling, might not be present in
  200.12 + * this sample code.
  200.13 + */
  200.14 +
  200.15 +
  200.16  
  200.17  import java.awt.Dimension;
  200.18  import java.awt.Toolkit;
   201.1 --- a/src/share/demo/jfc/Metalworks/MetalworksHelp.java	Mon Aug 29 17:09:35 2011 -0700
   201.2 +++ b/src/share/demo/jfc/Metalworks/MetalworksHelp.java	Wed Aug 31 09:56:44 2011 -0700
   201.3 @@ -29,6 +29,15 @@
   201.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   201.5   */
   201.6  
   201.7 +/*
   201.8 + * This source code is provided to illustrate the usage of a given feature
   201.9 + * or technique and has been deliberately simplified. Additional steps
  201.10 + * required for a production-quality application, such as security checks,
  201.11 + * input validation and proper error handling, might not be present in
  201.12 + * this sample code.
  201.13 + */
  201.14 +
  201.15 +
  201.16  
  201.17  import javax.swing.*;
  201.18  import java.awt.*;
   202.1 --- a/src/share/demo/jfc/Metalworks/MetalworksInBox.java	Mon Aug 29 17:09:35 2011 -0700
   202.2 +++ b/src/share/demo/jfc/Metalworks/MetalworksInBox.java	Wed Aug 31 09:56:44 2011 -0700
   202.3 @@ -29,6 +29,15 @@
   202.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   202.5   */
   202.6  
   202.7 +/*
   202.8 + * This source code is provided to illustrate the usage of a given feature
   202.9 + * or technique and has been deliberately simplified. Additional steps
  202.10 + * required for a production-quality application, such as security checks,
  202.11 + * input validation and proper error handling, might not be present in
  202.12 + * this sample code.
  202.13 + */
  202.14 +
  202.15 +
  202.16  
  202.17  import javax.swing.JInternalFrame;
  202.18  import javax.swing.JScrollPane;
   203.1 --- a/src/share/demo/jfc/Metalworks/MetalworksPrefs.java	Mon Aug 29 17:09:35 2011 -0700
   203.2 +++ b/src/share/demo/jfc/Metalworks/MetalworksPrefs.java	Wed Aug 31 09:56:44 2011 -0700
   203.3 @@ -29,6 +29,15 @@
   203.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   203.5   */
   203.6  
   203.7 +/*
   203.8 + * This source code is provided to illustrate the usage of a given feature
   203.9 + * or technique and has been deliberately simplified. Additional steps
  203.10 + * required for a production-quality application, such as security checks,
  203.11 + * input validation and proper error handling, might not be present in
  203.12 + * this sample code.
  203.13 + */
  203.14 +
  203.15 +
  203.16  
  203.17  import java.awt.BorderLayout;
  203.18  import java.awt.Component;
   204.1 --- a/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java	Mon Aug 29 17:09:35 2011 -0700
   204.2 +++ b/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java	Wed Aug 31 09:56:44 2011 -0700
   204.3 @@ -29,6 +29,15 @@
   204.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   204.5   */
   204.6  
   204.7 +/*
   204.8 + * This source code is provided to illustrate the usage of a given feature
   204.9 + * or technique and has been deliberately simplified. Additional steps
  204.10 + * required for a production-quality application, such as security checks,
  204.11 + * input validation and proper error handling, might not be present in
  204.12 + * this sample code.
  204.13 + */
  204.14 +
  204.15 +
  204.16  
  204.17  import java.io.IOException;
  204.18  import java.io.InputStream;
   205.1 --- a/src/share/demo/jfc/Metalworks/UISwitchListener.java	Mon Aug 29 17:09:35 2011 -0700
   205.2 +++ b/src/share/demo/jfc/Metalworks/UISwitchListener.java	Wed Aug 31 09:56:44 2011 -0700
   205.3 @@ -29,6 +29,15 @@
   205.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   205.5   */
   205.6  
   205.7 +/*
   205.8 + * This source code is provided to illustrate the usage of a given feature
   205.9 + * or technique and has been deliberately simplified. Additional steps
  205.10 + * required for a production-quality application, such as security checks,
  205.11 + * input validation and proper error handling, might not be present in
  205.12 + * this sample code.
  205.13 + */
  205.14 +
  205.15 +
  205.16  
  205.17  import java.beans.PropertyChangeEvent;
  205.18  import java.beans.PropertyChangeListener;
   206.1 --- a/src/share/demo/jfc/Notepad/ElementTreePanel.java	Mon Aug 29 17:09:35 2011 -0700
   206.2 +++ b/src/share/demo/jfc/Notepad/ElementTreePanel.java	Wed Aug 31 09:56:44 2011 -0700
   206.3 @@ -29,6 +29,15 @@
   206.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   206.5   */
   206.6  
   206.7 +/*
   206.8 + * This source code is provided to illustrate the usage of a given feature
   206.9 + * or technique and has been deliberately simplified. Additional steps
  206.10 + * required for a production-quality application, such as security checks,
  206.11 + * input validation and proper error handling, might not be present in
  206.12 + * this sample code.
  206.13 + */
  206.14 +
  206.15 +
  206.16  
  206.17  import java.awt.BorderLayout;
  206.18  import java.awt.Dimension;
   207.1 --- a/src/share/demo/jfc/Notepad/Notepad.java	Mon Aug 29 17:09:35 2011 -0700
   207.2 +++ b/src/share/demo/jfc/Notepad/Notepad.java	Wed Aug 31 09:56:44 2011 -0700
   207.3 @@ -29,6 +29,15 @@
   207.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   207.5   */
   207.6  
   207.7 +/*
   207.8 + * This source code is provided to illustrate the usage of a given feature
   207.9 + * or technique and has been deliberately simplified. Additional steps
  207.10 + * required for a production-quality application, such as security checks,
  207.11 + * input validation and proper error handling, might not be present in
  207.12 + * this sample code.
  207.13 + */
  207.14 +
  207.15 +
  207.16  
  207.17  import java.awt.BorderLayout;
  207.18  import java.awt.Color;
   208.1 --- a/src/share/demo/jfc/SampleTree/DynamicTreeNode.java	Mon Aug 29 17:09:35 2011 -0700
   208.2 +++ b/src/share/demo/jfc/SampleTree/DynamicTreeNode.java	Wed Aug 31 09:56:44 2011 -0700
   208.3 @@ -29,6 +29,15 @@
   208.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   208.5   */
   208.6  
   208.7 +/*
   208.8 + * This source code is provided to illustrate the usage of a given feature
   208.9 + * or technique and has been deliberately simplified. Additional steps
  208.10 + * required for a production-quality application, such as security checks,
  208.11 + * input validation and proper error handling, might not be present in
  208.12 + * this sample code.
  208.13 + */
  208.14 +
  208.15 +
  208.16  
  208.17  import java.awt.Color;
  208.18  import java.awt.Font;
   209.1 --- a/src/share/demo/jfc/SampleTree/SampleData.java	Mon Aug 29 17:09:35 2011 -0700
   209.2 +++ b/src/share/demo/jfc/SampleTree/SampleData.java	Wed Aug 31 09:56:44 2011 -0700
   209.3 @@ -29,6 +29,15 @@
   209.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   209.5   */
   209.6  
   209.7 +/*
   209.8 + * This source code is provided to illustrate the usage of a given feature
   209.9 + * or technique and has been deliberately simplified. Additional steps
  209.10 + * required for a production-quality application, such as security checks,
  209.11 + * input validation and proper error handling, might not be present in
  209.12 + * this sample code.
  209.13 + */
  209.14 +
  209.15 +
  209.16  
  209.17  import java.awt.Color;
  209.18  import java.awt.Font;
   210.1 --- a/src/share/demo/jfc/SampleTree/SampleTree.java	Mon Aug 29 17:09:35 2011 -0700
   210.2 +++ b/src/share/demo/jfc/SampleTree/SampleTree.java	Wed Aug 31 09:56:44 2011 -0700
   210.3 @@ -29,6 +29,15 @@
   210.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   210.5   */
   210.6  
   210.7 +/*
   210.8 + * This source code is provided to illustrate the usage of a given feature
   210.9 + * or technique and has been deliberately simplified. Additional steps
  210.10 + * required for a production-quality application, such as security checks,
  210.11 + * input validation and proper error handling, might not be present in
  210.12 + * this sample code.
  210.13 + */
  210.14 +
  210.15 +
  210.16  
  210.17  import java.lang.reflect.InvocationTargetException;
  210.18  import java.util.logging.Level;
   211.1 --- a/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java	Mon Aug 29 17:09:35 2011 -0700
   211.2 +++ b/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java	Wed Aug 31 09:56:44 2011 -0700
   211.3 @@ -29,6 +29,15 @@
   211.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   211.5   */
   211.6  
   211.7 +/*
   211.8 + * This source code is provided to illustrate the usage of a given feature
   211.9 + * or technique and has been deliberately simplified. Additional steps
  211.10 + * required for a production-quality application, such as security checks,
  211.11 + * input validation and proper error handling, might not be present in
  211.12 + * this sample code.
  211.13 + */
  211.14 +
  211.15 +
  211.16  
  211.17  import javax.swing.Icon;
  211.18  import javax.swing.ImageIcon;
   212.1 --- a/src/share/demo/jfc/SampleTree/SampleTreeModel.java	Mon Aug 29 17:09:35 2011 -0700
   212.2 +++ b/src/share/demo/jfc/SampleTree/SampleTreeModel.java	Wed Aug 31 09:56:44 2011 -0700
   212.3 @@ -29,6 +29,15 @@
   212.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   212.5   */
   212.6  
   212.7 +/*
   212.8 + * This source code is provided to illustrate the usage of a given feature
   212.9 + * or technique and has been deliberately simplified. Additional steps
  212.10 + * required for a production-quality application, such as security checks,
  212.11 + * input validation and proper error handling, might not be present in
  212.12 + * this sample code.
  212.13 + */
  212.14 +
  212.15 +
  212.16  
  212.17  import javax.swing.tree.DefaultTreeModel;
  212.18  import javax.swing.tree.TreeNode;
   213.1 --- a/src/share/demo/jfc/SwingApplet/SwingApplet.java	Mon Aug 29 17:09:35 2011 -0700
   213.2 +++ b/src/share/demo/jfc/SwingApplet/SwingApplet.java	Wed Aug 31 09:56:44 2011 -0700
   213.3 @@ -29,6 +29,15 @@
   213.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   213.5   */
   213.6  
   213.7 +/*
   213.8 + * This source code is provided to illustrate the usage of a given feature
   213.9 + * or technique and has been deliberately simplified. Additional steps
  213.10 + * required for a production-quality application, such as security checks,
  213.11 + * input validation and proper error handling, might not be present in
  213.12 + * this sample code.
  213.13 + */
  213.14 +
  213.15 +
  213.16  
  213.17  import java.awt.FlowLayout;
  213.18  import java.lang.reflect.InvocationTargetException;
   214.1 --- a/src/share/demo/jfc/TableExample/JDBCAdapter.java	Mon Aug 29 17:09:35 2011 -0700
   214.2 +++ b/src/share/demo/jfc/TableExample/JDBCAdapter.java	Wed Aug 31 09:56:44 2011 -0700
   214.3 @@ -29,6 +29,15 @@
   214.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   214.5   */
   214.6  
   214.7 +/*
   214.8 + * This source code is provided to illustrate the usage of a given feature
   214.9 + * or technique and has been deliberately simplified. Additional steps
  214.10 + * required for a production-quality application, such as security checks,
  214.11 + * input validation and proper error handling, might not be present in
  214.12 + * this sample code.
  214.13 + */
  214.14 +
  214.15 +
  214.16  
  214.17  import java.sql.Connection;
  214.18  import java.sql.DriverManager;
   215.1 --- a/src/share/demo/jfc/TableExample/OldJTable.java	Mon Aug 29 17:09:35 2011 -0700
   215.2 +++ b/src/share/demo/jfc/TableExample/OldJTable.java	Wed Aug 31 09:56:44 2011 -0700
   215.3 @@ -29,6 +29,15 @@
   215.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   215.5   */
   215.6  
   215.7 +/*
   215.8 + * This source code is provided to illustrate the usage of a given feature
   215.9 + * or technique and has been deliberately simplified. Additional steps
  215.10 + * required for a production-quality application, such as security checks,
  215.11 + * input validation and proper error handling, might not be present in
  215.12 + * this sample code.
  215.13 + */
  215.14 +
  215.15 +
  215.16  
  215.17  import java.util.EventObject;
  215.18  import java.util.List;
   216.1 --- a/src/share/demo/jfc/TableExample/TableExample.java	Mon Aug 29 17:09:35 2011 -0700
   216.2 +++ b/src/share/demo/jfc/TableExample/TableExample.java	Wed Aug 31 09:56:44 2011 -0700
   216.3 @@ -29,6 +29,15 @@
   216.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   216.5   */
   216.6  
   216.7 +/*
   216.8 + * This source code is provided to illustrate the usage of a given feature
   216.9 + * or technique and has been deliberately simplified. Additional steps
  216.10 + * required for a production-quality application, such as security checks,
  216.11 + * input validation and proper error handling, might not be present in
  216.12 + * this sample code.
  216.13 + */
  216.14 +
  216.15 +
  216.16  
  216.17  /**
  216.18   * A a UI around the JDBCAdaptor, allowing database data to be interactively
   217.1 --- a/src/share/demo/jfc/TableExample/TableExample2.java	Mon Aug 29 17:09:35 2011 -0700
   217.2 +++ b/src/share/demo/jfc/TableExample/TableExample2.java	Wed Aug 31 09:56:44 2011 -0700
   217.3 @@ -29,6 +29,15 @@
   217.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   217.5   */
   217.6  
   217.7 +/*
   217.8 + * This source code is provided to illustrate the usage of a given feature
   217.9 + * or technique and has been deliberately simplified. Additional steps
  217.10 + * required for a production-quality application, such as security checks,
  217.11 + * input validation and proper error handling, might not be present in
  217.12 + * this sample code.
  217.13 + */
  217.14 +
  217.15 +
  217.16  
  217.17  import java.awt.event.WindowAdapter;
  217.18  import java.awt.event.WindowEvent;
   218.1 --- a/src/share/demo/jfc/TableExample/TableExample3.java	Mon Aug 29 17:09:35 2011 -0700
   218.2 +++ b/src/share/demo/jfc/TableExample/TableExample3.java	Wed Aug 31 09:56:44 2011 -0700
   218.3 @@ -29,6 +29,15 @@
   218.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   218.5   */
   218.6  
   218.7 +/*
   218.8 + * This source code is provided to illustrate the usage of a given feature
   218.9 + * or technique and has been deliberately simplified. Additional steps
  218.10 + * required for a production-quality application, such as security checks,
  218.11 + * input validation and proper error handling, might not be present in
  218.12 + * this sample code.
  218.13 + */
  218.14 +
  218.15 +
  218.16  
  218.17  import javax.swing.*;
  218.18  import javax.swing.table.*;
   219.1 --- a/src/share/demo/jfc/TableExample/TableExample4.java	Mon Aug 29 17:09:35 2011 -0700
   219.2 +++ b/src/share/demo/jfc/TableExample/TableExample4.java	Wed Aug 31 09:56:44 2011 -0700
   219.3 @@ -29,6 +29,15 @@
   219.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   219.5   */
   219.6  
   219.7 +/*
   219.8 + * This source code is provided to illustrate the usage of a given feature
   219.9 + * or technique and has been deliberately simplified. Additional steps
  219.10 + * required for a production-quality application, such as security checks,
  219.11 + * input validation and proper error handling, might not be present in
  219.12 + * this sample code.
  219.13 + */
  219.14 +
  219.15 +
  219.16  
  219.17  import javax.swing.*;
  219.18  import javax.swing.table.*;
   220.1 --- a/src/share/demo/jfc/TableExample/TableMap.java	Mon Aug 29 17:09:35 2011 -0700
   220.2 +++ b/src/share/demo/jfc/TableExample/TableMap.java	Wed Aug 31 09:56:44 2011 -0700
   220.3 @@ -29,6 +29,15 @@
   220.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   220.5   */
   220.6  
   220.7 +/*
   220.8 + * This source code is provided to illustrate the usage of a given feature
   220.9 + * or technique and has been deliberately simplified. Additional steps
  220.10 + * required for a production-quality application, such as security checks,
  220.11 + * input validation and proper error handling, might not be present in
  220.12 + * this sample code.
  220.13 + */
  220.14 +
  220.15 +
  220.16  
  220.17  /**
  220.18   * In a chain of data manipulators some behaviour is common. TableMap
   221.1 --- a/src/share/demo/jfc/TableExample/TableSorter.java	Mon Aug 29 17:09:35 2011 -0700
   221.2 +++ b/src/share/demo/jfc/TableExample/TableSorter.java	Wed Aug 31 09:56:44 2011 -0700
   221.3 @@ -29,6 +29,15 @@
   221.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   221.5   */
   221.6  
   221.7 +/*
   221.8 + * This source code is provided to illustrate the usage of a given feature
   221.9 + * or technique and has been deliberately simplified. Additional steps
  221.10 + * required for a production-quality application, such as security checks,
  221.11 + * input validation and proper error handling, might not be present in
  221.12 + * this sample code.
  221.13 + */
  221.14 +
  221.15 +
  221.16  
  221.17  import javax.swing.table.TableModel;
  221.18  import javax.swing.event.TableModelEvent;
   222.1 --- a/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java	Mon Aug 29 17:09:35 2011 -0700
   222.2 +++ b/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java	Wed Aug 31 09:56:44 2011 -0700
   222.3 @@ -28,6 +28,15 @@
   222.4   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   222.5   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   222.6   */
   222.7 +
   222.8 +/*
   222.9 + * This source code is provided to illustrate the usage of a given feature
  222.10 + * or technique and has been deliberately simplified. Additional steps
  222.11 + * required for a production-quality application, such as security checks,
  222.12 + * input validation and proper error handling, might not be present in
  222.13 + * this sample code.
  222.14 + */
  222.15 +
  222.16  package transparentruler;
  222.17  
  222.18  
   223.1 --- a/src/share/demo/jvmti/agent_util/agent_util.c	Mon Aug 29 17:09:35 2011 -0700
   223.2 +++ b/src/share/demo/jvmti/agent_util/agent_util.c	Wed Aug 31 09:56:44 2011 -0700
   223.3 @@ -29,6 +29,15 @@
   223.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   223.5   */
   223.6  
   223.7 +/*
   223.8 + * This source code is provided to illustrate the usage of a given feature
   223.9 + * or technique and has been deliberately simplified. Additional steps
  223.10 + * required for a production-quality application, such as security checks,
  223.11 + * input validation and proper error handling, might not be present in
  223.12 + * this sample code.
  223.13 + */
  223.14 +
  223.15 +
  223.16  #include <agent_util.h>
  223.17  
  223.18  /* ------------------------------------------------------------------- */
   224.1 --- a/src/share/demo/jvmti/agent_util/agent_util.h	Mon Aug 29 17:09:35 2011 -0700
   224.2 +++ b/src/share/demo/jvmti/agent_util/agent_util.h	Wed Aug 31 09:56:44 2011 -0700
   224.3 @@ -29,6 +29,15 @@
   224.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   224.5   */
   224.6  
   224.7 +/*
   224.8 + * This source code is provided to illustrate the usage of a given feature
   224.9 + * or technique and has been deliberately simplified. Additional steps
  224.10 + * required for a production-quality application, such as security checks,
  224.11 + * input validation and proper error handling, might not be present in
  224.12 + * this sample code.
  224.13 + */
  224.14 +
  224.15 +
  224.16  #ifndef AGENT_UTIL_H
  224.17  #define AGENT_UTIL_H
  224.18  
   225.1 --- a/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c	Mon Aug 29 17:09:35 2011 -0700
   225.2 +++ b/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c	Wed Aug 31 09:56:44 2011 -0700
   225.3 @@ -29,6 +29,15 @@
   225.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   225.5   */
   225.6  
   225.7 +/*
   225.8 + * This source code is provided to illustrate the usage of a given feature
   225.9 + * or technique and has been deliberately simplified. Additional steps
  225.10 + * required for a production-quality application, such as security checks,
  225.11 + * input validation and proper error handling, might not be present in
  225.12 + * this sample code.
  225.13 + */
  225.14 +
  225.15 +
  225.16  #include <stdio.h>
  225.17  #include <stdlib.h>
  225.18  #include <string.h>
   226.1 --- a/src/share/demo/jvmti/gctest/gctest.c	Mon Aug 29 17:09:35 2011 -0700
   226.2 +++ b/src/share/demo/jvmti/gctest/gctest.c	Wed Aug 31 09:56:44 2011 -0700
   226.3 @@ -29,6 +29,15 @@
   226.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   226.5   */
   226.6  
   226.7 +/*
   226.8 + * This source code is provided to illustrate the usage of a given feature
   226.9 + * or technique and has been deliberately simplified. Additional steps
  226.10 + * required for a production-quality application, such as security checks,
  226.11 + * input validation and proper error handling, might not be present in
  226.12 + * this sample code.
  226.13 + */
  226.14 +
  226.15 +
  226.16  /* Example of using JVMTI_EVENT_GARBAGE_COLLECTION_START and
  226.17   *                  JVMTI_EVENT_GARBAGE_COLLECTION_FINISH events.
  226.18   */
   227.1 --- a/src/share/demo/jvmti/heapTracker/HeapTracker.java	Mon Aug 29 17:09:35 2011 -0700
   227.2 +++ b/src/share/demo/jvmti/heapTracker/HeapTracker.java	Wed Aug 31 09:56:44 2011 -0700
   227.3 @@ -29,6 +29,15 @@
   227.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   227.5   */
   227.6  
   227.7 +/*
   227.8 + * This source code is provided to illustrate the usage of a given feature
   227.9 + * or technique and has been deliberately simplified. Additional steps
  227.10 + * required for a production-quality application, such as security checks,
  227.11 + * input validation and proper error handling, might not be present in
  227.12 + * this sample code.
  227.13 + */
  227.14 +
  227.15 +
  227.16  
  227.17  /* Java class to hold static methods which will be called in byte code
  227.18   *    injections of all class files.
   228.1 --- a/src/share/demo/jvmti/heapTracker/heapTracker.c	Mon Aug 29 17:09:35 2011 -0700
   228.2 +++ b/src/share/demo/jvmti/heapTracker/heapTracker.c	Wed Aug 31 09:56:44 2011 -0700
   228.3 @@ -29,6 +29,15 @@
   228.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   228.5   */
   228.6  
   228.7 +/*
   228.8 + * This source code is provided to illustrate the usage of a given feature
   228.9 + * or technique and has been deliberately simplified. Additional steps
  228.10 + * required for a production-quality application, such as security checks,
  228.11 + * input validation and proper error handling, might not be present in
  228.12 + * this sample code.
  228.13 + */
  228.14 +
  228.15 +
  228.16  #include "stdlib.h"
  228.17  
  228.18  #include "heapTracker.h"
   229.1 --- a/src/share/demo/jvmti/heapTracker/heapTracker.h	Mon Aug 29 17:09:35 2011 -0700
   229.2 +++ b/src/share/demo/jvmti/heapTracker/heapTracker.h	Wed Aug 31 09:56:44 2011 -0700
   229.3 @@ -29,6 +29,15 @@
   229.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   229.5   */
   229.6  
   229.7 +/*
   229.8 + * This source code is provided to illustrate the usage of a given feature
   229.9 + * or technique and has been deliberately simplified. Additional steps
  229.10 + * required for a production-quality application, such as security checks,
  229.11 + * input validation and proper error handling, might not be present in
  229.12 + * this sample code.
  229.13 + */
  229.14 +
  229.15 +
  229.16  /* Primary heapTracker #include file, should be included by most if not
  229.17   *    all heapTracker source files. Gives access to the global data structure
  229.18   *    and all global macros.
   230.1 --- a/src/share/demo/jvmti/heapViewer/heapViewer.c	Mon Aug 29 17:09:35 2011 -0700
   230.2 +++ b/src/share/demo/jvmti/heapViewer/heapViewer.c	Wed Aug 31 09:56:44 2011 -0700
   230.3 @@ -29,6 +29,15 @@
   230.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   230.5   */
   230.6  
   230.7 +/*
   230.8 + * This source code is provided to illustrate the usage of a given feature
   230.9 + * or technique and has been deliberately simplified. Additional steps
  230.10 + * required for a production-quality application, such as security checks,
  230.11 + * input validation and proper error handling, might not be present in
  230.12 + * this sample code.
  230.13 + */
  230.14 +
  230.15 +
  230.16  #include <stdio.h>
  230.17  #include <stddef.h>
  230.18  #include <stdlib.h>
   231.1 --- a/src/share/demo/jvmti/hprof/debug_malloc.c	Mon Aug 29 17:09:35 2011 -0700
   231.2 +++ b/src/share/demo/jvmti/hprof/debug_malloc.c	Wed Aug 31 09:56:44 2011 -0700
   231.3 @@ -29,6 +29,15 @@
   231.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   231.5   */
   231.6  
   231.7 +/*
   231.8 + * This source code is provided to illustrate the usage of a given feature
   231.9 + * or technique and has been deliberately simplified. Additional steps
  231.10 + * required for a production-quality application, such as security checks,
  231.11 + * input validation and proper error handling, might not be present in
  231.12 + * this sample code.
  231.13 + */
  231.14 +
  231.15 +
  231.16  /* **************************************************************************
  231.17   *
  231.18   * Set of malloc/realloc/calloc/strdup/free replacement macros that
   232.1 --- a/src/share/demo/jvmti/hprof/debug_malloc.h	Mon Aug 29 17:09:35 2011 -0700
   232.2 +++ b/src/share/demo/jvmti/hprof/debug_malloc.h	Wed Aug 31 09:56:44 2011 -0700
   232.3 @@ -29,6 +29,15 @@
   232.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   232.5   */
   232.6  
   232.7 +/*
   232.8 + * This source code is provided to illustrate the usage of a given feature
   232.9 + * or technique and has been deliberately simplified. Additional steps
  232.10 + * required for a production-quality application, such as security checks,
  232.11 + * input validation and proper error handling, might not be present in
  232.12 + * this sample code.
  232.13 + */
  232.14 +
  232.15 +
  232.16  /* ***********************************************************************
  232.17   *
  232.18   * The source file debug_malloc.c should be included with your sources.
   233.1 --- a/src/share/demo/jvmti/hprof/hprof.h	Mon Aug 29 17:09:35 2011 -0700
   233.2 +++ b/src/share/demo/jvmti/hprof/hprof.h	Wed Aug 31 09:56:44 2011 -0700
   233.3 @@ -29,6 +29,15 @@
   233.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   233.5   */
   233.6  
   233.7 +/*
   233.8 + * This source code is provided to illustrate the usage of a given feature
   233.9 + * or technique and has been deliberately simplified. Additional steps
  233.10 + * required for a production-quality application, such as security checks,
  233.11 + * input validation and proper error handling, might not be present in
  233.12 + * this sample code.
  233.13 + */
  233.14 +
  233.15 +
  233.16  /* Primary hprof #include file, should be included by most if not
  233.17   *    all hprof source files. Gives access to the global data structure
  233.18   *    and all global macros, and everything declared in the #include
   234.1 --- a/src/share/demo/jvmti/hprof/hprof_blocks.c	Mon Aug 29 17:09:35 2011 -0700
   234.2 +++ b/src/share/demo/jvmti/hprof/hprof_blocks.c	Wed Aug 31 09:56:44 2011 -0700
   234.3 @@ -29,6 +29,15 @@
   234.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   234.5   */
   234.6  
   234.7 +/*
   234.8 + * This source code is provided to illustrate the usage of a given feature
   234.9 + * or technique and has been deliberately simplified. Additional steps
  234.10 + * required for a production-quality application, such as security checks,
  234.11 + * input validation and proper error handling, might not be present in
  234.12 + * this sample code.
  234.13 + */
  234.14 +
  234.15 +
  234.16  /* Allocations from large blocks, no individual free's */
  234.17  
  234.18  #include "hprof.h"
   235.1 --- a/src/share/demo/jvmti/hprof/hprof_blocks.h	Mon Aug 29 17:09:35 2011 -0700
   235.2 +++ b/src/share/demo/jvmti/hprof/hprof_blocks.h	Wed Aug 31 09:56:44 2011 -0700
   235.3 @@ -29,6 +29,15 @@
   235.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   235.5   */
   235.6  
   235.7 +/*
   235.8 + * This source code is provided to illustrate the usage of a given feature
   235.9 + * or technique and has been deliberately simplified. Additional steps
  235.10 + * required for a production-quality application, such as security checks,
  235.11 + * input validation and proper error handling, might not be present in
  235.12 + * this sample code.
  235.13 + */
  235.14 +
  235.15 +
  235.16  #ifndef HPROF_BLOCKS_H
  235.17  #define HPROF_BLOCKS_H
  235.18  
   236.1 --- a/src/share/demo/jvmti/hprof/hprof_check.c	Mon Aug 29 17:09:35 2011 -0700
   236.2 +++ b/src/share/demo/jvmti/hprof/hprof_check.c	Wed Aug 31 09:56:44 2011 -0700
   236.3 @@ -29,6 +29,15 @@
   236.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   236.5   */
   236.6  
   236.7 +/*
   236.8 + * This source code is provided to illustrate the usage of a given feature
   236.9 + * or technique and has been deliberately simplified. Additional steps
  236.10 + * required for a production-quality application, such as security checks,
  236.11 + * input validation and proper error handling, might not be present in
  236.12 + * this sample code.
  236.13 + */
  236.14 +
  236.15 +
  236.16  /* Functionality for checking hprof format=b output. */
  236.17  
  236.18  /* ONLY used with logflags=4. */
   237.1 --- a/src/share/demo/jvmti/hprof/hprof_check.h	Mon Aug 29 17:09:35 2011 -0700
   237.2 +++ b/src/share/demo/jvmti/hprof/hprof_check.h	Wed Aug 31 09:56:44 2011 -0700
   237.3 @@ -29,6 +29,15 @@
   237.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   237.5   */
   237.6  
   237.7 +/*
   237.8 + * This source code is provided to illustrate the usage of a given feature
   237.9 + * or technique and has been deliberately simplified. Additional steps
  237.10 + * required for a production-quality application, such as security checks,
  237.11 + * input validation and proper error handling, might not be present in
  237.12 + * this sample code.
  237.13 + */
  237.14 +
  237.15 +
  237.16  #ifndef HPROF_CHECK_H
  237.17  #define HPROF_CHECK_H
  237.18  
   238.1 --- a/src/share/demo/jvmti/hprof/hprof_class.c	Mon Aug 29 17:09:35 2011 -0700
   238.2 +++ b/src/share/demo/jvmti/hprof/hprof_class.c	Wed Aug 31 09:56:44 2011 -0700
   238.3 @@ -29,6 +29,15 @@
   238.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   238.5   */
   238.6  
   238.7 +/*
   238.8 + * This source code is provided to illustrate the usage of a given feature
   238.9 + * or technique and has been deliberately simplified. Additional steps
  238.10 + * required for a production-quality application, such as security checks,
  238.11 + * input validation and proper error handling, might not be present in
  238.12 + * this sample code.
  238.13 + */
  238.14 +
  238.15 +
  238.16  /* Table of class information.
  238.17   *
  238.18   *   Each element in this table is identified with a ClassIndex.
   239.1 --- a/src/share/demo/jvmti/hprof/hprof_class.h	Mon Aug 29 17:09:35 2011 -0700
   239.2 +++ b/src/share/demo/jvmti/hprof/hprof_class.h	Wed Aug 31 09:56:44 2011 -0700
   239.3 @@ -29,6 +29,15 @@
   239.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   239.5   */
   239.6  
   239.7 +/*
   239.8 + * This source code is provided to illustrate the usage of a given feature
   239.9 + * or technique and has been deliberately simplified. Additional steps
  239.10 + * required for a production-quality application, such as security checks,
  239.11 + * input validation and proper error handling, might not be present in
  239.12 + * this sample code.
  239.13 + */
  239.14 +
  239.15 +
  239.16  #ifndef HPROF_CLASS_H
  239.17  #define HPROF_CLASS_H
  239.18  
   240.1 --- a/src/share/demo/jvmti/hprof/hprof_cpu.c	Mon Aug 29 17:09:35 2011 -0700
   240.2 +++ b/src/share/demo/jvmti/hprof/hprof_cpu.c	Wed Aug 31 09:56:44 2011 -0700
   240.3 @@ -29,6 +29,15 @@
   240.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   240.5   */
   240.6  
   240.7 +/*
   240.8 + * This source code is provided to illustrate the usage of a given feature
   240.9 + * or technique and has been deliberately simplified. Additional steps
  240.10 + * required for a production-quality application, such as security checks,
  240.11 + * input validation and proper error handling, might not be present in
  240.12 + * this sample code.
  240.13 + */
  240.14 +
  240.15 +
  240.16  #include "hprof.h"
  240.17  
  240.18  /* This file contains the cpu loop for the option cpu=samples */
   241.1 --- a/src/share/demo/jvmti/hprof/hprof_cpu.h	Mon Aug 29 17:09:35 2011 -0700
   241.2 +++ b/src/share/demo/jvmti/hprof/hprof_cpu.h	Wed Aug 31 09:56:44 2011 -0700
   241.3 @@ -29,6 +29,15 @@
   241.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   241.5   */
   241.6  
   241.7 +/*
   241.8 + * This source code is provided to illustrate the usage of a given feature
   241.9 + * or technique and has been deliberately simplified. Additional steps
  241.10 + * required for a production-quality application, such as security checks,
  241.11 + * input validation and proper error handling, might not be present in
  241.12 + * this sample code.
  241.13 + */
  241.14 +
  241.15 +
  241.16  #ifndef HPROF_CPU_H
  241.17  #define HPROF_CPU_H
  241.18  
   242.1 --- a/src/share/demo/jvmti/hprof/hprof_error.c	Mon Aug 29 17:09:35 2011 -0700
   242.2 +++ b/src/share/demo/jvmti/hprof/hprof_error.c	Wed Aug 31 09:56:44 2011 -0700
   242.3 @@ -29,6 +29,15 @@
   242.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   242.5   */
   242.6  
   242.7 +/*
   242.8 + * This source code is provided to illustrate the usage of a given feature
   242.9 + * or technique and has been deliberately simplified. Additional steps
  242.10 + * required for a production-quality application, such as security checks,
  242.11 + * input validation and proper error handling, might not be present in
  242.12 + * this sample code.
  242.13 + */
  242.14 +
  242.15 +
  242.16  #include "hprof.h"
  242.17  
  242.18  /* The error handling logic. */
   243.1 --- a/src/share/demo/jvmti/hprof/hprof_error.h	Mon Aug 29 17:09:35 2011 -0700
   243.2 +++ b/src/share/demo/jvmti/hprof/hprof_error.h	Wed Aug 31 09:56:44 2011 -0700
   243.3 @@ -29,6 +29,15 @@
   243.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   243.5   */
   243.6  
   243.7 +/*
   243.8 + * This source code is provided to illustrate the usage of a given feature
   243.9 + * or technique and has been deliberately simplified. Additional steps
  243.10 + * required for a production-quality application, such as security checks,
  243.11 + * input validation and proper error handling, might not be present in
  243.12 + * this sample code.
  243.13 + */
  243.14 +
  243.15 +
  243.16  #ifndef HPROF_ERROR_H
  243.17  #define HPROF_ERROR_H
  243.18  
   244.1 --- a/src/share/demo/jvmti/hprof/hprof_event.c	Mon Aug 29 17:09:35 2011 -0700
   244.2 +++ b/src/share/demo/jvmti/hprof/hprof_event.c	Wed Aug 31 09:56:44 2011 -0700
   244.3 @@ -29,6 +29,15 @@
   244.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   244.5   */
   244.6  
   244.7 +/*
   244.8 + * This source code is provided to illustrate the usage of a given feature
   244.9 + * or technique and has been deliberately simplified. Additional steps
  244.10 + * required for a production-quality application, such as security checks,
  244.11 + * input validation and proper error handling, might not be present in
  244.12 + * this sample code.
  244.13 + */
  244.14 +
  244.15 +
  244.16  /* This file contains all class, method and allocation event support functions,
  244.17   *   both JVMTI and BCI events.
  244.18   *   (See hprof_monitor.c for the monitor event handlers).
   245.1 --- a/src/share/demo/jvmti/hprof/hprof_event.h	Mon Aug 29 17:09:35 2011 -0700
   245.2 +++ b/src/share/demo/jvmti/hprof/hprof_event.h	Wed Aug 31 09:56:44 2011 -0700
   245.3 @@ -29,6 +29,15 @@
   245.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   245.5   */
   245.6  
   245.7 +/*
   245.8 + * This source code is provided to illustrate the usage of a given feature
   245.9 + * or technique and has been deliberately simplified. Additional steps
  245.10 + * required for a production-quality application, such as security checks,
  245.11 + * input validation and proper error handling, might not be present in
  245.12 + * this sample code.
  245.13 + */
  245.14 +
  245.15 +
  245.16  #ifndef HPROF_EVENT_H
  245.17  #define HPROF_EVENT_H
  245.18  
   246.1 --- a/src/share/demo/jvmti/hprof/hprof_frame.c	Mon Aug 29 17:09:35 2011 -0700
   246.2 +++ b/src/share/demo/jvmti/hprof/hprof_frame.c	Wed Aug 31 09:56:44 2011 -0700
   246.3 @@ -29,6 +29,15 @@
   246.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   246.5   */
   246.6  
   246.7 +/*
   246.8 + * This source code is provided to illustrate the usage of a given feature
   246.9 + * or technique and has been deliberately simplified. Additional steps
  246.10 + * required for a production-quality application, such as security checks,
  246.11 + * input validation and proper error handling, might not be present in
  246.12 + * this sample code.
  246.13 + */
  246.14 +
  246.15 +
  246.16  /* This file contains support for handling frames, or (method,location) pairs. */
  246.17  
  246.18  #include "hprof.h"
   247.1 --- a/src/share/demo/jvmti/hprof/hprof_frame.h	Mon Aug 29 17:09:35 2011 -0700
   247.2 +++ b/src/share/demo/jvmti/hprof/hprof_frame.h	Wed Aug 31 09:56:44 2011 -0700
   247.3 @@ -29,6 +29,15 @@
   247.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   247.5   */
   247.6  
   247.7 +/*
   247.8 + * This source code is provided to illustrate the usage of a given feature
   247.9 + * or technique and has been deliberately simplified. Additional steps
  247.10 + * required for a production-quality application, such as security checks,
  247.11 + * input validation and proper error handling, might not be present in
  247.12 + * this sample code.
  247.13 + */
  247.14 +
  247.15 +
  247.16  #ifndef HPROF_FRAME_H
  247.17  #define HPROF_FRAME_H
  247.18  
   248.1 --- a/src/share/demo/jvmti/hprof/hprof_init.c	Mon Aug 29 17:09:35 2011 -0700
   248.2 +++ b/src/share/demo/jvmti/hprof/hprof_init.c	Wed Aug 31 09:56:44 2011 -0700
   248.3 @@ -29,6 +29,15 @@
   248.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   248.5   */
   248.6  
   248.7 +/*
   248.8 + * This source code is provided to illustrate the usage of a given feature
   248.9 + * or technique and has been deliberately simplified. Additional steps
  248.10 + * required for a production-quality application, such as security checks,
  248.11 + * input validation and proper error handling, might not be present in
  248.12 + * this sample code.
  248.13 + */
  248.14 +
  248.15 +
  248.16  /* Main source file, the basic JVMTI connection/startup code. */
  248.17  
  248.18  #include "hprof.h"
   249.1 --- a/src/share/demo/jvmti/hprof/hprof_init.h	Mon Aug 29 17:09:35 2011 -0700
   249.2 +++ b/src/share/demo/jvmti/hprof/hprof_init.h	Wed Aug 31 09:56:44 2011 -0700
   249.3 @@ -29,6 +29,15 @@
   249.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   249.5   */
   249.6  
   249.7 +/*
   249.8 + * This source code is provided to illustrate the usage of a given feature
   249.9 + * or technique and has been deliberately simplified. Additional steps
  249.10 + * required for a production-quality application, such as security checks,
  249.11 + * input validation and proper error handling, might not be present in
  249.12 + * this sample code.
  249.13 + */
  249.14 +
  249.15 +
  249.16  #ifndef HPROF_INIT_H
  249.17  #define HPROF_INIT_H
  249.18  
   250.1 --- a/src/share/demo/jvmti/hprof/hprof_io.c	Mon Aug 29 17:09:35 2011 -0700
   250.2 +++ b/src/share/demo/jvmti/hprof/hprof_io.c	Wed Aug 31 09:56:44 2011 -0700
   250.3 @@ -29,6 +29,15 @@
   250.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   250.5   */
   250.6  
   250.7 +/*
   250.8 + * This source code is provided to illustrate the usage of a given feature
   250.9 + * or technique and has been deliberately simplified. Additional steps
  250.10 + * required for a production-quality application, such as security checks,
  250.11 + * input validation and proper error handling, might not be present in
  250.12 + * this sample code.
  250.13 + */
  250.14 +
  250.15 +
  250.16  /* All I/O functionality for hprof. */
  250.17  
  250.18  /*
   251.1 --- a/src/share/demo/jvmti/hprof/hprof_io.h	Mon Aug 29 17:09:35 2011 -0700
   251.2 +++ b/src/share/demo/jvmti/hprof/hprof_io.h	Wed Aug 31 09:56:44 2011 -0700
   251.3 @@ -29,6 +29,15 @@
   251.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   251.5   */
   251.6  
   251.7 +/*
   251.8 + * This source code is provided to illustrate the usage of a given feature
   251.9 + * or technique and has been deliberately simplified. Additional steps
  251.10 + * required for a production-quality application, such as security checks,
  251.11 + * input validation and proper error handling, might not be present in
  251.12 + * this sample code.
  251.13 + */
  251.14 +
  251.15 +
  251.16  #ifndef HPROF_IO_H
  251.17  #define HPROF_IO_H
  251.18  
   252.1 --- a/src/share/demo/jvmti/hprof/hprof_ioname.c	Mon Aug 29 17:09:35 2011 -0700
   252.2 +++ b/src/share/demo/jvmti/hprof/hprof_ioname.c	Wed Aug 31 09:56:44 2011 -0700
   252.3 @@ -29,6 +29,15 @@
   252.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   252.5   */
   252.6  
   252.7 +/*
   252.8 + * This source code is provided to illustrate the usage of a given feature
   252.9 + * or technique and has been deliberately simplified. Additional steps
  252.10 + * required for a production-quality application, such as security checks,
  252.11 + * input validation and proper error handling, might not be present in
  252.12 + * this sample code.
  252.13 + */
  252.14 +
  252.15 +
  252.16  /* Used to store strings written out to the binary format (see hprof_io.c) */
  252.17  
  252.18  
   253.1 --- a/src/share/demo/jvmti/hprof/hprof_ioname.h	Mon Aug 29 17:09:35 2011 -0700
   253.2 +++ b/src/share/demo/jvmti/hprof/hprof_ioname.h	Wed Aug 31 09:56:44 2011 -0700
   253.3 @@ -29,6 +29,15 @@
   253.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   253.5   */
   253.6  
   253.7 +/*
   253.8 + * This source code is provided to illustrate the usage of a given feature
   253.9 + * or technique and has been deliberately simplified. Additional steps
  253.10 + * required for a production-quality application, such as security checks,
  253.11 + * input validation and proper error handling, might not be present in
  253.12 + * this sample code.
  253.13 + */
  253.14 +
  253.15 +
  253.16  #ifndef HPROF_IONAME_H
  253.17  #define HPROF_IONAME_H
  253.18  
   254.1 --- a/src/share/demo/jvmti/hprof/hprof_listener.c	Mon Aug 29 17:09:35 2011 -0700
   254.2 +++ b/src/share/demo/jvmti/hprof/hprof_listener.c	Wed Aug 31 09:56:44 2011 -0700
   254.3 @@ -29,6 +29,15 @@
   254.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   254.5   */
   254.6  
   254.7 +/*
   254.8 + * This source code is provided to illustrate the usage of a given feature
   254.9 + * or technique and has been deliberately simplified. Additional steps
  254.10 + * required for a production-quality application, such as security checks,
  254.11 + * input validation and proper error handling, might not be present in
  254.12 + * this sample code.
  254.13 + */
  254.14 +
  254.15 +
  254.16  /* The hprof listener loop thread. net=hostname:port option */
  254.17  
  254.18  /*
   255.1 --- a/src/share/demo/jvmti/hprof/hprof_listener.h	Mon Aug 29 17:09:35 2011 -0700
   255.2 +++ b/src/share/demo/jvmti/hprof/hprof_listener.h	Wed Aug 31 09:56:44 2011 -0700
   255.3 @@ -29,6 +29,15 @@
   255.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   255.5   */
   255.6  
   255.7 +/*
   255.8 + * This source code is provided to illustrate the usage of a given feature
   255.9 + * or technique and has been deliberately simplified. Additional steps
  255.10 + * required for a production-quality application, such as security checks,
  255.11 + * input validation and proper error handling, might not be present in
  255.12 + * this sample code.
  255.13 + */
  255.14 +
  255.15 +
  255.16  #ifndef HPROF_LISTENER_H
  255.17  #define HPROF_LISTENER_H
  255.18  
   256.1 --- a/src/share/demo/jvmti/hprof/hprof_loader.c	Mon Aug 29 17:09:35 2011 -0700
   256.2 +++ b/src/share/demo/jvmti/hprof/hprof_loader.c	Wed Aug 31 09:56:44 2011 -0700
   256.3 @@ -29,6 +29,15 @@
   256.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   256.5   */
   256.6  
   256.7 +/*
   256.8 + * This source code is provided to illustrate the usage of a given feature
   256.9 + * or technique and has been deliberately simplified. Additional steps
  256.10 + * required for a production-quality application, such as security checks,
  256.11 + * input validation and proper error handling, might not be present in
  256.12 + * this sample code.
  256.13 + */
  256.14 +
  256.15 +
  256.16  /* The Class Loader table. */
  256.17  
  256.18  /*
   257.1 --- a/src/share/demo/jvmti/hprof/hprof_loader.h	Mon Aug 29 17:09:35 2011 -0700
   257.2 +++ b/src/share/demo/jvmti/hprof/hprof_loader.h	Wed Aug 31 09:56:44 2011 -0700
   257.3 @@ -29,6 +29,15 @@
   257.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   257.5   */
   257.6  
   257.7 +/*
   257.8 + * This source code is provided to illustrate the usage of a given feature
   257.9 + * or technique and has been deliberately simplified. Additional steps
  257.10 + * required for a production-quality application, such as security checks,
  257.11 + * input validation and proper error handling, might not be present in
  257.12 + * this sample code.
  257.13 + */
  257.14 +
  257.15 +
  257.16  #ifndef HPROF_LOADER_H
  257.17  #define HPROF_LOADER_H
  257.18  
   258.1 --- a/src/share/demo/jvmti/hprof/hprof_md.h	Mon Aug 29 17:09:35 2011 -0700
   258.2 +++ b/src/share/demo/jvmti/hprof/hprof_md.h	Wed Aug 31 09:56:44 2011 -0700
   258.3 @@ -29,6 +29,15 @@
   258.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   258.5   */
   258.6  
   258.7 +/*
   258.8 + * This source code is provided to illustrate the usage of a given feature
   258.9 + * or technique and has been deliberately simplified. Additional steps
  258.10 + * required for a production-quality application, such as security checks,
  258.11 + * input validation and proper error handling, might not be present in
  258.12 + * this sample code.
  258.13 + */
  258.14 +
  258.15 +
  258.16  #ifndef HPROF_MD_H
  258.17  #define HPROF_MD_H
  258.18  
   259.1 --- a/src/share/demo/jvmti/hprof/hprof_monitor.c	Mon Aug 29 17:09:35 2011 -0700
   259.2 +++ b/src/share/demo/jvmti/hprof/hprof_monitor.c	Wed Aug 31 09:56:44 2011 -0700
   259.3 @@ -29,6 +29,15 @@
   259.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   259.5   */
   259.6  
   259.7 +/*
   259.8 + * This source code is provided to illustrate the usage of a given feature
   259.9 + * or technique and has been deliberately simplified. Additional steps
  259.10 + * required for a production-quality application, such as security checks,
  259.11 + * input validation and proper error handling, might not be present in
  259.12 + * this sample code.
  259.13 + */
  259.14 +
  259.15 +
  259.16  /* Monitor contention tracking and monitor wait handling. */
  259.17  
  259.18  /*
   260.1 --- a/src/share/demo/jvmti/hprof/hprof_monitor.h	Mon Aug 29 17:09:35 2011 -0700
   260.2 +++ b/src/share/demo/jvmti/hprof/hprof_monitor.h	Wed Aug 31 09:56:44 2011 -0700
   260.3 @@ -29,6 +29,15 @@
   260.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   260.5   */
   260.6  
   260.7 +/*
   260.8 + * This source code is provided to illustrate the usage of a given feature
   260.9 + * or technique and has been deliberately simplified. Additional steps
  260.10 + * required for a production-quality application, such as security checks,
  260.11 + * input validation and proper error handling, might not be present in
  260.12 + * this sample code.
  260.13 + */
  260.14 +
  260.15 +
  260.16  #ifndef HPROF_MONITOR_H
  260.17  #define HPROF_MONITOR_H
  260.18  
   261.1 --- a/src/share/demo/jvmti/hprof/hprof_object.c	Mon Aug 29 17:09:35 2011 -0700
   261.2 +++ b/src/share/demo/jvmti/hprof/hprof_object.c	Wed Aug 31 09:56:44 2011 -0700
   261.3 @@ -29,6 +29,15 @@
   261.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   261.5   */
   261.6  
   261.7 +/*
   261.8 + * This source code is provided to illustrate the usage of a given feature
   261.9 + * or technique and has been deliberately simplified. Additional steps
  261.10 + * required for a production-quality application, such as security checks,
  261.11 + * input validation and proper error handling, might not be present in
  261.12 + * this sample code.
  261.13 + */
  261.14 +
  261.15 +
  261.16  /* Object table. */
  261.17  
  261.18  /*
   262.1 --- a/src/share/demo/jvmti/hprof/hprof_object.h	Mon Aug 29 17:09:35 2011 -0700
   262.2 +++ b/src/share/demo/jvmti/hprof/hprof_object.h	Wed Aug 31 09:56:44 2011 -0700
   262.3 @@ -29,6 +29,15 @@
   262.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   262.5   */
   262.6  
   262.7 +/*
   262.8 + * This source code is provided to illustrate the usage of a given feature
   262.9 + * or technique and has been deliberately simplified. Additional steps
  262.10 + * required for a production-quality application, such as security checks,
  262.11 + * input validation and proper error handling, might not be present in
  262.12 + * this sample code.
  262.13 + */
  262.14 +
  262.15 +
  262.16  #ifndef HPROF_OBJECT_H
  262.17  #define HPROF_OBJECT_H
  262.18  
   263.1 --- a/src/share/demo/jvmti/hprof/hprof_reference.c	Mon Aug 29 17:09:35 2011 -0700
   263.2 +++ b/src/share/demo/jvmti/hprof/hprof_reference.c	Wed Aug 31 09:56:44 2011 -0700
   263.3 @@ -29,6 +29,15 @@
   263.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   263.5   */
   263.6  
   263.7 +/*
   263.8 + * This source code is provided to illustrate the usage of a given feature
   263.9 + * or technique and has been deliberately simplified. Additional steps
  263.10 + * required for a production-quality application, such as security checks,
  263.11 + * input validation and proper error handling, might not be present in
  263.12 + * this sample code.
  263.13 + */
  263.14 +
  263.15 +
  263.16  /* Object references table (used in hprof_object.c). */
  263.17  
  263.18  /*
   264.1 --- a/src/share/demo/jvmti/hprof/hprof_reference.h	Mon Aug 29 17:09:35 2011 -0700
   264.2 +++ b/src/share/demo/jvmti/hprof/hprof_reference.h	Wed Aug 31 09:56:44 2011 -0700
   264.3 @@ -29,6 +29,15 @@
   264.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   264.5   */
   264.6  
   264.7 +/*
   264.8 + * This source code is provided to illustrate the usage of a given feature
   264.9 + * or technique and has been deliberately simplified. Additional steps
  264.10 + * required for a production-quality application, such as security checks,
  264.11 + * input validation and proper error handling, might not be present in
  264.12 + * this sample code.
  264.13 + */
  264.14 +
  264.15 +
  264.16  #ifndef HPROF_REFERENCE_H
  264.17  #define HPROF_REFERENCE_H
  264.18  
   265.1 --- a/src/share/demo/jvmti/hprof/hprof_site.c	Mon Aug 29 17:09:35 2011 -0700
   265.2 +++ b/src/share/demo/jvmti/hprof/hprof_site.c	Wed Aug 31 09:56:44 2011 -0700
   265.3 @@ -29,6 +29,15 @@
   265.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   265.5   */
   265.6  
   265.7 +/*
   265.8 + * This source code is provided to illustrate the usage of a given feature
   265.9 + * or technique and has been deliberately simplified. Additional steps
  265.10 + * required for a production-quality application, such as security checks,
  265.11 + * input validation and proper error handling, might not be present in
  265.12 + * this sample code.
  265.13 + */
  265.14 +
  265.15 +
  265.16  /* Allocation site table. */
  265.17  
  265.18  /*
   266.1 --- a/src/share/demo/jvmti/hprof/hprof_site.h	Mon Aug 29 17:09:35 2011 -0700
   266.2 +++ b/src/share/demo/jvmti/hprof/hprof_site.h	Wed Aug 31 09:56:44 2011 -0700
   266.3 @@ -29,6 +29,15 @@
   266.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   266.5   */
   266.6  
   266.7 +/*
   266.8 + * This source code is provided to illustrate the usage of a given feature
   266.9 + * or technique and has been deliberately simplified. Additional steps
  266.10 + * required for a production-quality application, such as security checks,
  266.11 + * input validation and proper error handling, might not be present in
  266.12 + * this sample code.
  266.13 + */
  266.14 +
  266.15 +
  266.16  #ifndef HPROF_SITE_H
  266.17  #define HPROF_SITE_H
  266.18  
   267.1 --- a/src/share/demo/jvmti/hprof/hprof_stack.c	Mon Aug 29 17:09:35 2011 -0700
   267.2 +++ b/src/share/demo/jvmti/hprof/hprof_stack.c	Wed Aug 31 09:56:44 2011 -0700
   267.3 @@ -29,6 +29,15 @@
   267.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   267.5   */
   267.6  
   267.7 +/*
   267.8 + * This source code is provided to illustrate the usage of a given feature
   267.9 + * or technique and has been deliberately simplified. Additional steps
  267.10 + * required for a production-quality application, such as security checks,
  267.11 + * input validation and proper error handling, might not be present in
  267.12 + * this sample code.
  267.13 + */
  267.14 +
  267.15 +
  267.16  /* Simple stack storage mechanism (or simple List). */
  267.17  
  267.18  /*
   268.1 --- a/src/share/demo/jvmti/hprof/hprof_stack.h	Mon Aug 29 17:09:35 2011 -0700
   268.2 +++ b/src/share/demo/jvmti/hprof/hprof_stack.h	Wed Aug 31 09:56:44 2011 -0700
   268.3 @@ -29,6 +29,15 @@
   268.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   268.5   */
   268.6  
   268.7 +/*
   268.8 + * This source code is provided to illustrate the usage of a given feature
   268.9 + * or technique and has been deliberately simplified. Additional steps
  268.10 + * required for a production-quality application, such as security checks,
  268.11 + * input validation and proper error handling, might not be present in
  268.12 + * this sample code.
  268.13 + */
  268.14 +
  268.15 +
  268.16  #ifndef HPROF_STACK_H
  268.17  #define HPROF_STACK_H
  268.18  
   269.1 --- a/src/share/demo/jvmti/hprof/hprof_string.c	Mon Aug 29 17:09:35 2011 -0700
   269.2 +++ b/src/share/demo/jvmti/hprof/hprof_string.c	Wed Aug 31 09:56:44 2011 -0700
   269.3 @@ -29,6 +29,15 @@
   269.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   269.5   */
   269.6  
   269.7 +/*
   269.8 + * This source code is provided to illustrate the usage of a given feature
   269.9 + * or technique and has been deliberately simplified. Additional steps
  269.10 + * required for a production-quality application, such as security checks,
  269.11 + * input validation and proper error handling, might not be present in
  269.12 + * this sample code.
  269.13 + */
  269.14 +
  269.15 +
  269.16  /* Table of byte arrays (e.g. char* string + NULL byte) */
  269.17  
  269.18  /*
   270.1 --- a/src/share/demo/jvmti/hprof/hprof_string.h	Mon Aug 29 17:09:35 2011 -0700
   270.2 +++ b/src/share/demo/jvmti/hprof/hprof_string.h	Wed Aug 31 09:56:44 2011 -0700
   270.3 @@ -29,6 +29,15 @@
   270.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   270.5   */
   270.6  
   270.7 +/*
   270.8 + * This source code is provided to illustrate the usage of a given feature
   270.9 + * or technique and has been deliberately simplified. Additional steps
  270.10 + * required for a production-quality application, such as security checks,
  270.11 + * input validation and proper error handling, might not be present in
  270.12 + * this sample code.
  270.13 + */
  270.14 +
  270.15 +
  270.16  #ifndef HPROF_STRING_H
  270.17  #define HPROF_STRING_H
  270.18  
   271.1 --- a/src/share/demo/jvmti/hprof/hprof_table.c	Mon Aug 29 17:09:35 2011 -0700
   271.2 +++ b/src/share/demo/jvmti/hprof/hprof_table.c	Wed Aug 31 09:56:44 2011 -0700
   271.3 @@ -29,6 +29,15 @@
   271.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   271.5   */
   271.6  
   271.7 +/*
   271.8 + * This source code is provided to illustrate the usage of a given feature
   271.9 + * or technique and has been deliberately simplified. Additional steps
  271.10 + * required for a production-quality application, such as security checks,
  271.11 + * input validation and proper error handling, might not be present in
  271.12 + * this sample code.
  271.13 + */
  271.14 +
  271.15 +
  271.16  /* Lookup Table of generic elements. */
  271.17  
  271.18  /*
   272.1 --- a/src/share/demo/jvmti/hprof/hprof_table.h	Mon Aug 29 17:09:35 2011 -0700
   272.2 +++ b/src/share/demo/jvmti/hprof/hprof_table.h	Wed Aug 31 09:56:44 2011 -0700
   272.3 @@ -29,6 +29,15 @@
   272.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   272.5   */
   272.6  
   272.7 +/*
   272.8 + * This source code is provided to illustrate the usage of a given feature
   272.9 + * or technique and has been deliberately simplified. Additional steps
  272.10 + * required for a production-quality application, such as security checks,
  272.11 + * input validation and proper error handling, might not be present in
  272.12 + * this sample code.
  272.13 + */
  272.14 +
  272.15 +
  272.16  #ifndef HPROF_TABLE_H
  272.17  #define HPROF_TABLE_H
  272.18  
   273.1 --- a/src/share/demo/jvmti/hprof/hprof_tag.c	Mon Aug 29 17:09:35 2011 -0700
   273.2 +++ b/src/share/demo/jvmti/hprof/hprof_tag.c	Wed Aug 31 09:56:44 2011 -0700
   273.3 @@ -29,6 +29,15 @@
   273.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   273.5   */
   273.6  
   273.7 +/*
   273.8 + * This source code is provided to illustrate the usage of a given feature
   273.9 + * or technique and has been deliberately simplified. Additional steps
  273.10 + * required for a production-quality application, such as security checks,
  273.11 + * input validation and proper error handling, might not be present in
  273.12 + * this sample code.
  273.13 + */
  273.14 +
  273.15 +
  273.16  /* JVMTI tag definitions. */
  273.17  
  273.18  /*
   274.1 --- a/src/share/demo/jvmti/hprof/hprof_tag.h	Mon Aug 29 17:09:35 2011 -0700
   274.2 +++ b/src/share/demo/jvmti/hprof/hprof_tag.h	Wed Aug 31 09:56:44 2011 -0700
   274.3 @@ -29,6 +29,15 @@
   274.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   274.5   */
   274.6  
   274.7 +/*
   274.8 + * This source code is provided to illustrate the usage of a given feature
   274.9 + * or technique and has been deliberately simplified. Additional steps
  274.10 + * required for a production-quality application, such as security checks,
  274.11 + * input validation and proper error handling, might not be present in
  274.12 + * this sample code.
  274.13 + */
  274.14 +
  274.15 +
  274.16  #ifndef HPROF_TAG_H
  274.17  #define HPROF_TAG_H
  274.18  
   275.1 --- a/src/share/demo/jvmti/hprof/hprof_tls.c	Mon Aug 29 17:09:35 2011 -0700
   275.2 +++ b/src/share/demo/jvmti/hprof/hprof_tls.c	Wed Aug 31 09:56:44 2011 -0700
   275.3 @@ -29,6 +29,15 @@
   275.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   275.5   */
   275.6  
   275.7 +/*
   275.8 + * This source code is provided to illustrate the usage of a given feature
   275.9 + * or technique and has been deliberately simplified. Additional steps
  275.10 + * required for a production-quality application, such as security checks,
  275.11 + * input validation and proper error handling, might not be present in
  275.12 + * this sample code.
  275.13 + */
  275.14 +
  275.15 +
  275.16  #include "hprof.h"
  275.17  
  275.18  /* Thread Local Storage Table and method entry/exit handling. */
   276.1 --- a/src/share/demo/jvmti/hprof/hprof_tls.h	Mon Aug 29 17:09:35 2011 -0700
   276.2 +++ b/src/share/demo/jvmti/hprof/hprof_tls.h	Wed Aug 31 09:56:44 2011 -0700
   276.3 @@ -29,6 +29,15 @@
   276.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   276.5   */
   276.6  
   276.7 +/*
   276.8 + * This source code is provided to illustrate the usage of a given feature
   276.9 + * or technique and has been deliberately simplified. Additional steps
  276.10 + * required for a production-quality application, such as security checks,
  276.11 + * input validation and proper error handling, might not be present in
  276.12 + * this sample code.
  276.13 + */
  276.14 +
  276.15 +
  276.16  #ifndef HPROF_TLS_H
  276.17  #define HPROF_TLS_H
  276.18  
   277.1 --- a/src/share/demo/jvmti/hprof/hprof_trace.c	Mon Aug 29 17:09:35 2011 -0700
   277.2 +++ b/src/share/demo/jvmti/hprof/hprof_trace.c	Wed Aug 31 09:56:44 2011 -0700
   277.3 @@ -29,6 +29,15 @@
   277.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   277.5   */
   277.6  
   277.7 +/*
   277.8 + * This source code is provided to illustrate the usage of a given feature
   277.9 + * or technique and has been deliberately simplified. Additional steps
  277.10 + * required for a production-quality application, such as security checks,
  277.11 + * input validation and proper error handling, might not be present in
  277.12 + * this sample code.
  277.13 + */
  277.14 +
  277.15 +
  277.16  /* Trace table. */
  277.17  
  277.18  /*
   278.1 --- a/src/share/demo/jvmti/hprof/hprof_trace.h	Mon Aug 29 17:09:35 2011 -0700
   278.2 +++ b/src/share/demo/jvmti/hprof/hprof_trace.h	Wed Aug 31 09:56:44 2011 -0700
   278.3 @@ -29,6 +29,15 @@
   278.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   278.5   */
   278.6  
   278.7 +/*
   278.8 + * This source code is provided to illustrate the usage of a given feature
   278.9 + * or technique and has been deliberately simplified. Additional steps
  278.10 + * required for a production-quality application, such as security checks,
  278.11 + * input validation and proper error handling, might not be present in
  278.12 + * this sample code.
  278.13 + */
  278.14 +
  278.15 +
  278.16  #ifndef HPROF_TRACE_H
  278.17  #define HPROF_TRACE_H
  278.18  
   279.1 --- a/src/share/demo/jvmti/hprof/hprof_tracker.c	Mon Aug 29 17:09:35 2011 -0700
   279.2 +++ b/src/share/demo/jvmti/hprof/hprof_tracker.c	Wed Aug 31 09:56:44 2011 -0700
   279.3 @@ -29,6 +29,15 @@
   279.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   279.5   */
   279.6  
   279.7 +/*
   279.8 + * This source code is provided to illustrate the usage of a given feature
   279.9 + * or technique and has been deliberately simplified. Additional steps
  279.10 + * required for a production-quality application, such as security checks,
  279.11 + * input validation and proper error handling, might not be present in
  279.12 + * this sample code.
  279.13 + */
  279.14 +
  279.15 +
  279.16  /* Tracker class support functions. */
  279.17  
  279.18  /*
   280.1 --- a/src/share/demo/jvmti/hprof/hprof_tracker.h	Mon Aug 29 17:09:35 2011 -0700
   280.2 +++ b/src/share/demo/jvmti/hprof/hprof_tracker.h	Wed Aug 31 09:56:44 2011 -0700
   280.3 @@ -29,6 +29,15 @@
   280.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   280.5   */
   280.6  
   280.7 +/*
   280.8 + * This source code is provided to illustrate the usage of a given feature
   280.9 + * or technique and has been deliberately simplified. Additional steps
  280.10 + * required for a production-quality application, such as security checks,
  280.11 + * input validation and proper error handling, might not be present in
  280.12 + * this sample code.
  280.13 + */
  280.14 +
  280.15 +
  280.16  #ifndef HPROF_TRACKER_H
  280.17  #define HPROF_TRACKER_H
  280.18  
   281.1 --- a/src/share/demo/jvmti/hprof/hprof_util.c	Mon Aug 29 17:09:35 2011 -0700
   281.2 +++ b/src/share/demo/jvmti/hprof/hprof_util.c	Wed Aug 31 09:56:44 2011 -0700
   281.3 @@ -29,6 +29,15 @@
   281.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   281.5   */
   281.6  
   281.7 +/*
   281.8 + * This source code is provided to illustrate the usage of a given feature
   281.9 + * or technique and has been deliberately simplified. Additional steps
  281.10 + * required for a production-quality application, such as security checks,
  281.11 + * input validation and proper error handling, might not be present in
  281.12 + * this sample code.
  281.13 + */
  281.14 +
  281.15 +
  281.16  /* General utility functions. */
  281.17  
  281.18  /*
   282.1 --- a/src/share/demo/jvmti/hprof/hprof_util.h	Mon Aug 29 17:09:35 2011 -0700
   282.2 +++ b/src/share/demo/jvmti/hprof/hprof_util.h	Wed Aug 31 09:56:44 2011 -0700
   282.3 @@ -29,6 +29,15 @@
   282.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   282.5   */
   282.6  
   282.7 +/*
   282.8 + * This source code is provided to illustrate the usage of a given feature
   282.9 + * or technique and has been deliberately simplified. Additional steps
  282.10 + * required for a production-quality application, such as security checks,
  282.11 + * input validation and proper error handling, might not be present in
  282.12 + * this sample code.
  282.13 + */
  282.14 +
  282.15 +
  282.16  #ifndef HPROF_UTIL_H
  282.17  #define HPROF_UTIL_H
  282.18  
   283.1 --- a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c	Mon Aug 29 17:09:35 2011 -0700
   283.2 +++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c	Wed Aug 31 09:56:44 2011 -0700
   283.3 @@ -29,6 +29,15 @@
   283.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   283.5   */
   283.6  
   283.7 +/*
   283.8 + * This source code is provided to illustrate the usage of a given feature
   283.9 + * or technique and has been deliberately simplified. Additional steps
  283.10 + * required for a production-quality application, such as security checks,
  283.11 + * input validation and proper error handling, might not be present in
  283.12 + * this sample code.
  283.13 + */
  283.14 +
  283.15 +
  283.16  /* Class reader writer (java_crw_demo) for instrumenting bytecodes */
  283.17  
  283.18  /*
   284.1 --- a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h	Mon Aug 29 17:09:35 2011 -0700
   284.2 +++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h	Wed Aug 31 09:56:44 2011 -0700
   284.3 @@ -29,6 +29,15 @@
   284.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   284.5   */
   284.6  
   284.7 +/*
   284.8 + * This source code is provided to illustrate the usage of a given feature
   284.9 + * or technique and has been deliberately simplified. Additional steps
  284.10 + * required for a production-quality application, such as security checks,
  284.11 + * input validation and proper error handling, might not be present in
  284.12 + * this sample code.
  284.13 + */
  284.14 +
  284.15 +
  284.16  #ifndef JAVA_CRW_DEMO_H
  284.17  #define JAVA_CRW_DEMO_H
  284.18  
   285.1 --- a/src/share/demo/jvmti/minst/Minst.java	Mon Aug 29 17:09:35 2011 -0700
   285.2 +++ b/src/share/demo/jvmti/minst/Minst.java	Wed Aug 31 09:56:44 2011 -0700
   285.3 @@ -29,6 +29,15 @@
   285.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   285.5   */
   285.6  
   285.7 +/*
   285.8 + * This source code is provided to illustrate the usage of a given feature
   285.9 + * or technique and has been deliberately simplified. Additional steps
  285.10 + * required for a production-quality application, such as security checks,
  285.11 + * input validation and proper error handling, might not be present in
  285.12 + * this sample code.
  285.13 + */
  285.14 +
  285.15 +
  285.16  
  285.17  /* Java class to hold static methods which will be called in byte code
  285.18   *    injections of all class files.
   286.1 --- a/src/share/demo/jvmti/minst/minst.c	Mon Aug 29 17:09:35 2011 -0700
   286.2 +++ b/src/share/demo/jvmti/minst/minst.c	Wed Aug 31 09:56:44 2011 -0700
   286.3 @@ -29,6 +29,15 @@
   286.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   286.5   */
   286.6  
   286.7 +/*
   286.8 + * This source code is provided to illustrate the usage of a given feature
   286.9 + * or technique and has been deliberately simplified. Additional steps
  286.10 + * required for a production-quality application, such as security checks,
  286.11 + * input validation and proper error handling, might not be present in
  286.12 + * this sample code.
  286.13 + */
  286.14 +
  286.15 +
  286.16  #include "stdlib.h"
  286.17  
  286.18  #include "minst.h"
   287.1 --- a/src/share/demo/jvmti/minst/minst.h	Mon Aug 29 17:09:35 2011 -0700
   287.2 +++ b/src/share/demo/jvmti/minst/minst.h	Wed Aug 31 09:56:44 2011 -0700
   287.3 @@ -29,6 +29,15 @@
   287.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   287.5   */
   287.6  
   287.7 +/*
   287.8 + * This source code is provided to illustrate the usage of a given feature
   287.9 + * or technique and has been deliberately simplified. Additional steps
  287.10 + * required for a production-quality application, such as security checks,
  287.11 + * input validation and proper error handling, might not be present in
  287.12 + * this sample code.
  287.13 + */
  287.14 +
  287.15 +
  287.16  /* Primary minst #include file, should be included by most if not
  287.17   *    all minst source files. Gives access to the global data structure
  287.18   *    and all global macros.
   288.1 --- a/src/share/demo/jvmti/mtrace/Mtrace.java	Mon Aug 29 17:09:35 2011 -0700
   288.2 +++ b/src/share/demo/jvmti/mtrace/Mtrace.java	Wed Aug 31 09:56:44 2011 -0700
   288.3 @@ -29,6 +29,15 @@
   288.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   288.5   */
   288.6  
   288.7 +/*
   288.8 + * This source code is provided to illustrate the usage of a given feature
   288.9 + * or technique and has been deliberately simplified. Additional steps
  288.10 + * required for a production-quality application, such as security checks,
  288.11 + * input validation and proper error handling, might not be present in
  288.12 + * this sample code.
  288.13 + */
  288.14 +
  288.15 +
  288.16  
  288.17  /* Java class to hold static methods which will be called in byte code
  288.18   *    injections of all class files.
   289.1 --- a/src/share/demo/jvmti/mtrace/mtrace.c	Mon Aug 29 17:09:35 2011 -0700
   289.2 +++ b/src/share/demo/jvmti/mtrace/mtrace.c	Wed Aug 31 09:56:44 2011 -0700
   289.3 @@ -29,6 +29,15 @@
   289.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   289.5   */
   289.6  
   289.7 +/*
   289.8 + * This source code is provided to illustrate the usage of a given feature
   289.9 + * or technique and has been deliberately simplified. Additional steps
  289.10 + * required for a production-quality application, such as security checks,
  289.11 + * input validation and proper error handling, might not be present in
  289.12 + * this sample code.
  289.13 + */
  289.14 +
  289.15 +
  289.16  #include "stdlib.h"
  289.17  
  289.18  #include "mtrace.h"
   290.1 --- a/src/share/demo/jvmti/mtrace/mtrace.h	Mon Aug 29 17:09:35 2011 -0700
   290.2 +++ b/src/share/demo/jvmti/mtrace/mtrace.h	Wed Aug 31 09:56:44 2011 -0700
   290.3 @@ -29,6 +29,15 @@
   290.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   290.5   */
   290.6  
   290.7 +/*
   290.8 + * This source code is provided to illustrate the usage of a given feature
   290.9 + * or technique and has been deliberately simplified. Additional steps
  290.10 + * required for a production-quality application, such as security checks,
  290.11 + * input validation and proper error handling, might not be present in
  290.12 + * this sample code.
  290.13 + */
  290.14 +
  290.15 +
  290.16  /* Primary mtrace #include file, should be included by most if not
  290.17   *    all mtrace source files. Gives access to the global data structure
  290.18   *    and all global macros.
   291.1 --- a/src/share/demo/jvmti/versionCheck/versionCheck.c	Mon Aug 29 17:09:35 2011 -0700
   291.2 +++ b/src/share/demo/jvmti/versionCheck/versionCheck.c	Wed Aug 31 09:56:44 2011 -0700
   291.3 @@ -29,6 +29,15 @@
   291.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   291.5   */
   291.6  
   291.7 +/*
   291.8 + * This source code is provided to illustrate the usage of a given feature
   291.9 + * or technique and has been deliberately simplified. Additional steps
  291.10 + * required for a production-quality application, such as security checks,
  291.11 + * input validation and proper error handling, might not be present in
  291.12 + * this sample code.
  291.13 + */
  291.14 +
  291.15 +
  291.16  #include <stdio.h>
  291.17  #include <stdlib.h>
  291.18  #include <string.h>
   292.1 --- a/src/share/demo/jvmti/waiters/Agent.cpp	Mon Aug 29 17:09:35 2011 -0700
   292.2 +++ b/src/share/demo/jvmti/waiters/Agent.cpp	Wed Aug 31 09:56:44 2011 -0700
   292.3 @@ -29,6 +29,15 @@
   292.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   292.5   */
   292.6  
   292.7 +/*
   292.8 + * This source code is provided to illustrate the usage of a given feature
   292.9 + * or technique and has been deliberately simplified. Additional steps
  292.10 + * required for a production-quality application, such as security checks,
  292.11 + * input validation and proper error handling, might not be present in
  292.12 + * this sample code.
  292.13 + */
  292.14 +
  292.15 +
  292.16  #include <stdio.h>
  292.17  #include <stdlib.h>
  292.18  #include <string.h>
   293.1 --- a/src/share/demo/jvmti/waiters/Agent.hpp	Mon Aug 29 17:09:35 2011 -0700
   293.2 +++ b/src/share/demo/jvmti/waiters/Agent.hpp	Wed Aug 31 09:56:44 2011 -0700
   293.3 @@ -29,6 +29,15 @@
   293.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   293.5   */
   293.6  
   293.7 +/*
   293.8 + * This source code is provided to illustrate the usage of a given feature
   293.9 + * or technique and has been deliberately simplified. Additional steps
  293.10 + * required for a production-quality application, such as security checks,
  293.11 + * input validation and proper error handling, might not be present in
  293.12 + * this sample code.
  293.13 + */
  293.14 +
  293.15 +
  293.16  /* C++ Agent class */
  293.17  
  293.18  class Agent {
   294.1 --- a/src/share/demo/jvmti/waiters/Monitor.cpp	Mon Aug 29 17:09:35 2011 -0700
   294.2 +++ b/src/share/demo/jvmti/waiters/Monitor.cpp	Wed Aug 31 09:56:44 2011 -0700
   294.3 @@ -29,6 +29,15 @@
   294.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   294.5   */
   294.6  
   294.7 +/*
   294.8 + * This source code is provided to illustrate the usage of a given feature
   294.9 + * or technique and has been deliberately simplified. Additional steps
  294.10 + * required for a production-quality application, such as security checks,
  294.11 + * input validation and proper error handling, might not be present in
  294.12 + * this sample code.
  294.13 + */
  294.14 +
  294.15 +
  294.16  #include <stdio.h>
  294.17  #include <stdlib.h>
  294.18  #include <string.h>
   295.1 --- a/src/share/demo/jvmti/waiters/Monitor.hpp	Mon Aug 29 17:09:35 2011 -0700
   295.2 +++ b/src/share/demo/jvmti/waiters/Monitor.hpp	Wed Aug 31 09:56:44 2011 -0700
   295.3 @@ -29,6 +29,15 @@
   295.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   295.5   */
   295.6  
   295.7 +/*
   295.8 + * This source code is provided to illustrate the usage of a given feature
   295.9 + * or technique and has been deliberately simplified. Additional steps
  295.10 + * required for a production-quality application, such as security checks,
  295.11 + * input validation and proper error handling, might not be present in
  295.12 + * this sample code.
  295.13 + */
  295.14 +
  295.15 +
  295.16  /* C++ Monitor class */
  295.17  
  295.18  class Monitor {
   296.1 --- a/src/share/demo/jvmti/waiters/Thread.cpp	Mon Aug 29 17:09:35 2011 -0700
   296.2 +++ b/src/share/demo/jvmti/waiters/Thread.cpp	Wed Aug 31 09:56:44 2011 -0700
   296.3 @@ -29,6 +29,15 @@
   296.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   296.5   */
   296.6  
   296.7 +/*
   296.8 + * This source code is provided to illustrate the usage of a given feature
   296.9 + * or technique and has been deliberately simplified. Additional steps
  296.10 + * required for a production-quality application, such as security checks,
  296.11 + * input validation and proper error handling, might not be present in
  296.12 + * this sample code.
  296.13 + */
  296.14 +
  296.15 +
  296.16  #include <stdio.h>
  296.17  #include <stdlib.h>
  296.18  #include <string.h>
   297.1 --- a/src/share/demo/jvmti/waiters/Thread.hpp	Mon Aug 29 17:09:35 2011 -0700
   297.2 +++ b/src/share/demo/jvmti/waiters/Thread.hpp	Wed Aug 31 09:56:44 2011 -0700
   297.3 @@ -29,6 +29,15 @@
   297.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   297.5   */
   297.6  
   297.7 +/*
   297.8 + * This source code is provided to illustrate the usage of a given feature
   297.9 + * or technique and has been deliberately simplified. Additional steps
  297.10 + * required for a production-quality application, such as security checks,
  297.11 + * input validation and proper error handling, might not be present in
  297.12 + * this sample code.
  297.13 + */
  297.14 +
  297.15 +
  297.16  /* C++ Thread class */
  297.17  
  297.18  class Thread {
   298.1 --- a/src/share/demo/jvmti/waiters/waiters.cpp	Mon Aug 29 17:09:35 2011 -0700
   298.2 +++ b/src/share/demo/jvmti/waiters/waiters.cpp	Wed Aug 31 09:56:44 2011 -0700
   298.3 @@ -29,6 +29,15 @@
   298.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   298.5   */
   298.6  
   298.7 +/*
   298.8 + * This source code is provided to illustrate the usage of a given feature
   298.9 + * or technique and has been deliberately simplified. Additional steps
  298.10 + * required for a production-quality application, such as security checks,
  298.11 + * input validation and proper error handling, might not be present in
  298.12 + * this sample code.
  298.13 + */
  298.14 +
  298.15 +
  298.16  /* Example of using JVMTI events:
  298.17   *      JVMTI_EVENT_VM_INIT
  298.18   *      JVMTI_EVENT_VM_DEATH
   299.1 --- a/src/share/demo/management/FullThreadDump/Deadlock.java	Mon Aug 29 17:09:35 2011 -0700
   299.2 +++ b/src/share/demo/management/FullThreadDump/Deadlock.java	Wed Aug 31 09:56:44 2011 -0700
   299.3 @@ -30,6 +30,15 @@
   299.4   */
   299.5  
   299.6  /*
   299.7 + * This source code is provided to illustrate the usage of a given feature
   299.8 + * or technique and has been deliberately simplified. Additional steps
   299.9 + * required for a production-quality application, such as security checks,
  299.10 + * input validation and proper error handling, might not be present in
  299.11 + * this sample code.
  299.12 + */
  299.13 +
  299.14 +
  299.15 +/*
  299.16   */
  299.17  
  299.18  import java.util.concurrent.CyclicBarrier;
   300.1 --- a/src/share/demo/management/FullThreadDump/FullThreadDump.java	Mon Aug 29 17:09:35 2011 -0700
   300.2 +++ b/src/share/demo/management/FullThreadDump/FullThreadDump.java	Wed Aug 31 09:56:44 2011 -0700
   300.3 @@ -30,6 +30,15 @@
   300.4   */
   300.5  
   300.6  /*
   300.7 + * This source code is provided to illustrate the usage of a given feature
   300.8 + * or technique and has been deliberately simplified. Additional steps
   300.9 + * required for a production-quality application, such as security checks,
  300.10 + * input validation and proper error handling, might not be present in
  300.11 + * this sample code.
  300.12 + */
  300.13 +
  300.14 +
  300.15 +/*
  300.16   */
  300.17  
  300.18  import javax.management.*;
   301.1 --- a/src/share/demo/management/FullThreadDump/ThreadMonitor.java	Mon Aug 29 17:09:35 2011 -0700
   301.2 +++ b/src/share/demo/management/FullThreadDump/ThreadMonitor.java	Wed Aug 31 09:56:44 2011 -0700
   301.3 @@ -30,6 +30,15 @@
   301.4   */
   301.5  
   301.6  /*
   301.7 + * This source code is provided to illustrate the usage of a given feature
   301.8 + * or technique and has been deliberately simplified. Additional steps
   301.9 + * required for a production-quality application, such as security checks,
  301.10 + * input validation and proper error handling, might not be present in
  301.11 + * this sample code.
  301.12 + */
  301.13 +
  301.14 +
  301.15 +/*
  301.16   */
  301.17  
  301.18  import static java.lang.management.ManagementFactory.*;
   302.1 --- a/src/share/demo/management/JTop/JTop.java	Mon Aug 29 17:09:35 2011 -0700
   302.2 +++ b/src/share/demo/management/JTop/JTop.java	Wed Aug 31 09:56:44 2011 -0700
   302.3 @@ -30,6 +30,15 @@
   302.4   */
   302.5  
   302.6  /*
   302.7 + * This source code is provided to illustrate the usage of a given feature
   302.8 + * or technique and has been deliberately simplified. Additional steps
   302.9 + * required for a production-quality application, such as security checks,
  302.10 + * input validation and proper error handling, might not be present in
  302.11 + * this sample code.
  302.12 + */
  302.13 +
  302.14 +
  302.15 +/*
  302.16   *
  302.17   * Example of using the java.lang.management API to sort threads
  302.18   * by CPU usage.
   303.1 --- a/src/share/demo/management/JTop/JTopPlugin.java	Mon Aug 29 17:09:35 2011 -0700
   303.2 +++ b/src/share/demo/management/JTop/JTopPlugin.java	Wed Aug 31 09:56:44 2011 -0700
   303.3 @@ -30,6 +30,15 @@
   303.4   */
   303.5  
   303.6  /*
   303.7 + * This source code is provided to illustrate the usage of a given feature
   303.8 + * or technique and has been deliberately simplified. Additional steps
   303.9 + * required for a production-quality application, such as security checks,
  303.10 + * input validation and proper error handling, might not be present in
  303.11 + * this sample code.
  303.12 + */
  303.13 +
  303.14 +
  303.15 +/*
  303.16   *
  303.17   * Example of a JConsole Plugin.  This loads JTop as a JConsole tab.
  303.18   *
   304.1 --- a/src/share/demo/management/MemoryMonitor/MemoryMonitor.java	Mon Aug 29 17:09:35 2011 -0700
   304.2 +++ b/src/share/demo/management/MemoryMonitor/MemoryMonitor.java	Wed Aug 31 09:56:44 2011 -0700
   304.3 @@ -30,6 +30,15 @@
   304.4   */
   304.5  
   304.6  /*
   304.7 + * This source code is provided to illustrate the usage of a given feature
   304.8 + * or technique and has been deliberately simplified. Additional steps
   304.9 + * required for a production-quality application, such as security checks,
  304.10 + * input validation and proper error handling, might not be present in
  304.11 + * this sample code.
  304.12 + */
  304.13 +
  304.14 +
  304.15 +/*
  304.16   */
  304.17  
  304.18  import java.awt.*;
   305.1 --- a/src/share/demo/management/VerboseGC/PrintGCStat.java	Mon Aug 29 17:09:35 2011 -0700
   305.2 +++ b/src/share/demo/management/VerboseGC/PrintGCStat.java	Wed Aug 31 09:56:44 2011 -0700
   305.3 @@ -30,6 +30,15 @@
   305.4   */
   305.5  
   305.6  /*
   305.7 + * This source code is provided to illustrate the usage of a given feature
   305.8 + * or technique and has been deliberately simplified. Additional steps
   305.9 + * required for a production-quality application, such as security checks,
  305.10 + * input validation and proper error handling, might not be present in
  305.11 + * this sample code.
  305.12 + */
  305.13 +
  305.14 +
  305.15 +/*
  305.16   */
  305.17  
  305.18  import static java.lang.management.ManagementFactory.*;
   306.1 --- a/src/share/demo/management/VerboseGC/VerboseGC.java	Mon Aug 29 17:09:35 2011 -0700
   306.2 +++ b/src/share/demo/management/VerboseGC/VerboseGC.java	Wed Aug 31 09:56:44 2011 -0700
   306.3 @@ -30,6 +30,15 @@
   306.4   */
   306.5  
   306.6  /*
   306.7 + * This source code is provided to illustrate the usage of a given feature
   306.8 + * or technique and has been deliberately simplified. Additional steps
   306.9 + * required for a production-quality application, such as security checks,
  306.10 + * input validation and proper error handling, might not be present in
  306.11 + * this sample code.
  306.12 + */
  306.13 +
  306.14 +
  306.15 +/*
  306.16   */
  306.17  
  306.18  import javax.management.*;
   307.1 --- a/src/share/demo/nio/zipfs/Demo.java	Mon Aug 29 17:09:35 2011 -0700
   307.2 +++ b/src/share/demo/nio/zipfs/Demo.java	Wed Aug 31 09:56:44 2011 -0700
   307.3 @@ -29,6 +29,15 @@
   307.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   307.5   */
   307.6  
   307.7 +/*
   307.8 + * This source code is provided to illustrate the usage of a given feature
   307.9 + * or technique and has been deliberately simplified. Additional steps
  307.10 + * required for a production-quality application, such as security checks,
  307.11 + * input validation and proper error handling, might not be present in
  307.12 + * this sample code.
  307.13 + */
  307.14 +
  307.15 +
  307.16  import java.io.*;
  307.17  import java.nio.*;
  307.18  import java.nio.channels.*;
   308.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java	Mon Aug 29 17:09:35 2011 -0700
   308.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java	Wed Aug 31 09:56:44 2011 -0700
   308.3 @@ -28,6 +28,15 @@
   308.4   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   308.5   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   308.6   */
   308.7 +
   308.8 +/*
   308.9 + * This source code is provided to illustrate the usage of a given feature
  308.10 + * or technique and has been deliberately simplified. Additional steps
  308.11 + * required for a production-quality application, such as security checks,
  308.12 + * input validation and proper error handling, might not be present in
  308.13 + * this sample code.
  308.14 + */
  308.15 +
  308.16  package com.sun.nio.zipfs;
  308.17  
  308.18  import java.nio.file.*;
   309.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java	Mon Aug 29 17:09:35 2011 -0700
   309.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java	Wed Aug 31 09:56:44 2011 -0700
   309.3 @@ -29,6 +29,15 @@
   309.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   309.5   */
   309.6  
   309.7 +/*
   309.8 + * This source code is provided to illustrate the usage of a given feature
   309.9 + * or technique and has been deliberately simplified. Additional steps
  309.10 + * required for a production-quality application, such as security checks,
  309.11 + * input validation and proper error handling, might not be present in
  309.12 + * this sample code.
  309.13 + */
  309.14 +
  309.15 +
  309.16  package com.sun.nio.zipfs;
  309.17  
  309.18  import java.nio.ByteBuffer;
   310.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java	Mon Aug 29 17:09:35 2011 -0700
   310.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java	Wed Aug 31 09:56:44 2011 -0700
   310.3 @@ -29,6 +29,15 @@
   310.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   310.5   */
   310.6  
   310.7 +/*
   310.8 + * This source code is provided to illustrate the usage of a given feature
   310.9 + * or technique and has been deliberately simplified. Additional steps
  310.10 + * required for a production-quality application, such as security checks,
  310.11 + * input validation and proper error handling, might not be present in
  310.12 + * this sample code.
  310.13 + */
  310.14 +
  310.15 +
  310.16  package com.sun.nio.zipfs;
  310.17  
  310.18  
   311.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java	Mon Aug 29 17:09:35 2011 -0700
   311.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java	Wed Aug 31 09:56:44 2011 -0700
   311.3 @@ -29,6 +29,15 @@
   311.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   311.5   */
   311.6  
   311.7 +/*
   311.8 + * This source code is provided to illustrate the usage of a given feature
   311.9 + * or technique and has been deliberately simplified. Additional steps
  311.10 + * required for a production-quality application, such as security checks,
  311.11 + * input validation and proper error handling, might not be present in
  311.12 + * this sample code.
  311.13 + */
  311.14 +
  311.15 +
  311.16  package com.sun.nio.zipfs;
  311.17  
  311.18  import java.nio.file.DirectoryStream;
   312.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java	Mon Aug 29 17:09:35 2011 -0700
   312.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java	Wed Aug 31 09:56:44 2011 -0700
   312.3 @@ -29,6 +29,15 @@
   312.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   312.5   */
   312.6  
   312.7 +/*
   312.8 + * This source code is provided to illustrate the usage of a given feature
   312.9 + * or technique and has been deliberately simplified. Additional steps
  312.10 + * required for a production-quality application, such as security checks,
  312.11 + * input validation and proper error handling, might not be present in
  312.12 + * this sample code.
  312.13 + */
  312.14 +
  312.15 +
  312.16  
  312.17  package com.sun.nio.zipfs;
  312.18  
   313.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java	Mon Aug 29 17:09:35 2011 -0700
   313.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java	Wed Aug 31 09:56:44 2011 -0700
   313.3 @@ -29,6 +29,15 @@
   313.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   313.5   */
   313.6  
   313.7 +/*
   313.8 + * This source code is provided to illustrate the usage of a given feature
   313.9 + * or technique and has been deliberately simplified. Additional steps
  313.10 + * required for a production-quality application, such as security checks,
  313.11 + * input validation and proper error handling, might not be present in
  313.12 + * this sample code.
  313.13 + */
  313.14 +
  313.15 +
  313.16  
  313.17  package com.sun.nio.zipfs;
  313.18  
   314.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java	Mon Aug 29 17:09:35 2011 -0700
   314.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java	Wed Aug 31 09:56:44 2011 -0700
   314.3 @@ -29,6 +29,15 @@
   314.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   314.5   */
   314.6  
   314.7 +/*
   314.8 + * This source code is provided to illustrate the usage of a given feature
   314.9 + * or technique and has been deliberately simplified. Additional steps
  314.10 + * required for a production-quality application, such as security checks,
  314.11 + * input validation and proper error handling, might not be present in
  314.12 + * this sample code.
  314.13 + */
  314.14 +
  314.15 +
  314.16  package com.sun.nio.zipfs;
  314.17  
  314.18  import java.io.IOException;
   315.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java	Mon Aug 29 17:09:35 2011 -0700
   315.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java	Wed Aug 31 09:56:44 2011 -0700
   315.3 @@ -29,6 +29,15 @@
   315.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   315.5   */
   315.6  
   315.7 +/*
   315.8 + * This source code is provided to illustrate the usage of a given feature
   315.9 + * or technique and has been deliberately simplified. Additional steps
  315.10 + * required for a production-quality application, such as security checks,
  315.11 + * input validation and proper error handling, might not be present in
  315.12 + * this sample code.
  315.13 + */
  315.14 +
  315.15 +
  315.16  package com.sun.nio.zipfs;
  315.17  
  315.18  import java.io.ByteArrayInputStream;
   316.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java	Mon Aug 29 17:09:35 2011 -0700
   316.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java	Wed Aug 31 09:56:44 2011 -0700
   316.3 @@ -29,6 +29,15 @@
   316.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   316.5   */
   316.6  
   316.7 +/*
   316.8 + * This source code is provided to illustrate the usage of a given feature
   316.9 + * or technique and has been deliberately simplified. Additional steps
  316.10 + * required for a production-quality application, such as security checks,
  316.11 + * input validation and proper error handling, might not be present in
  316.12 + * this sample code.
  316.13 + */
  316.14 +
  316.15 +
  316.16  package com.sun.nio.zipfs;
  316.17  
  316.18  import java.io.*;
   317.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java	Mon Aug 29 17:09:35 2011 -0700
   317.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java	Wed Aug 31 09:56:44 2011 -0700
   317.3 @@ -29,6 +29,15 @@
   317.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   317.5   */
   317.6  
   317.7 +/*
   317.8 + * This source code is provided to illustrate the usage of a given feature
   317.9 + * or technique and has been deliberately simplified. Additional steps
  317.10 + * required for a production-quality application, such as security checks,
  317.11 + * input validation and proper error handling, might not be present in
  317.12 + * this sample code.
  317.13 + */
  317.14 +
  317.15 +
  317.16  package com.sun.nio.zipfs;
  317.17  
  317.18  import java.nio.file.Paths;
   318.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java	Mon Aug 29 17:09:35 2011 -0700
   318.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java	Wed Aug 31 09:56:44 2011 -0700
   318.3 @@ -29,6 +29,15 @@
   318.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   318.5   */
   318.6  
   318.7 +/*
   318.8 + * This source code is provided to illustrate the usage of a given feature
   318.9 + * or technique and has been deliberately simplified. Additional steps
  318.10 + * required for a production-quality application, such as security checks,
  318.11 + * input validation and proper error handling, might not be present in
  318.12 + * this sample code.
  318.13 + */
  318.14 +
  318.15 +
  318.16  package com.sun.nio.zipfs;
  318.17  
  318.18  import java.io.*;
   319.1 --- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java	Mon Aug 29 17:09:35 2011 -0700
   319.2 +++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java	Wed Aug 31 09:56:44 2011 -0700
   319.3 @@ -29,6 +29,15 @@
   319.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   319.5   */
   319.6  
   319.7 +/*
   319.8 + * This source code is provided to illustrate the usage of a given feature
   319.9 + * or technique and has been deliberately simplified. Additional steps
  319.10 + * required for a production-quality application, such as security checks,
  319.11 + * input validation and proper error handling, might not be present in
  319.12 + * this sample code.
  319.13 + */
  319.14 +
  319.15 +
  319.16  package com.sun.nio.zipfs;
  319.17  
  319.18  import java.io.IOException;
   320.1 --- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java	Mon Aug 29 17:09:35 2011 -0700
   320.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java	Wed Aug 31 09:56:44 2011 -0700
   320.3 @@ -29,6 +29,15 @@
   320.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   320.5   */
   320.6  
   320.7 +/*
   320.8 + * This source code is provided to illustrate the usage of a given feature
   320.9 + * or technique and has been deliberately simplified. Additional steps
  320.10 + * required for a production-quality application, such as security checks,
  320.11 + * input validation and proper error handling, might not be present in
  320.12 + * this sample code.
  320.13 + */
  320.14 +
  320.15 +
  320.16  package com.sun.demo.scripting.jconsole;
  320.17  
  320.18  import javax.swing.text.*;
   321.1 --- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java	Mon Aug 29 17:09:35 2011 -0700
   321.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java	Wed Aug 31 09:56:44 2011 -0700
   321.3 @@ -29,6 +29,15 @@
   321.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   321.5   */
   321.6  
   321.7 +/*
   321.8 + * This source code is provided to illustrate the usage of a given feature
   321.9 + * or technique and has been deliberately simplified. Additional steps
  321.10 + * required for a production-quality application, such as security checks,
  321.11 + * input validation and proper error handling, might not be present in
  321.12 + * this sample code.
  321.13 + */
  321.14 +
  321.15 +
  321.16  package com.sun.demo.scripting.jconsole;
  321.17  
  321.18  import com.sun.tools.jconsole.*;
   322.1 --- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java	Mon Aug 29 17:09:35 2011 -0700
   322.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java	Wed Aug 31 09:56:44 2011 -0700
   322.3 @@ -29,6 +29,15 @@
   322.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   322.5   */
   322.6  
   322.7 +/*
   322.8 + * This source code is provided to illustrate the usage of a given feature
   322.9 + * or technique and has been deliberately simplified. Additional steps
  322.10 + * required for a production-quality application, such as security checks,
  322.11 + * input validation and proper error handling, might not be present in
  322.12 + * this sample code.
  322.13 + */
  322.14 +
  322.15 +
  322.16  package com.sun.demo.scripting.jconsole;
  322.17  
  322.18  import java.awt.*;
   323.1 --- a/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js	Mon Aug 29 17:09:35 2011 -0700
   323.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js	Wed Aug 31 09:56:44 2011 -0700
   323.3 @@ -30,6 +30,15 @@
   323.4   */
   323.5  
   323.6  /*
   323.7 + * This source code is provided to illustrate the usage of a given feature
   323.8 + * or technique and has been deliberately simplified. Additional steps
   323.9 + * required for a production-quality application, such as security checks,
  323.10 + * input validation and proper error handling, might not be present in
  323.11 + * this sample code.
  323.12 + */
  323.13 +
  323.14 +
  323.15 +/*
  323.16   *
  323.17   * Redistribution and use in source and binary forms, with or without
  323.18   * modification, are permitted provided that the following conditions are met:
   324.1 --- a/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js	Mon Aug 29 17:09:35 2011 -0700
   324.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js	Wed Aug 31 09:56:44 2011 -0700
   324.3 @@ -30,6 +30,15 @@
   324.4   */
   324.5  
   324.6  /*
   324.7 + * This source code is provided to illustrate the usage of a given feature
   324.8 + * or technique and has been deliberately simplified. Additional steps
   324.9 + * required for a production-quality application, such as security checks,
  324.10 + * input validation and proper error handling, might not be present in
  324.11 + * this sample code.
  324.12 + */
  324.13 +
  324.14 +
  324.15 +/*
  324.16   * This file defines heapdump function to heap dump
  324.17   * in binary format. User can call this function
  324.18   * based on events. For example, a timer thread can
   325.1 --- a/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js	Mon Aug 29 17:09:35 2011 -0700
   325.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js	Wed Aug 31 09:56:44 2011 -0700
   325.3 @@ -30,6 +30,15 @@
   325.4   */
   325.5  
   325.6  /*
   325.7 + * This source code is provided to illustrate the usage of a given feature
   325.8 + * or technique and has been deliberately simplified. Additional steps
   325.9 + * required for a production-quality application, such as security checks,
  325.10 + * input validation and proper error handling, might not be present in
  325.11 + * this sample code.
  325.12 + */
  325.13 +
  325.14 +
  325.15 +/*
  325.16   * This is sample JavaScript file that can be loaded into script console.
  325.17   * This file prints "hello, world".
  325.18   */
   326.1 --- a/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js	Mon Aug 29 17:09:35 2011 -0700
   326.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js	Wed Aug 31 09:56:44 2011 -0700
   326.3 @@ -30,6 +30,15 @@
   326.4   */
   326.5  
   326.6  /*
   326.7 + * This source code is provided to illustrate the usage of a given feature
   326.8 + * or technique and has been deliberately simplified. Additional steps
   326.9 + * required for a production-quality application, such as security checks,
  326.10 + * input validation and proper error handling, might not be present in
  326.11 + * this sample code.
  326.12 + */
  326.13 +
  326.14 +
  326.15 +/*
  326.16   * This script demonstrates "invokeMBean" function. Instead 
  326.17   * of using MXBean proxy or script wrapper object returned by
  326.18   * 'mbean' function, this file uses direct invoke on MBean.
   327.1 --- a/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js	Mon Aug 29 17:09:35 2011 -0700
   327.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js	Wed Aug 31 09:56:44 2011 -0700
   327.3 @@ -30,6 +30,15 @@
   327.4   */
   327.5  
   327.6  /*
   327.7 + * This source code is provided to illustrate the usage of a given feature
   327.8 + * or technique and has been deliberately simplified. Additional steps
   327.9 + * required for a production-quality application, such as security checks,
  327.10 + * input validation and proper error handling, might not be present in
  327.11 + * this sample code.
  327.12 + */
  327.13 +
  327.14 +
  327.15 +/*
  327.16   * This file defines 'jstack' function to print stack traces of
  327.17   * threads.'jstack' function which can be called once or periodically 
  327.18   * from a timer thread (calling it periodically would slow down the target
   328.1 --- a/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js	Mon Aug 29 17:09:35 2011 -0700
   328.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js	Wed Aug 31 09:56:44 2011 -0700
   328.3 @@ -30,6 +30,15 @@
   328.4   */
   328.5  
   328.6  /*
   328.7 + * This source code is provided to illustrate the usage of a given feature
   328.8 + * or technique and has been deliberately simplified. Additional steps
   328.9 + * required for a production-quality application, such as security checks,
  328.10 + * input validation and proper error handling, might not be present in
  328.11 + * this sample code.
  328.12 + */
  328.13 +
  328.14 +
  328.15 +/*
  328.16   * This code is "ported" from JTop demo. This file defines
  328.17   * 'jtop' function. jtop prints threads sorting by CPU time. 
  328.18   * jtop can be called once or periodically from a timer thread. 
   329.1 --- a/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js	Mon Aug 29 17:09:35 2011 -0700
   329.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js	Wed Aug 31 09:56:44 2011 -0700
   329.3 @@ -30,6 +30,15 @@
   329.4   */
   329.5  
   329.6  /*
   329.7 + * This source code is provided to illustrate the usage of a given feature
   329.8 + * or technique and has been deliberately simplified. Additional steps
   329.9 + * required for a production-quality application, such as security checks,
  329.10 + * input validation and proper error handling, might not be present in
  329.11 + * this sample code.
  329.12 + */
  329.13 +
  329.14 +
  329.15 +/*
  329.16   * This file defines 'sysprops' function to print Java System
  329.17   * properties.'sysprops' function which can be called once or periodically 
  329.18   * from a timer thread (calling it periodically would slow down the target
   330.1 --- a/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js	Mon Aug 29 17:09:35 2011 -0700
   330.2 +++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js	Wed Aug 31 09:56:44 2011 -0700
   330.3 @@ -30,6 +30,15 @@
   330.4   */
   330.5  
   330.6  /*
   330.7 + * This source code is provided to illustrate the usage of a given feature
   330.8 + * or technique and has been deliberately simplified. Additional steps
   330.9 + * required for a production-quality application, such as security checks,
  330.10 + * input validation and proper error handling, might not be present in
  330.11 + * this sample code.
  330.12 + */
  330.13 +
  330.14 +
  330.15 +/*
  330.16   * This script demonstrates "getMBeanAttribute"
  330.17   * and "setMBeanAttribute" functions. Instead of using
  330.18   * MXBean proxy or script wrapper object returned by
   331.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   331.2 +++ b/src/share/sample/README	Wed Aug 31 09:56:44 2011 -0700
   331.3 @@ -0,0 +1,6 @@
   331.4 +The source code provided with samples and demos for the JDK is meant
   331.5 +to illustrate the usage of a given feature or technique and has been
   331.6 +deliberately simplified. Additional steps required for a
   331.7 +production-quality application, such as security checks, input
   331.8 +validation, and proper error handling, might not be present in the
   331.9 +sample code.
   332.1 --- a/src/share/sample/forkjoin/mergesort/MergeDemo.java	Mon Aug 29 17:09:35 2011 -0700
   332.2 +++ b/src/share/sample/forkjoin/mergesort/MergeDemo.java	Wed Aug 31 09:56:44 2011 -0700
   332.3 @@ -29,6 +29,15 @@
   332.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   332.5   */
   332.6  
   332.7 +/*
   332.8 + * This source code is provided to illustrate the usage of a given feature
   332.9 + * or technique and has been deliberately simplified. Additional steps
  332.10 + * required for a production-quality application, such as security checks,
  332.11 + * input validation and proper error handling, might not be present in
  332.12 + * this sample code.
  332.13 + */
  332.14 +
  332.15 +
  332.16  import java.util.Arrays;
  332.17  import java.util.Random;
  332.18  
   333.1 --- a/src/share/sample/forkjoin/mergesort/MergeSort.java	Mon Aug 29 17:09:35 2011 -0700
   333.2 +++ b/src/share/sample/forkjoin/mergesort/MergeSort.java	Wed Aug 31 09:56:44 2011 -0700
   333.3 @@ -29,6 +29,15 @@
   333.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   333.5   */
   333.6  
   333.7 +/*
   333.8 + * This source code is provided to illustrate the usage of a given feature
   333.9 + * or technique and has been deliberately simplified. Additional steps
  333.10 + * required for a production-quality application, such as security checks,
  333.11 + * input validation and proper error handling, might not be present in
  333.12 + * this sample code.
  333.13 + */
  333.14 +
  333.15 +
  333.16  import java.util.Arrays;
  333.17  import java.util.concurrent.ForkJoinPool;
  333.18  import java.util.concurrent.ForkJoinTask;
   334.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java	Mon Aug 29 17:09:35 2011 -0700
   334.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java	Wed Aug 31 09:56:44 2011 -0700
   334.3 @@ -29,6 +29,15 @@
   334.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   334.5   */
   334.6  
   334.7 +/*
   334.8 + * This source code is provided to illustrate the usage of a given feature
   334.9 + * or technique and has been deliberately simplified. Additional steps
  334.10 + * required for a production-quality application, such as security checks,
  334.11 + * input validation and proper error handling, might not be present in
  334.12 + * this sample code.
  334.13 + */
  334.14 +
  334.15 +
  334.16  package com.sun.jmx.examples.scandir;
  334.17  
  334.18  import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
   335.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java	Mon Aug 29 17:09:35 2011 -0700
   335.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java	Wed Aug 31 09:56:44 2011 -0700
   335.3 @@ -29,6 +29,15 @@
   335.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   335.5   */
   335.6  
   335.7 +/*
   335.8 + * This source code is provided to illustrate the usage of a given feature
   335.9 + * or technique and has been deliberately simplified. Additional steps
  335.10 + * required for a production-quality application, such as security checks,
  335.11 + * input validation and proper error handling, might not be present in
  335.12 + * this sample code.
  335.13 + */
  335.14 +
  335.15 +
  335.16  package com.sun.jmx.examples.scandir;
  335.17  
  335.18  import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState;
   336.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java	Mon Aug 29 17:09:35 2011 -0700
   336.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java	Wed Aug 31 09:56:44 2011 -0700
   336.3 @@ -29,6 +29,15 @@
   336.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   336.5   */
   336.6  
   336.7 +/*
   336.8 + * This source code is provided to illustrate the usage of a given feature
   336.9 + * or technique and has been deliberately simplified. Additional steps
  336.10 + * required for a production-quality application, such as security checks,
  336.11 + * input validation and proper error handling, might not be present in
  336.12 + * this sample code.
  336.13 + */
  336.14 +
  336.15 +
  336.16  package com.sun.jmx.examples.scandir;
  336.17  
  336.18  import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
   337.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java	Mon Aug 29 17:09:35 2011 -0700
   337.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java	Wed Aug 31 09:56:44 2011 -0700
   337.3 @@ -29,6 +29,15 @@
   337.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   337.5   */
   337.6  
   337.7 +/*
   337.8 + * This source code is provided to illustrate the usage of a given feature
   337.9 + * or technique and has been deliberately simplified. Additional steps
  337.10 + * required for a production-quality application, such as security checks,
  337.11 + * input validation and proper error handling, might not be present in
  337.12 + * this sample code.
  337.13 + */
  337.14 +
  337.15 +
  337.16  package com.sun.jmx.examples.scandir;
  337.17  
  337.18  import com.sun.jmx.examples.scandir.config.ResultRecord;
   338.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java	Mon Aug 29 17:09:35 2011 -0700
   338.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java	Wed Aug 31 09:56:44 2011 -0700
   338.3 @@ -29,6 +29,15 @@
   338.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   338.5   */
   338.6  
   338.7 +/*
   338.8 + * This source code is provided to illustrate the usage of a given feature
   338.9 + * or technique and has been deliberately simplified. Additional steps
  338.10 + * required for a production-quality application, such as security checks,
  338.11 + * input validation and proper error handling, might not be present in
  338.12 + * this sample code.
  338.13 + */
  338.14 +
  338.15 +
  338.16  package com.sun.jmx.examples.scandir;
  338.17  
  338.18  import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState;
   339.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java	Mon Aug 29 17:09:35 2011 -0700
   339.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java	Wed Aug 31 09:56:44 2011 -0700
   339.3 @@ -29,6 +29,15 @@
   339.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   339.5   */
   339.6  
   339.7 +/*
   339.8 + * This source code is provided to illustrate the usage of a given feature
   339.9 + * or technique and has been deliberately simplified. Additional steps
  339.10 + * required for a production-quality application, such as security checks,
  339.11 + * input validation and proper error handling, might not be present in
  339.12 + * this sample code.
  339.13 + */
  339.14 +
  339.15 +
  339.16  package com.sun.jmx.examples.scandir;
  339.17  
  339.18  import java.net.InetAddress;
   340.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java	Mon Aug 29 17:09:35 2011 -0700
   340.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java	Wed Aug 31 09:56:44 2011 -0700
   340.3 @@ -29,6 +29,15 @@
   340.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   340.5   */
   340.6  
   340.7 +/*
   340.8 + * This source code is provided to illustrate the usage of a given feature
   340.9 + * or technique and has been deliberately simplified. Additional steps
  340.10 + * required for a production-quality application, such as security checks,
  340.11 + * input validation and proper error handling, might not be present in
  340.12 + * this sample code.
  340.13 + */
  340.14 +
  340.15 +
  340.16  package com.sun.jmx.examples.scandir;
  340.17  
  340.18  import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
   341.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java	Mon Aug 29 17:09:35 2011 -0700
   341.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java	Wed Aug 31 09:56:44 2011 -0700
   341.3 @@ -29,6 +29,15 @@
   341.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   341.5   */
   341.6  
   341.7 +/*
   341.8 + * This source code is provided to illustrate the usage of a given feature
   341.9 + * or technique and has been deliberately simplified. Additional steps
  341.10 + * required for a production-quality application, such as security checks,
  341.11 + * input validation and proper error handling, might not be present in
  341.12 + * this sample code.
  341.13 + */
  341.14 +
  341.15 +
  341.16  package com.sun.jmx.examples.scandir;
  341.17  
  341.18  import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig;
   342.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java	Mon Aug 29 17:09:35 2011 -0700
   342.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java	Wed Aug 31 09:56:44 2011 -0700
   342.3 @@ -29,6 +29,15 @@
   342.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   342.5   */
   342.6  
   342.7 +/*
   342.8 + * This source code is provided to illustrate the usage of a given feature
   342.9 + * or technique and has been deliberately simplified. Additional steps
  342.10 + * required for a production-quality application, such as security checks,
  342.11 + * input validation and proper error handling, might not be present in
  342.12 + * this sample code.
  342.13 + */
  342.14 +
  342.15 +
  342.16  package com.sun.jmx.examples.scandir;
  342.17  
  342.18  import static com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState.*;
   343.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java	Mon Aug 29 17:09:35 2011 -0700
   343.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java	Wed Aug 31 09:56:44 2011 -0700
   343.3 @@ -29,6 +29,15 @@
   343.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   343.5   */
   343.6  
   343.7 +/*
   343.8 + * This source code is provided to illustrate the usage of a given feature
   343.9 + * or technique and has been deliberately simplified. Additional steps
  343.10 + * required for a production-quality application, such as security checks,
  343.11 + * input validation and proper error handling, might not be present in
  343.12 + * this sample code.
  343.13 + */
  343.14 +
  343.15 +
  343.16  package com.sun.jmx.examples.scandir;
  343.17  
  343.18  import java.io.IOException;
   344.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java	Mon Aug 29 17:09:35 2011 -0700
   344.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java	Wed Aug 31 09:56:44 2011 -0700
   344.3 @@ -29,6 +29,15 @@
   344.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   344.5   */
   344.6  
   344.7 +/*
   344.8 + * This source code is provided to illustrate the usage of a given feature
   344.9 + * or technique and has been deliberately simplified. Additional steps
  344.10 + * required for a production-quality application, such as security checks,
  344.11 + * input validation and proper error handling, might not be present in
  344.12 + * this sample code.
  344.13 + */
  344.14 +
  344.15 +
  344.16  package com.sun.jmx.examples.scandir.config;
  344.17  
  344.18  import java.io.File;
   345.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java	Mon Aug 29 17:09:35 2011 -0700
   345.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java	Wed Aug 31 09:56:44 2011 -0700
   345.3 @@ -29,6 +29,15 @@
   345.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   345.5   */
   345.6  
   345.7 +/*
   345.8 + * This source code is provided to illustrate the usage of a given feature
   345.9 + * or technique and has been deliberately simplified. Additional steps
  345.10 + * required for a production-quality application, such as security checks,
  345.11 + * input validation and proper error handling, might not be present in
  345.12 + * this sample code.
  345.13 + */
  345.14 +
  345.15 +
  345.16  package com.sun.jmx.examples.scandir.config;
  345.17  
  345.18  import java.io.File;
   346.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java	Mon Aug 29 17:09:35 2011 -0700
   346.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java	Wed Aug 31 09:56:44 2011 -0700
   346.3 @@ -29,6 +29,15 @@
   346.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   346.5   */
   346.6  
   346.7 +/*
   346.8 + * This source code is provided to illustrate the usage of a given feature
   346.9 + * or technique and has been deliberately simplified. Additional steps
  346.10 + * required for a production-quality application, such as security checks,
  346.11 + * input validation and proper error handling, might not be present in
  346.12 + * this sample code.
  346.13 + */
  346.14 +
  346.15 +
  346.16  package com.sun.jmx.examples.scandir.config;
  346.17  
  346.18  import java.util.Arrays;
   347.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java	Mon Aug 29 17:09:35 2011 -0700
   347.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java	Wed Aug 31 09:56:44 2011 -0700
   347.3 @@ -29,6 +29,15 @@
   347.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   347.5   */
   347.6  
   347.7 +/*
   347.8 + * This source code is provided to illustrate the usage of a given feature
   347.9 + * or technique and has been deliberately simplified. Additional steps
  347.10 + * required for a production-quality application, such as security checks,
  347.11 + * input validation and proper error handling, might not be present in
  347.12 + * this sample code.
  347.13 + */
  347.14 +
  347.15 +
  347.16  package com.sun.jmx.examples.scandir.config;
  347.17  
  347.18  import java.util.Date;
   348.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java	Mon Aug 29 17:09:35 2011 -0700
   348.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java	Wed Aug 31 09:56:44 2011 -0700
   348.3 @@ -29,6 +29,15 @@
   348.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   348.5   */
   348.6  
   348.7 +/*
   348.8 + * This source code is provided to illustrate the usage of a given feature
   348.9 + * or technique and has been deliberately simplified. Additional steps
  348.10 + * required for a production-quality application, such as security checks,
  348.11 + * input validation and proper error handling, might not be present in
  348.12 + * this sample code.
  348.13 + */
  348.14 +
  348.15 +
  348.16  package com.sun.jmx.examples.scandir.config;
  348.17  
  348.18  import java.util.Arrays;
   349.1 --- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java	Mon Aug 29 17:09:35 2011 -0700
   349.2 +++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java	Wed Aug 31 09:56:44 2011 -0700
   349.3 @@ -29,6 +29,15 @@
   349.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   349.5   */
   349.6  
   349.7 +/*
   349.8 + * This source code is provided to illustrate the usage of a given feature
   349.9 + * or technique and has been deliberately simplified. Additional steps
  349.10 + * required for a production-quality application, such as security checks,
  349.11 + * input validation and proper error handling, might not be present in
  349.12 + * this sample code.
  349.13 + */
  349.14 +
  349.15 +
  349.16  package com.sun.jmx.examples.scandir.config;
  349.17  
  349.18  import java.io.ByteArrayInputStream;
   350.1 --- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java	Mon Aug 29 17:09:35 2011 -0700
   350.2 +++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java	Wed Aug 31 09:56:44 2011 -0700
   350.3 @@ -29,6 +29,15 @@
   350.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   350.5   */
   350.6  
   350.7 +/*
   350.8 + * This source code is provided to illustrate the usage of a given feature
   350.9 + * or technique and has been deliberately simplified. Additional steps
  350.10 + * required for a production-quality application, such as security checks,
  350.11 + * input validation and proper error handling, might not be present in
  350.12 + * this sample code.
  350.13 + */
  350.14 +
  350.15 +
  350.16  package com.sun.jmx.examples.scandir;
  350.17  
  350.18  import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig;
   351.1 --- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java	Mon Aug 29 17:09:35 2011 -0700
   351.2 +++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java	Wed Aug 31 09:56:44 2011 -0700
   351.3 @@ -29,6 +29,15 @@
   351.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   351.5   */
   351.6  
   351.7 +/*
   351.8 + * This source code is provided to illustrate the usage of a given feature
   351.9 + * or technique and has been deliberately simplified. Additional steps
  351.10 + * required for a production-quality application, such as security checks,
  351.11 + * input validation and proper error handling, might not be present in
  351.12 + * this sample code.
  351.13 + */
  351.14 +
  351.15 +
  351.16  package com.sun.jmx.examples.scandir;
  351.17  
  351.18  import com.sun.jmx.examples.scandir.config.XmlConfigUtils;
   352.1 --- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java	Mon Aug 29 17:09:35 2011 -0700
   352.2 +++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java	Wed Aug 31 09:56:44 2011 -0700
   352.3 @@ -29,6 +29,15 @@
   352.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   352.5   */
   352.6  
   352.7 +/*
   352.8 + * This source code is provided to illustrate the usage of a given feature
   352.9 + * or technique and has been deliberately simplified. Additional steps
  352.10 + * required for a production-quality application, such as security checks,
  352.11 + * input validation and proper error handling, might not be present in
  352.12 + * this sample code.
  352.13 + */
  352.14 +
  352.15 +
  352.16  package com.sun.jmx.examples.scandir;
  352.17  
  352.18  import java.util.concurrent.LinkedBlockingQueue;
   353.1 --- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java	Mon Aug 29 17:09:35 2011 -0700
   353.2 +++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java	Wed Aug 31 09:56:44 2011 -0700
   353.3 @@ -29,6 +29,15 @@
   353.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   353.5   */
   353.6  
   353.7 +/*
   353.8 + * This source code is provided to illustrate the usage of a given feature
   353.9 + * or technique and has been deliberately simplified. Additional steps
  353.10 + * required for a production-quality application, such as security checks,
  353.11 + * input validation and proper error handling, might not be present in
  353.12 + * this sample code.
  353.13 + */
  353.14 +
  353.15 +
  353.16  package com.sun.jmx.examples.scandir;
  353.17  
  353.18  import java.lang.reflect.InvocationHandler;
   354.1 --- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java	Mon Aug 29 17:09:35 2011 -0700
   354.2 +++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java	Wed Aug 31 09:56:44 2011 -0700
   354.3 @@ -29,6 +29,15 @@
   354.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   354.5   */
   354.6  
   354.7 +/*
   354.8 + * This source code is provided to illustrate the usage of a given feature
   354.9 + * or technique and has been deliberately simplified. Additional steps
  354.10 + * required for a production-quality application, such as security checks,
  354.11 + * input validation and proper error handling, might not be present in
  354.12 + * this sample code.
  354.13 + */
  354.14 +
  354.15 +
  354.16  package com.sun.jmx.examples.scandir.config;
  354.17  
  354.18  import junit.framework.*;
   355.1 --- a/src/share/sample/nio/chatserver/ChatServer.java	Mon Aug 29 17:09:35 2011 -0700
   355.2 +++ b/src/share/sample/nio/chatserver/ChatServer.java	Wed Aug 31 09:56:44 2011 -0700
   355.3 @@ -29,6 +29,15 @@
   355.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   355.5   */
   355.6  
   355.7 +/*
   355.8 + * This source code is provided to illustrate the usage of a given feature
   355.9 + * or technique and has been deliberately simplified. Additional steps
  355.10 + * required for a production-quality application, such as security checks,
  355.11 + * input validation and proper error handling, might not be present in
  355.12 + * this sample code.
  355.13 + */
  355.14 +
  355.15 +
  355.16  import java.io.IOException;
  355.17  import java.net.InetSocketAddress;
  355.18  import java.net.SocketAddress;
   356.1 --- a/src/share/sample/nio/chatserver/Client.java	Mon Aug 29 17:09:35 2011 -0700
   356.2 +++ b/src/share/sample/nio/chatserver/Client.java	Wed Aug 31 09:56:44 2011 -0700
   356.3 @@ -29,6 +29,15 @@
   356.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   356.5   */
   356.6  
   356.7 +/*
   356.8 + * This source code is provided to illustrate the usage of a given feature
   356.9 + * or technique and has been deliberately simplified. Additional steps
  356.10 + * required for a production-quality application, such as security checks,
  356.11 + * input validation and proper error handling, might not be present in
  356.12 + * this sample code.
  356.13 + */
  356.14 +
  356.15 +
  356.16  import java.io.IOException;
  356.17  import java.nio.ByteBuffer;
  356.18  import java.nio.channels.AsynchronousSocketChannel;
   357.1 --- a/src/share/sample/nio/chatserver/ClientReader.java	Mon Aug 29 17:09:35 2011 -0700
   357.2 +++ b/src/share/sample/nio/chatserver/ClientReader.java	Wed Aug 31 09:56:44 2011 -0700
   357.3 @@ -29,6 +29,15 @@
   357.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   357.5   */
   357.6  
   357.7 +/*
   357.8 + * This source code is provided to illustrate the usage of a given feature
   357.9 + * or technique and has been deliberately simplified. Additional steps
  357.10 + * required for a production-quality application, such as security checks,
  357.11 + * input validation and proper error handling, might not be present in
  357.12 + * this sample code.
  357.13 + */
  357.14 +
  357.15 +
  357.16  import java.nio.ByteBuffer;
  357.17  import java.nio.channels.CompletionHandler;
  357.18  
   358.1 --- a/src/share/sample/nio/chatserver/DataReader.java	Mon Aug 29 17:09:35 2011 -0700
   358.2 +++ b/src/share/sample/nio/chatserver/DataReader.java	Wed Aug 31 09:56:44 2011 -0700
   358.3 @@ -29,6 +29,15 @@
   358.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   358.5   */
   358.6  
   358.7 +/*
   358.8 + * This source code is provided to illustrate the usage of a given feature
   358.9 + * or technique and has been deliberately simplified. Additional steps
  358.10 + * required for a production-quality application, such as security checks,
  358.11 + * input validation and proper error handling, might not be present in
  358.12 + * this sample code.
  358.13 + */
  358.14 +
  358.15 +
  358.16  import java.nio.ByteBuffer;
  358.17  
  358.18  public interface DataReader {
   359.1 --- a/src/share/sample/nio/chatserver/MessageReader.java	Mon Aug 29 17:09:35 2011 -0700
   359.2 +++ b/src/share/sample/nio/chatserver/MessageReader.java	Wed Aug 31 09:56:44 2011 -0700
   359.3 @@ -29,6 +29,15 @@
   359.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   359.5   */
   359.6  
   359.7 +/*
   359.8 + * This source code is provided to illustrate the usage of a given feature
   359.9 + * or technique and has been deliberately simplified. Additional steps
  359.10 + * required for a production-quality application, such as security checks,
  359.11 + * input validation and proper error handling, might not be present in
  359.12 + * this sample code.
  359.13 + */
  359.14 +
  359.15 +
  359.16  import java.nio.ByteBuffer;
  359.17  
  359.18  /**
   360.1 --- a/src/share/sample/nio/chatserver/NameReader.java	Mon Aug 29 17:09:35 2011 -0700
   360.2 +++ b/src/share/sample/nio/chatserver/NameReader.java	Wed Aug 31 09:56:44 2011 -0700
   360.3 @@ -29,6 +29,15 @@
   360.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   360.5   */
   360.6  
   360.7 +/*
   360.8 + * This source code is provided to illustrate the usage of a given feature
   360.9 + * or technique and has been deliberately simplified. Additional steps
  360.10 + * required for a production-quality application, such as security checks,
  360.11 + * input validation and proper error handling, might not be present in
  360.12 + * this sample code.
  360.13 + */
  360.14 +
  360.15 +
  360.16  import java.nio.ByteBuffer;
  360.17  
  360.18  /**
   361.1 --- a/src/share/sample/nio/file/AclEdit.java	Mon Aug 29 17:09:35 2011 -0700
   361.2 +++ b/src/share/sample/nio/file/AclEdit.java	Wed Aug 31 09:56:44 2011 -0700
   361.3 @@ -29,6 +29,15 @@
   361.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   361.5   */
   361.6  
   361.7 +/*
   361.8 + * This source code is provided to illustrate the usage of a given feature
   361.9 + * or technique and has been deliberately simplified. Additional steps
  361.10 + * required for a production-quality application, such as security checks,
  361.11 + * input validation and proper error handling, might not be present in
  361.12 + * this sample code.
  361.13 + */
  361.14 +
  361.15 +
  361.16  import java.nio.file.*;
  361.17  import java.nio.file.attribute.*;
  361.18  import java.io.IOException;
   362.1 --- a/src/share/sample/nio/file/Chmod.java	Mon Aug 29 17:09:35 2011 -0700
   362.2 +++ b/src/share/sample/nio/file/Chmod.java	Wed Aug 31 09:56:44 2011 -0700
   362.3 @@ -29,6 +29,15 @@
   362.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   362.5   */
   362.6  
   362.7 +/*
   362.8 + * This source code is provided to illustrate the usage of a given feature
   362.9 + * or technique and has been deliberately simplified. Additional steps
  362.10 + * required for a production-quality application, such as security checks,
  362.11 + * input validation and proper error handling, might not be present in
  362.12 + * this sample code.
  362.13 + */
  362.14 +
  362.15 +
  362.16  import java.nio.file.*;
  362.17  import java.nio.file.attribute.*;
  362.18  import static java.nio.file.attribute.PosixFilePermission.*;
   363.1 --- a/src/share/sample/nio/file/Copy.java	Mon Aug 29 17:09:35 2011 -0700
   363.2 +++ b/src/share/sample/nio/file/Copy.java	Wed Aug 31 09:56:44 2011 -0700
   363.3 @@ -29,6 +29,15 @@
   363.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   363.5   */
   363.6  
   363.7 +/*
   363.8 + * This source code is provided to illustrate the usage of a given feature
   363.9 + * or technique and has been deliberately simplified. Additional steps
  363.10 + * required for a production-quality application, such as security checks,
  363.11 + * input validation and proper error handling, might not be present in
  363.12 + * this sample code.
  363.13 + */
  363.14 +
  363.15 +
  363.16  import java.nio.file.*;
  363.17  import static java.nio.file.StandardCopyOption.*;
  363.18  import java.nio.file.attribute.*;
   364.1 --- a/src/share/sample/nio/file/DiskUsage.java	Mon Aug 29 17:09:35 2011 -0700
   364.2 +++ b/src/share/sample/nio/file/DiskUsage.java	Wed Aug 31 09:56:44 2011 -0700
   364.3 @@ -29,6 +29,15 @@
   364.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   364.5   */
   364.6  
   364.7 +/*
   364.8 + * This source code is provided to illustrate the usage of a given feature
   364.9 + * or technique and has been deliberately simplified. Additional steps
  364.10 + * required for a production-quality application, such as security checks,
  364.11 + * input validation and proper error handling, might not be present in
  364.12 + * this sample code.
  364.13 + */
  364.14 +
  364.15 +
  364.16  import java.nio.file.*;
  364.17  import java.nio.file.attribute.*;
  364.18  import java.io.IOException;
   365.1 --- a/src/share/sample/nio/file/FileType.java	Mon Aug 29 17:09:35 2011 -0700
   365.2 +++ b/src/share/sample/nio/file/FileType.java	Wed Aug 31 09:56:44 2011 -0700
   365.3 @@ -29,6 +29,15 @@
   365.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   365.5   */
   365.6  
   365.7 +/*
   365.8 + * This source code is provided to illustrate the usage of a given feature
   365.9 + * or technique and has been deliberately simplified. Additional steps
  365.10 + * required for a production-quality application, such as security checks,
  365.11 + * input validation and proper error handling, might not be present in
  365.12 + * this sample code.
  365.13 + */
  365.14 +
  365.15 +
  365.16  import java.nio.file.*;
  365.17  import java.io.IOException;
  365.18  
   366.1 --- a/src/share/sample/nio/file/WatchDir.java	Mon Aug 29 17:09:35 2011 -0700
   366.2 +++ b/src/share/sample/nio/file/WatchDir.java	Wed Aug 31 09:56:44 2011 -0700
   366.3 @@ -29,6 +29,15 @@
   366.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   366.5   */
   366.6  
   366.7 +/*
   366.8 + * This source code is provided to illustrate the usage of a given feature
   366.9 + * or technique and has been deliberately simplified. Additional steps
  366.10 + * required for a production-quality application, such as security checks,
  366.11 + * input validation and proper error handling, might not be present in
  366.12 + * this sample code.
  366.13 + */
  366.14 +
  366.15 +
  366.16  import java.nio.file.*;
  366.17  import static java.nio.file.StandardWatchEventKinds.*;
  366.18  import static java.nio.file.LinkOption.*;
   367.1 --- a/src/share/sample/nio/file/Xdd.java	Mon Aug 29 17:09:35 2011 -0700
   367.2 +++ b/src/share/sample/nio/file/Xdd.java	Wed Aug 31 09:56:44 2011 -0700
   367.3 @@ -29,6 +29,15 @@
   367.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   367.5   */
   367.6  
   367.7 +/*
   367.8 + * This source code is provided to illustrate the usage of a given feature
   367.9 + * or technique and has been deliberately simplified. Additional steps
  367.10 + * required for a production-quality application, such as security checks,
  367.11 + * input validation and proper error handling, might not be present in
  367.12 + * this sample code.
  367.13 + */
  367.14 +
  367.15 +
  367.16  import java.nio.ByteBuffer;
  367.17  import java.nio.charset.Charset;
  367.18  import java.nio.file.*;
   368.1 --- a/src/share/sample/nio/multicast/MulticastAddress.java	Mon Aug 29 17:09:35 2011 -0700
   368.2 +++ b/src/share/sample/nio/multicast/MulticastAddress.java	Wed Aug 31 09:56:44 2011 -0700
   368.3 @@ -29,6 +29,15 @@
   368.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   368.5   */
   368.6  
   368.7 +/*
   368.8 + * This source code is provided to illustrate the usage of a given feature
   368.9 + * or technique and has been deliberately simplified. Additional steps
  368.10 + * required for a production-quality application, such as security checks,
  368.11 + * input validation and proper error handling, might not be present in
  368.12 + * this sample code.
  368.13 + */
  368.14 +
  368.15 +
  368.16  import java.net.InetAddress;
  368.17  import java.net.NetworkInterface;
  368.18  import java.net.UnknownHostException;
   369.1 --- a/src/share/sample/nio/multicast/Reader.java	Mon Aug 29 17:09:35 2011 -0700
   369.2 +++ b/src/share/sample/nio/multicast/Reader.java	Wed Aug 31 09:56:44 2011 -0700
   369.3 @@ -29,6 +29,15 @@
   369.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   369.5   */
   369.6  
   369.7 +/*
   369.8 + * This source code is provided to illustrate the usage of a given feature
   369.9 + * or technique and has been deliberately simplified. Additional steps
  369.10 + * required for a production-quality application, such as security checks,
  369.11 + * input validation and proper error handling, might not be present in
  369.12 + * this sample code.
  369.13 + */
  369.14 +
  369.15 +
  369.16  import java.nio.channels.*;
  369.17  import java.nio.charset.*;
  369.18  import java.nio.ByteBuffer;
   370.1 --- a/src/share/sample/nio/multicast/Sender.java	Mon Aug 29 17:09:35 2011 -0700
   370.2 +++ b/src/share/sample/nio/multicast/Sender.java	Wed Aug 31 09:56:44 2011 -0700
   370.3 @@ -29,6 +29,15 @@
   370.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   370.5   */
   370.6  
   370.7 +/*
   370.8 + * This source code is provided to illustrate the usage of a given feature
   370.9 + * or technique and has been deliberately simplified. Additional steps
  370.10 + * required for a production-quality application, such as security checks,
  370.11 + * input validation and proper error handling, might not be present in
  370.12 + * this sample code.
  370.13 + */
  370.14 +
  370.15 +
  370.16  import java.nio.channels.*;
  370.17  import java.nio.charset.Charset;
  370.18  import java.net.*;
   371.1 --- a/src/share/sample/nio/server/AcceptHandler.java	Mon Aug 29 17:09:35 2011 -0700
   371.2 +++ b/src/share/sample/nio/server/AcceptHandler.java	Wed Aug 31 09:56:44 2011 -0700
   371.3 @@ -29,6 +29,15 @@
   371.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   371.5   */
   371.6  
   371.7 +/*
   371.8 + * This source code is provided to illustrate the usage of a given feature
   371.9 + * or technique and has been deliberately simplified. Additional steps
  371.10 + * required for a production-quality application, such as security checks,
  371.11 + * input validation and proper error handling, might not be present in
  371.12 + * this sample code.
  371.13 + */
  371.14 +
  371.15 +
  371.16  import java.io.*;
  371.17  import java.nio.channels.*;
  371.18  import javax.net.ssl.*;
   372.1 --- a/src/share/sample/nio/server/Acceptor.java	Mon Aug 29 17:09:35 2011 -0700
   372.2 +++ b/src/share/sample/nio/server/Acceptor.java	Wed Aug 31 09:56:44 2011 -0700
   372.3 @@ -29,6 +29,15 @@
   372.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   372.5   */
   372.6  
   372.7 +/*
   372.8 + * This source code is provided to illustrate the usage of a given feature
   372.9 + * or technique and has been deliberately simplified. Additional steps
  372.10 + * required for a production-quality application, such as security checks,
  372.11 + * input validation and proper error handling, might not be present in
  372.12 + * this sample code.
  372.13 + */
  372.14 +
  372.15 +
  372.16  import java.io.*;
  372.17  import java.nio.channels.*;
  372.18  import javax.net.ssl.*;
   373.1 --- a/src/share/sample/nio/server/B1.java	Mon Aug 29 17:09:35 2011 -0700
   373.2 +++ b/src/share/sample/nio/server/B1.java	Wed Aug 31 09:56:44 2011 -0700
   373.3 @@ -29,6 +29,15 @@
   373.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   373.5   */
   373.6  
   373.7 +/*
   373.8 + * This source code is provided to illustrate the usage of a given feature
   373.9 + * or technique and has been deliberately simplified. Additional steps
  373.10 + * required for a production-quality application, such as security checks,
  373.11 + * input validation and proper error handling, might not be present in
  373.12 + * this sample code.
  373.13 + */
  373.14 +
  373.15 +
  373.16  import java.nio.channels.*;
  373.17  
  373.18  /**
   374.1 --- a/src/share/sample/nio/server/BN.java	Mon Aug 29 17:09:35 2011 -0700
   374.2 +++ b/src/share/sample/nio/server/BN.java	Wed Aug 31 09:56:44 2011 -0700
   374.3 @@ -29,6 +29,15 @@
   374.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   374.5   */
   374.6  
   374.7 +/*
   374.8 + * This source code is provided to illustrate the usage of a given feature
   374.9 + * or technique and has been deliberately simplified. Additional steps
  374.10 + * required for a production-quality application, such as security checks,
  374.11 + * input validation and proper error handling, might not be present in
  374.12 + * this sample code.
  374.13 + */
  374.14 +
  374.15 +
  374.16  import java.io.*;
  374.17  import java.nio.channels.*;
  374.18  
   375.1 --- a/src/share/sample/nio/server/BP.java	Mon Aug 29 17:09:35 2011 -0700
   375.2 +++ b/src/share/sample/nio/server/BP.java	Wed Aug 31 09:56:44 2011 -0700
   375.3 @@ -29,6 +29,15 @@
   375.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   375.5   */
   375.6  
   375.7 +/*
   375.8 + * This source code is provided to illustrate the usage of a given feature
   375.9 + * or technique and has been deliberately simplified. Additional steps
  375.10 + * required for a production-quality application, such as security checks,
  375.11 + * input validation and proper error handling, might not be present in
  375.12 + * this sample code.
  375.13 + */
  375.14 +
  375.15 +
  375.16  import java.nio.channels.*;
  375.17  import java.util.concurrent.*;
  375.18  
   376.1 --- a/src/share/sample/nio/server/ChannelIO.java	Mon Aug 29 17:09:35 2011 -0700
   376.2 +++ b/src/share/sample/nio/server/ChannelIO.java	Wed Aug 31 09:56:44 2011 -0700
   376.3 @@ -29,6 +29,15 @@
   376.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   376.5   */
   376.6  
   376.7 +/*
   376.8 + * This source code is provided to illustrate the usage of a given feature
   376.9 + * or technique and has been deliberately simplified. Additional steps
  376.10 + * required for a production-quality application, such as security checks,
  376.11 + * input validation and proper error handling, might not be present in
  376.12 + * this sample code.
  376.13 + */
  376.14 +
  376.15 +
  376.16  import java.io.*;
  376.17  import java.nio.*;
  376.18  import java.nio.channels.*;
   377.1 --- a/src/share/sample/nio/server/ChannelIOSecure.java	Mon Aug 29 17:09:35 2011 -0700
   377.2 +++ b/src/share/sample/nio/server/ChannelIOSecure.java	Wed Aug 31 09:56:44 2011 -0700
   377.3 @@ -29,6 +29,15 @@
   377.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   377.5   */
   377.6  
   377.7 +/*
   377.8 + * This source code is provided to illustrate the usage of a given feature
   377.9 + * or technique and has been deliberately simplified. Additional steps
  377.10 + * required for a production-quality application, such as security checks,
  377.11 + * input validation and proper error handling, might not be present in
  377.12 + * this sample code.
  377.13 + */
  377.14 +
  377.15 +
  377.16  import java.io.*;
  377.17  import java.nio.*;
  377.18  import java.nio.channels.*;
   378.1 --- a/src/share/sample/nio/server/Content.java	Mon Aug 29 17:09:35 2011 -0700
   378.2 +++ b/src/share/sample/nio/server/Content.java	Wed Aug 31 09:56:44 2011 -0700
   378.3 @@ -29,6 +29,15 @@
   378.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   378.5   */
   378.6  
   378.7 +/*
   378.8 + * This source code is provided to illustrate the usage of a given feature
   378.9 + * or technique and has been deliberately simplified. Additional steps
  378.10 + * required for a production-quality application, such as security checks,
  378.11 + * input validation and proper error handling, might not be present in
  378.12 + * this sample code.
  378.13 + */
  378.14 +
  378.15 +
  378.16  /**
  378.17   * An Sendable interface extension that adds additional
  378.18   * methods for additional information, such as Files
   379.1 --- a/src/share/sample/nio/server/Dispatcher.java	Mon Aug 29 17:09:35 2011 -0700
   379.2 +++ b/src/share/sample/nio/server/Dispatcher.java	Wed Aug 31 09:56:44 2011 -0700
   379.3 @@ -29,6 +29,15 @@
   379.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   379.5   */
   379.6  
   379.7 +/*
   379.8 + * This source code is provided to illustrate the usage of a given feature
   379.9 + * or technique and has been deliberately simplified. Additional steps
  379.10 + * required for a production-quality application, such as security checks,
  379.11 + * input validation and proper error handling, might not be present in
  379.12 + * this sample code.
  379.13 + */
  379.14 +
  379.15 +
  379.16  import java.io.*;
  379.17  import java.nio.channels.*;
  379.18  
   380.1 --- a/src/share/sample/nio/server/Dispatcher1.java	Mon Aug 29 17:09:35 2011 -0700
   380.2 +++ b/src/share/sample/nio/server/Dispatcher1.java	Wed Aug 31 09:56:44 2011 -0700
   380.3 @@ -29,6 +29,15 @@
   380.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   380.5   */
   380.6  
   380.7 +/*
   380.8 + * This source code is provided to illustrate the usage of a given feature
   380.9 + * or technique and has been deliberately simplified. Additional steps
  380.10 + * required for a production-quality application, such as security checks,
  380.11 + * input validation and proper error handling, might not be present in
  380.12 + * this sample code.
  380.13 + */
  380.14 +
  380.15 +
  380.16  import java.io.*;
  380.17  import java.nio.channels.*;
  380.18  import java.util.*;
   381.1 --- a/src/share/sample/nio/server/DispatcherN.java	Mon Aug 29 17:09:35 2011 -0700
   381.2 +++ b/src/share/sample/nio/server/DispatcherN.java	Wed Aug 31 09:56:44 2011 -0700
   381.3 @@ -29,6 +29,15 @@
   381.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   381.5   */
   381.6  
   381.7 +/*
   381.8 + * This source code is provided to illustrate the usage of a given feature
   381.9 + * or technique and has been deliberately simplified. Additional steps
  381.10 + * required for a production-quality application, such as security checks,
  381.11 + * input validation and proper error handling, might not be present in
  381.12 + * this sample code.
  381.13 + */
  381.14 +
  381.15 +
  381.16  import java.io.*;
  381.17  import java.nio.channels.*;
  381.18  import java.util.*;
   382.1 --- a/src/share/sample/nio/server/FileContent.java	Mon Aug 29 17:09:35 2011 -0700
   382.2 +++ b/src/share/sample/nio/server/FileContent.java	Wed Aug 31 09:56:44 2011 -0700
   382.3 @@ -29,6 +29,15 @@
   382.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   382.5   */
   382.6  
   382.7 +/*
   382.8 + * This source code is provided to illustrate the usage of a given feature
   382.9 + * or technique and has been deliberately simplified. Additional steps
  382.10 + * required for a production-quality application, such as security checks,
  382.11 + * input validation and proper error handling, might not be present in
  382.12 + * this sample code.
  382.13 + */
  382.14 +
  382.15 +
  382.16  import java.io.*;
  382.17  import java.net.*;
  382.18  import java.nio.channels.*;
   383.1 --- a/src/share/sample/nio/server/Handler.java	Mon Aug 29 17:09:35 2011 -0700
   383.2 +++ b/src/share/sample/nio/server/Handler.java	Wed Aug 31 09:56:44 2011 -0700
   383.3 @@ -29,6 +29,15 @@
   383.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   383.5   */
   383.6  
   383.7 +/*
   383.8 + * This source code is provided to illustrate the usage of a given feature
   383.9 + * or technique and has been deliberately simplified. Additional steps
  383.10 + * required for a production-quality application, such as security checks,
  383.11 + * input validation and proper error handling, might not be present in
  383.12 + * this sample code.
  383.13 + */
  383.14 +
  383.15 +
  383.16  import java.io.*;
  383.17  import java.nio.channels.*;
  383.18  
   384.1 --- a/src/share/sample/nio/server/MalformedRequestException.java	Mon Aug 29 17:09:35 2011 -0700
   384.2 +++ b/src/share/sample/nio/server/MalformedRequestException.java	Wed Aug 31 09:56:44 2011 -0700
   384.3 @@ -29,6 +29,15 @@
   384.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   384.5   */
   384.6  
   384.7 +/*
   384.8 + * This source code is provided to illustrate the usage of a given feature
   384.9 + * or technique and has been deliberately simplified. Additional steps
  384.10 + * required for a production-quality application, such as security checks,
  384.11 + * input validation and proper error handling, might not be present in
  384.12 + * this sample code.
  384.13 + */
  384.14 +
  384.15 +
  384.16  /**
  384.17   * Exception class used when a request can't be properly parsed.
  384.18   *
   385.1 --- a/src/share/sample/nio/server/N1.java	Mon Aug 29 17:09:35 2011 -0700
   385.2 +++ b/src/share/sample/nio/server/N1.java	Wed Aug 31 09:56:44 2011 -0700
   385.3 @@ -29,6 +29,15 @@
   385.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   385.5   */
   385.6  
   385.7 +/*
   385.8 + * This source code is provided to illustrate the usage of a given feature
   385.9 + * or technique and has been deliberately simplified. Additional steps
  385.10 + * required for a production-quality application, such as security checks,
  385.11 + * input validation and proper error handling, might not be present in
  385.12 + * this sample code.
  385.13 + */
  385.14 +
  385.15 +
  385.16  import java.nio.channels.*;
  385.17  
  385.18  /**
   386.1 --- a/src/share/sample/nio/server/N2.java	Mon Aug 29 17:09:35 2011 -0700
   386.2 +++ b/src/share/sample/nio/server/N2.java	Wed Aug 31 09:56:44 2011 -0700
   386.3 @@ -29,6 +29,15 @@
   386.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   386.5   */
   386.6  
   386.7 +/*
   386.8 + * This source code is provided to illustrate the usage of a given feature
   386.9 + * or technique and has been deliberately simplified. Additional steps
  386.10 + * required for a production-quality application, such as security checks,
  386.11 + * input validation and proper error handling, might not be present in
  386.12 + * this sample code.
  386.13 + */
  386.14 +
  386.15 +
  386.16  /**
  386.17   * A non-blocking/dual-threaded which performs accept()s in one thread,
  386.18   * and services requests in a second.  Both threads use select().
   387.1 --- a/src/share/sample/nio/server/Reply.java	Mon Aug 29 17:09:35 2011 -0700
   387.2 +++ b/src/share/sample/nio/server/Reply.java	Wed Aug 31 09:56:44 2011 -0700
   387.3 @@ -29,6 +29,15 @@
   387.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   387.5   */
   387.6  
   387.7 +/*
   387.8 + * This source code is provided to illustrate the usage of a given feature
   387.9 + * or technique and has been deliberately simplified. Additional steps
  387.10 + * required for a production-quality application, such as security checks,
  387.11 + * input validation and proper error handling, might not be present in
  387.12 + * this sample code.
  387.13 + */
  387.14 +
  387.15 +
  387.16  import java.io.*;
  387.17  import java.nio.*;
  387.18  import java.nio.charset.*;
   388.1 --- a/src/share/sample/nio/server/Request.java	Mon Aug 29 17:09:35 2011 -0700
   388.2 +++ b/src/share/sample/nio/server/Request.java	Wed Aug 31 09:56:44 2011 -0700
   388.3 @@ -29,6 +29,15 @@
   388.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   388.5   */
   388.6  
   388.7 +/*
   388.8 + * This source code is provided to illustrate the usage of a given feature
   388.9 + * or technique and has been deliberately simplified. Additional steps
  388.10 + * required for a production-quality application, such as security checks,
  388.11 + * input validation and proper error handling, might not be present in
  388.12 + * this sample code.
  388.13 + */
  388.14 +
  388.15 +
  388.16  import java.net.*;
  388.17  import java.nio.*;
  388.18  import java.nio.charset.*;
   389.1 --- a/src/share/sample/nio/server/RequestHandler.java	Mon Aug 29 17:09:35 2011 -0700
   389.2 +++ b/src/share/sample/nio/server/RequestHandler.java	Wed Aug 31 09:56:44 2011 -0700
   389.3 @@ -29,6 +29,15 @@
   389.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   389.5   */
   389.6  
   389.7 +/*
   389.8 + * This source code is provided to illustrate the usage of a given feature
   389.9 + * or technique and has been deliberately simplified. Additional steps
  389.10 + * required for a production-quality application, such as security checks,
  389.11 + * input validation and proper error handling, might not be present in
  389.12 + * this sample code.
  389.13 + */
  389.14 +
  389.15 +
  389.16  import java.io.*;
  389.17  import java.nio.*;
  389.18  import java.nio.channels.*;
   390.1 --- a/src/share/sample/nio/server/RequestServicer.java	Mon Aug 29 17:09:35 2011 -0700
   390.2 +++ b/src/share/sample/nio/server/RequestServicer.java	Wed Aug 31 09:56:44 2011 -0700
   390.3 @@ -29,6 +29,15 @@
   390.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   390.5   */
   390.6  
   390.7 +/*
   390.8 + * This source code is provided to illustrate the usage of a given feature
   390.9 + * or technique and has been deliberately simplified. Additional steps
  390.10 + * required for a production-quality application, such as security checks,
  390.11 + * input validation and proper error handling, might not be present in
  390.12 + * this sample code.
  390.13 + */
  390.14 +
  390.15 +
  390.16  import java.io.*;
  390.17  import java.nio.*;
  390.18  
   391.1 --- a/src/share/sample/nio/server/Sendable.java	Mon Aug 29 17:09:35 2011 -0700
   391.2 +++ b/src/share/sample/nio/server/Sendable.java	Wed Aug 31 09:56:44 2011 -0700
   391.3 @@ -29,6 +29,15 @@
   391.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   391.5   */
   391.6  
   391.7 +/*
   391.8 + * This source code is provided to illustrate the usage of a given feature
   391.9 + * or technique and has been deliberately simplified. Additional steps
  391.10 + * required for a production-quality application, such as security checks,
  391.11 + * input validation and proper error handling, might not be present in
  391.12 + * this sample code.
  391.13 + */
  391.14 +
  391.15 +
  391.16  import java.io.*;
  391.17  
  391.18  /**
   392.1 --- a/src/share/sample/nio/server/Server.java	Mon Aug 29 17:09:35 2011 -0700
   392.2 +++ b/src/share/sample/nio/server/Server.java	Wed Aug 31 09:56:44 2011 -0700
   392.3 @@ -29,6 +29,15 @@
   392.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   392.5   */
   392.6  
   392.7 +/*
   392.8 + * This source code is provided to illustrate the usage of a given feature
   392.9 + * or technique and has been deliberately simplified. Additional steps
  392.10 + * required for a production-quality application, such as security checks,
  392.11 + * input validation and proper error handling, might not be present in
  392.12 + * this sample code.
  392.13 + */
  392.14 +
  392.15 +
  392.16  import java.io.*;
  392.17  import java.net.*;
  392.18  import java.nio.channels.*;
   393.1 --- a/src/share/sample/nio/server/StringContent.java	Mon Aug 29 17:09:35 2011 -0700
   393.2 +++ b/src/share/sample/nio/server/StringContent.java	Wed Aug 31 09:56:44 2011 -0700
   393.3 @@ -29,6 +29,15 @@
   393.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   393.5   */
   393.6  
   393.7 +/*
   393.8 + * This source code is provided to illustrate the usage of a given feature
   393.9 + * or technique and has been deliberately simplified. Additional steps
  393.10 + * required for a production-quality application, such as security checks,
  393.11 + * input validation and proper error handling, might not be present in
  393.12 + * this sample code.
  393.13 + */
  393.14 +
  393.15 +
  393.16  import java.io.*;
  393.17  import java.nio.*;
  393.18  import java.nio.charset.*;
   394.1 --- a/src/share/sample/nio/server/URLDumper.java	Mon Aug 29 17:09:35 2011 -0700
   394.2 +++ b/src/share/sample/nio/server/URLDumper.java	Wed Aug 31 09:56:44 2011 -0700
   394.3 @@ -29,6 +29,15 @@
   394.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   394.5   */
   394.6  
   394.7 +/*
   394.8 + * This source code is provided to illustrate the usage of a given feature
   394.9 + * or technique and has been deliberately simplified. Additional steps
  394.10 + * required for a production-quality application, such as security checks,
  394.11 + * input validation and proper error handling, might not be present in
  394.12 + * this sample code.
  394.13 + */
  394.14 +
  394.15 +
  394.16  import java.io.*;
  394.17  import java.net.*;
  394.18  
   395.1 --- a/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java	Mon Aug 29 17:09:35 2011 -0700
   395.2 +++ b/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java	Wed Aug 31 09:56:44 2011 -0700
   395.3 @@ -29,6 +29,15 @@
   395.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   395.5   */
   395.6  
   395.7 +/*
   395.8 + * This source code is provided to illustrate the usage of a given feature
   395.9 + * or technique and has been deliberately simplified. Additional steps
  395.10 + * required for a production-quality application, such as security checks,
  395.11 + * input validation and proper error handling, might not be present in
  395.12 + * this sample code.
  395.13 + */
  395.14 +
  395.15 +
  395.16  package com.sun.sample.scriptpad;
  395.17  
  395.18  import javax.script.*;
   396.1 --- a/src/share/sample/scripting/scriptpad/src/resources/Main.js	Mon Aug 29 17:09:35 2011 -0700
   396.2 +++ b/src/share/sample/scripting/scriptpad/src/resources/Main.js	Wed Aug 31 09:56:44 2011 -0700
   396.3 @@ -30,6 +30,15 @@
   396.4   */
   396.5  
   396.6  /*
   396.7 + * This source code is provided to illustrate the usage of a given feature
   396.8 + * or technique and has been deliberately simplified. Additional steps
   396.9 + * required for a production-quality application, such as security checks,
  396.10 + * input validation and proper error handling, might not be present in
  396.11 + * this sample code.
  396.12 + */
  396.13 +
  396.14 +
  396.15 +/*
  396.16   * This script can be loaded in jrunscript to start scriptpad.
  396.17   *
  396.18   *    jrunscript -f Main.js -f -
   397.1 --- a/src/share/sample/scripting/scriptpad/src/resources/conc.js	Mon Aug 29 17:09:35 2011 -0700
   397.2 +++ b/src/share/sample/scripting/scriptpad/src/resources/conc.js	Wed Aug 31 09:56:44 2011 -0700
   397.3 @@ -30,6 +30,15 @@
   397.4   */
   397.5  
   397.6  /*
   397.7 + * This source code is provided to illustrate the usage of a given feature
   397.8 + * or technique and has been deliberately simplified. Additional steps
   397.9 + * required for a production-quality application, such as security checks,
  397.10 + * input validation and proper error handling, might not be present in
  397.11 + * this sample code.
  397.12 + */
  397.13 +
  397.14 +
  397.15 +/*
  397.16   * Concurrency utilities for JavaScript. These are based on
  397.17   * java.lang and java.util.concurrent API. The following functions 
  397.18   * provide a simpler API for scripts. Instead of directly using java.lang
   398.1 --- a/src/share/sample/scripting/scriptpad/src/resources/gui.js	Mon Aug 29 17:09:35 2011 -0700
   398.2 +++ b/src/share/sample/scripting/scriptpad/src/resources/gui.js	Wed Aug 31 09:56:44 2011 -0700
   398.3 @@ -30,6 +30,15 @@
   398.4   */
   398.5  
   398.6  /*
   398.7 + * This source code is provided to illustrate the usage of a given feature
   398.8 + * or technique and has been deliberately simplified. Additional steps
   398.9 + * required for a production-quality application, such as security checks,
  398.10 + * input validation and proper error handling, might not be present in
  398.11 + * this sample code.
  398.12 + */
  398.13 +
  398.14 +
  398.15 +/*
  398.16   * Few user interface utilities. 
  398.17   */
  398.18  
   399.1 --- a/src/share/sample/scripting/scriptpad/src/resources/mm.js	Mon Aug 29 17:09:35 2011 -0700
   399.2 +++ b/src/share/sample/scripting/scriptpad/src/resources/mm.js	Wed Aug 31 09:56:44 2011 -0700
   399.3 @@ -30,6 +30,15 @@
   399.4   */
   399.5  
   399.6  /*
   399.7 + * This source code is provided to illustrate the usage of a given feature
   399.8 + * or technique and has been deliberately simplified. Additional steps
   399.9 + * required for a production-quality application, such as security checks,
  399.10 + * input validation and proper error handling, might not be present in
  399.11 + * this sample code.
  399.12 + */
  399.13 +
  399.14 +
  399.15 +/*
  399.16   * This is a collection of utilities for Monitoring
  399.17   * and management API. 
  399.18   *
   400.1 --- a/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js	Mon Aug 29 17:09:35 2011 -0700
   400.2 +++ b/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js	Wed Aug 31 09:56:44 2011 -0700
   400.3 @@ -30,6 +30,15 @@
   400.4   */
   400.5  
   400.6  /*
   400.7 + * This source code is provided to illustrate the usage of a given feature
   400.8 + * or technique and has been deliberately simplified. Additional steps
   400.9 + * required for a production-quality application, such as security checks,
  400.10 + * input validation and proper error handling, might not be present in
  400.11 + * this sample code.
  400.12 + */
  400.13 +
  400.14 +
  400.15 +/*
  400.16   * This script creates a simple Notepad-like interface, which 
  400.17   * serves as a simple script editor, runner.
  400.18   *
   401.1 --- a/src/share/sample/scripting/scriptpad/src/scripts/browse.js	Mon Aug 29 17:09:35 2011 -0700
   401.2 +++ b/src/share/sample/scripting/scriptpad/src/scripts/browse.js	Wed Aug 31 09:56:44 2011 -0700
   401.3 @@ -30,6 +30,15 @@
   401.4   */
   401.5  
   401.6  /*
   401.7 + * This source code is provided to illustrate the usage of a given feature
   401.8 + * or technique and has been deliberately simplified. Additional steps
   401.9 + * required for a production-quality application, such as security checks,
  401.10 + * input validation and proper error handling, might not be present in
  401.11 + * this sample code.
  401.12 + */
  401.13 +
  401.14 +
  401.15 +/*
  401.16   * This function uses new Swing Desktop API in JDK 6.
  401.17   * To use this with scriptpad, open this in scriptpad
  401.18   * and use "Tools->Run Script" menu.
   402.1 --- a/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js	Mon Aug 29 17:09:35 2011 -0700
   402.2 +++ b/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js	Wed Aug 31 09:56:44 2011 -0700
   402.3 @@ -30,6 +30,15 @@
   402.4   */
   402.5  
   402.6  /*
   402.7 + * This source code is provided to illustrate the usage of a given feature
   402.8 + * or technique and has been deliberately simplified. Additional steps
   402.9 + * required for a production-quality application, such as security checks,
  402.10 + * input validation and proper error handling, might not be present in
  402.11 + * this sample code.
  402.12 + */
  402.13 +
  402.14 +
  402.15 +/*
  402.16   * This script adds "Insert File" mode menu item to "Tools" menu.
  402.17   * When selected, this menu shows a file dialog box and inserts
  402.18   * contents of the selected file into current document (at the
   403.1 --- a/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js	Mon Aug 29 17:09:35 2011 -0700
   403.2 +++ b/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js	Wed Aug 31 09:56:44 2011 -0700
   403.3 @@ -30,6 +30,15 @@
   403.4   */
   403.5  
   403.6  /*
   403.7 + * This source code is provided to illustrate the usage of a given feature
   403.8 + * or technique and has been deliberately simplified. Additional steps
   403.9 + * required for a production-quality application, such as security checks,
  403.10 + * input validation and proper error handling, might not be present in
  403.11 + * this sample code.
  403.12 + */
  403.13 +
  403.14 +
  403.15 +/*
  403.16   * This script adds "Line Wrap" mode menu item to "Tools" menu.
  403.17   * When selected, this menu toggles the current word wrap mode
  403.18   * of the editor.
   404.1 --- a/src/share/sample/scripting/scriptpad/src/scripts/mail.js	Mon Aug 29 17:09:35 2011 -0700
   404.2 +++ b/src/share/sample/scripting/scriptpad/src/scripts/mail.js	Wed Aug 31 09:56:44 2011 -0700
   404.3 @@ -30,6 +30,15 @@
   404.4   */
   404.5  
   404.6  /*
   404.7 + * This source code is provided to illustrate the usage of a given feature
   404.8 + * or technique and has been deliberately simplified. Additional steps
   404.9 + * required for a production-quality application, such as security checks,
  404.10 + * input validation and proper error handling, might not be present in
  404.11 + * this sample code.
  404.12 + */
  404.13 +
  404.14 +
  404.15 +/*
  404.16   * This function uses new Swing Desktop API in JDK 6.
  404.17   * To use this with scriptpad, open this in scriptpad
  404.18   * and use "Tools->Run Script" menu.
   405.1 --- a/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js	Mon Aug 29 17:09:35 2011 -0700
   405.2 +++ b/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js	Wed Aug 31 09:56:44 2011 -0700
   405.3 @@ -29,6 +29,15 @@
   405.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   405.5   */
   405.6  
   405.7 +/*
   405.8 + * This source code is provided to illustrate the usage of a given feature
   405.9 + * or technique and has been deliberately simplified. Additional steps
  405.10 + * required for a production-quality application, such as security checks,
  405.11 + * input validation and proper error handling, might not be present in
  405.12 + * this sample code.
  405.13 + */
  405.14 +
  405.15 +
  405.16  // this checker function runs asynchronously
  405.17  function memoryChecker(memoryBean, threshold, interval) {
  405.18      while (true) {
   406.1 --- a/src/share/sample/scripting/scriptpad/src/scripts/memory.js	Mon Aug 29 17:09:35 2011 -0700
   406.2 +++ b/src/share/sample/scripting/scriptpad/src/scripts/memory.js	Wed Aug 31 09:56:44 2011 -0700
   406.3 @@ -30,6 +30,15 @@
   406.4   */
   406.5  
   406.6  /*
   406.7 + * This source code is provided to illustrate the usage of a given feature
   406.8 + * or technique and has been deliberately simplified. Additional steps
   406.9 + * required for a production-quality application, such as security checks,
  406.10 + * input validation and proper error handling, might not be present in
  406.11 + * this sample code.
  406.12 + */
  406.13 +
  406.14 +
  406.15 +/*
  406.16   * This script serves as a simple "monitored application".
  406.17   * Start this script using memory.bat or memory.sh in the
  406.18   * current directory.
   407.1 --- a/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js	Mon Aug 29 17:09:35 2011 -0700
   407.2 +++ b/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js	Wed Aug 31 09:56:44 2011 -0700
   407.3 @@ -30,6 +30,15 @@
   407.4   */
   407.5  
   407.6  /*
   407.7 + * This source code is provided to illustrate the usage of a given feature
   407.8 + * or technique and has been deliberately simplified. Additional steps
   407.9 + * required for a production-quality application, such as security checks,
  407.10 + * input validation and proper error handling, might not be present in
  407.11 + * this sample code.
  407.12 + */
  407.13 +
  407.14 +
  407.15 +/*
  407.16   * This script adds "Selected Text Color" menu item to "Tools" menu.
  407.17   * When selected, this menu changes the "selected text" color.
  407.18   */
   408.1 --- a/src/share/sample/vm/clr-jvm/invoked.java	Mon Aug 29 17:09:35 2011 -0700
   408.2 +++ b/src/share/sample/vm/clr-jvm/invoked.java	Wed Aug 31 09:56:44 2011 -0700
   408.3 @@ -29,6 +29,15 @@
   408.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   408.5   */
   408.6  
   408.7 +/*
   408.8 + * This source code is provided to illustrate the usage of a given feature
   408.9 + * or technique and has been deliberately simplified. Additional steps
  408.10 + * required for a production-quality application, such as security checks,
  408.11 + * input validation and proper error handling, might not be present in
  408.12 + * this sample code.
  408.13 + */
  408.14 +
  408.15 +
  408.16  public class invoked {
  408.17      public static void main(String args[]) {
  408.18  
   409.1 --- a/src/share/sample/vm/clr-jvm/jinvoker.cpp	Mon Aug 29 17:09:35 2011 -0700
   409.2 +++ b/src/share/sample/vm/clr-jvm/jinvoker.cpp	Wed Aug 31 09:56:44 2011 -0700
   409.3 @@ -29,6 +29,15 @@
   409.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   409.5   */
   409.6  
   409.7 +/*
   409.8 + * This source code is provided to illustrate the usage of a given feature
   409.9 + * or technique and has been deliberately simplified. Additional steps
  409.10 + * required for a production-quality application, such as security checks,
  409.11 + * input validation and proper error handling, might not be present in
  409.12 + * this sample code.
  409.13 + */
  409.14 +
  409.15 +
  409.16  #include <memory.h>
  409.17  #include <stdlib.h>
  409.18  #include "jinvokerExp.h"
   410.1 --- a/src/share/sample/vm/clr-jvm/jinvokerExp.h	Mon Aug 29 17:09:35 2011 -0700
   410.2 +++ b/src/share/sample/vm/clr-jvm/jinvokerExp.h	Wed Aug 31 09:56:44 2011 -0700
   410.3 @@ -29,6 +29,15 @@
   410.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   410.5   */
   410.6  
   410.7 +/*
   410.8 + * This source code is provided to illustrate the usage of a given feature
   410.9 + * or technique and has been deliberately simplified. Additional steps
  410.10 + * required for a production-quality application, such as security checks,
  410.11 + * input validation and proper error handling, might not be present in
  410.12 + * this sample code.
  410.13 + */
  410.14 +
  410.15 +
  410.16  #include <windows.h>
  410.17  #include <jni.h>
  410.18  
   411.1 --- a/src/share/sample/vm/jvm-clr/invoker.cpp	Mon Aug 29 17:09:35 2011 -0700
   411.2 +++ b/src/share/sample/vm/jvm-clr/invoker.cpp	Wed Aug 31 09:56:44 2011 -0700
   411.3 @@ -29,6 +29,15 @@
   411.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   411.5   */
   411.6  
   411.7 +/*
   411.8 + * This source code is provided to illustrate the usage of a given feature
   411.9 + * or technique and has been deliberately simplified. Additional steps
  411.10 + * required for a production-quality application, such as security checks,
  411.11 + * input validation and proper error handling, might not be present in
  411.12 + * this sample code.
  411.13 + */
  411.14 +
  411.15 +
  411.16  #define _WIN32_WINNT 0x0400
  411.17  #include "windows.h"
  411.18  #include "Oleauto.h"
   412.1 --- a/src/share/sample/vm/jvm-clr/invoker.h	Mon Aug 29 17:09:35 2011 -0700
   412.2 +++ b/src/share/sample/vm/jvm-clr/invoker.h	Wed Aug 31 09:56:44 2011 -0700
   412.3 @@ -29,6 +29,15 @@
   412.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   412.5   */
   412.6  
   412.7 +/*
   412.8 + * This source code is provided to illustrate the usage of a given feature
   412.9 + * or technique and has been deliberately simplified. Additional steps
  412.10 + * required for a production-quality application, such as security checks,
  412.11 + * input validation and proper error handling, might not be present in
  412.12 + * this sample code.
  412.13 + */
  412.14 +
  412.15 +
  412.16  /* DO NOT EDIT THIS FILE - it is machine generated */
  412.17  #include <jni.h>
  412.18  /* Header for class invoker */
   413.1 --- a/src/share/sample/vm/jvm-clr/invoker.java	Mon Aug 29 17:09:35 2011 -0700
   413.2 +++ b/src/share/sample/vm/jvm-clr/invoker.java	Wed Aug 31 09:56:44 2011 -0700
   413.3 @@ -29,6 +29,15 @@
   413.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   413.5   */
   413.6  
   413.7 +/*
   413.8 + * This source code is provided to illustrate the usage of a given feature
   413.9 + * or technique and has been deliberately simplified. Additional steps
  413.10 + * required for a production-quality application, such as security checks,
  413.11 + * input validation and proper error handling, might not be present in
  413.12 + * this sample code.
  413.13 + */
  413.14 +
  413.15 +
  413.16  public class invoker {
  413.17  
  413.18      static {
   414.1 --- a/src/share/sample/vm/jvm-clr/invokerExp.h	Mon Aug 29 17:09:35 2011 -0700
   414.2 +++ b/src/share/sample/vm/jvm-clr/invokerExp.h	Wed Aug 31 09:56:44 2011 -0700
   414.3 @@ -29,6 +29,15 @@
   414.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   414.5   */
   414.6  
   414.7 +/*
   414.8 + * This source code is provided to illustrate the usage of a given feature
   414.9 + * or technique and has been deliberately simplified. Additional steps
  414.10 + * required for a production-quality application, such as security checks,
  414.11 + * input validation and proper error handling, might not be present in
  414.12 + * this sample code.
  414.13 + */
  414.14 +
  414.15 +
  414.16  #ifndef _invoker_h
  414.17  #define _invoker_h
  414.18  
   415.1 --- a/src/solaris/demo/jni/Poller/Client.java	Mon Aug 29 17:09:35 2011 -0700
   415.2 +++ b/src/solaris/demo/jni/Poller/Client.java	Wed Aug 31 09:56:44 2011 -0700
   415.3 @@ -29,6 +29,15 @@
   415.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   415.5   */
   415.6  
   415.7 +/*
   415.8 + * This source code is provided to illustrate the usage of a given feature
   415.9 + * or technique and has been deliberately simplified. Additional steps
  415.10 + * required for a production-quality application, such as security checks,
  415.11 + * input validation and proper error handling, might not be present in
  415.12 + * this sample code.
  415.13 + */
  415.14 +
  415.15 +
  415.16  import  java.util.*;
  415.17  import  java.net.*;
  415.18  import  java.io.*;
   416.1 --- a/src/solaris/demo/jni/Poller/LinkedQueue.java	Mon Aug 29 17:09:35 2011 -0700
   416.2 +++ b/src/solaris/demo/jni/Poller/LinkedQueue.java	Wed Aug 31 09:56:44 2011 -0700
   416.3 @@ -30,6 +30,15 @@
   416.4   */
   416.5  
   416.6  /*
   416.7 + * This source code is provided to illustrate the usage of a given feature
   416.8 + * or technique and has been deliberately simplified. Additional steps
   416.9 + * required for a production-quality application, such as security checks,
  416.10 + * input validation and proper error handling, might not be present in
  416.11 + * this sample code.
  416.12 + */
  416.13 +
  416.14 +
  416.15 +/*
  416.16    File: SLQ.java
  416.17    Originally: LinkedQueue.java
  416.18  
   417.1 --- a/src/solaris/demo/jni/Poller/Poller.c	Mon Aug 29 17:09:35 2011 -0700
   417.2 +++ b/src/solaris/demo/jni/Poller/Poller.c	Wed Aug 31 09:56:44 2011 -0700
   417.3 @@ -30,6 +30,15 @@
   417.4   */
   417.5  
   417.6  /*
   417.7 + * This source code is provided to illustrate the usage of a given feature
   417.8 + * or technique and has been deliberately simplified. Additional steps
   417.9 + * required for a production-quality application, such as security checks,
  417.10 + * input validation and proper error handling, might not be present in
  417.11 + * this sample code.
  417.12 + */
  417.13 +
  417.14 +
  417.15 +/*
  417.16   **********************************************************************
  417.17   * Poller.c :
  417.18   * JNI code for use with Poller.java, principally to take advantage
   418.1 --- a/src/solaris/demo/jni/Poller/Poller.java	Mon Aug 29 17:09:35 2011 -0700
   418.2 +++ b/src/solaris/demo/jni/Poller/Poller.java	Wed Aug 31 09:56:44 2011 -0700
   418.3 @@ -29,6 +29,15 @@
   418.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   418.5   */
   418.6  
   418.7 +/*
   418.8 + * This source code is provided to illustrate the usage of a given feature
   418.9 + * or technique and has been deliberately simplified. Additional steps
  418.10 + * required for a production-quality application, such as security checks,
  418.11 + * input validation and proper error handling, might not be present in
  418.12 + * this sample code.
  418.13 + */
  418.14 +
  418.15 +
  418.16  import java.lang.reflect.*;
  418.17  import java.io.*;
  418.18  import java.net.*;
   419.1 --- a/src/solaris/demo/jni/Poller/PollingServer.java	Mon Aug 29 17:09:35 2011 -0700
   419.2 +++ b/src/solaris/demo/jni/Poller/PollingServer.java	Wed Aug 31 09:56:44 2011 -0700
   419.3 @@ -29,6 +29,15 @@
   419.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   419.5   */
   419.6  
   419.7 +/*
   419.8 + * This source code is provided to illustrate the usage of a given feature
   419.9 + * or technique and has been deliberately simplified. Additional steps
  419.10 + * required for a production-quality application, such as security checks,
  419.11 + * input validation and proper error handling, might not be present in
  419.12 + * this sample code.
  419.13 + */
  419.14 +
  419.15 +
  419.16  import java.io.*;
  419.17  import java.net.*;
  419.18  import java.lang.Byte;
   420.1 --- a/src/solaris/demo/jni/Poller/SimpleServer.java	Mon Aug 29 17:09:35 2011 -0700
   420.2 +++ b/src/solaris/demo/jni/Poller/SimpleServer.java	Wed Aug 31 09:56:44 2011 -0700
   420.3 @@ -29,6 +29,15 @@
   420.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   420.5   */
   420.6  
   420.7 +/*
   420.8 + * This source code is provided to illustrate the usage of a given feature
   420.9 + * or technique and has been deliberately simplified. Additional steps
  420.10 + * required for a production-quality application, such as security checks,
  420.11 + * input validation and proper error handling, might not be present in
  420.12 + * this sample code.
  420.13 + */
  420.14 +
  420.15 +
  420.16  import java.io.*;
  420.17  import java.net.*;
  420.18  import java.lang.Byte;
   421.1 --- a/src/solaris/demo/jvmti/hprof/hprof_md.c	Mon Aug 29 17:09:35 2011 -0700
   421.2 +++ b/src/solaris/demo/jvmti/hprof/hprof_md.c	Wed Aug 31 09:56:44 2011 -0700
   421.3 @@ -29,6 +29,15 @@
   421.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   421.5   */
   421.6  
   421.7 +/*
   421.8 + * This source code is provided to illustrate the usage of a given feature
   421.9 + * or technique and has been deliberately simplified. Additional steps
  421.10 + * required for a production-quality application, such as security checks,
  421.11 + * input validation and proper error handling, might not be present in
  421.12 + * this sample code.
  421.13 + */
  421.14 +
  421.15 +
  421.16  #include <sys/types.h>
  421.17  #include <sys/stat.h>
  421.18  #include <fcntl.h>
   422.1 --- a/src/windows/demo/jvmti/hprof/hprof_md.c	Mon Aug 29 17:09:35 2011 -0700
   422.2 +++ b/src/windows/demo/jvmti/hprof/hprof_md.c	Wed Aug 31 09:56:44 2011 -0700
   422.3 @@ -29,6 +29,15 @@
   422.4   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   422.5   */
   422.6  
   422.7 +/*
   422.8 + * This source code is provided to illustrate the usage of a given feature
   422.9 + * or technique and has been deliberately simplified. Additional steps
  422.10 + * required for a production-quality application, such as security checks,
  422.11 + * input validation and proper error handling, might not be present in
  422.12 + * this sample code.
  422.13 + */
  422.14 +
  422.15 +
  422.16  // To ensure winsock2.h is used, it has to be included ahead of
  422.17  // windows.h, which includes winsock.h by default.
  422.18  #include <winsock2.h>