# HG changeset patch # User mfang # Date 1314809804 25200 # Node ID 11c81bbc76900cc60282365c109cea45d5253e7a # Parent 0a12b75617ed23886be48a7b3b84d4200b525aac# Parent ed7db6a12c2ac41927ca719fb498df2c4e3ea2fb Merge diff -r 0a12b75617ed -r 11c81bbc7690 jdk/make/common/Defs.gmk --- a/jdk/make/common/Defs.gmk Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/make/common/Defs.gmk Wed Aug 31 09:56:44 2011 -0700 @@ -300,6 +300,9 @@ #where the demo source can be found DEMOSRCDIR = $(SHARE_SRC)/demo +#where the sample source can be found +SAMPLESRCDIR = $(SHARE_SRC)/sample + # An attempt is made to generate unique enough directories for the # generated files to not have name collisisons. Most build units # defines PRODUCT (except Release.gmk), but then they may or may diff -r 0a12b75617ed -r 11c81bbc7690 jdk/make/mkdemo/Makefile --- a/jdk/make/mkdemo/Makefile Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/make/mkdemo/Makefile Wed Aug 31 09:56:44 2011 -0700 @@ -39,9 +39,14 @@ include $(BUILDDIR)/common/Subdirs.gmk +TOPLEVEL_FILES = \ + $(DEMODIR)/README + all build:: nbproject $(SUBDIRS-loop) +all build:: $(TOPLEVEL_FILES) + nbproject: $(RM) -r $(DEMODIR)/nbproject $(MKDIR) -p $(DEMODIR) @@ -54,8 +59,10 @@ ( $(CD) $(DEMODIR) && $(TAR) -xf - ) endif +$(DEMODIR)/%: $(DEMOSRCDIR)/% + $(install-file) + clean clobber:: $(SUBDIRS-loop) $(RM) -r $(DEMODIR) $(RM) -r $(DEMOCLASSDIR) - diff -r 0a12b75617ed -r 11c81bbc7690 jdk/make/mksample/Makefile --- a/jdk/make/mksample/Makefile Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/make/mksample/Makefile Wed Aug 31 09:56:44 2011 -0700 @@ -49,8 +49,16 @@ include $(BUILDDIR)/common/Subdirs.gmk +TOPLEVEL_FILES = \ + $(SAMPLEDIR)/README + all build clean clobber:: $(SUBDIRS-loop) +all build:: $(TOPLEVEL_FILES) + +$(SAMPLEDIR)/%: $(SAMPLESRCDIR)/% + $(install-file) + clobber clean :: $(RM) -r $(SAMPLEDIR) diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class AmbiguousMethodException extends Exception diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public abstract class BreakpointSpec extends EventRequestSpec { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class EvaluationException extends Exception { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.ReferenceType; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class FrameIndexOutOfBoundsException extends IndexOutOfBoundsException { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public interface InputListener { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class LineNotFoundException extends Exception diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; class MalformedMemberNameException extends Exception { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class MethodNotFoundException extends Exception diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class NoSessionException extends Exception { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class NoThreadException extends Exception { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public interface OutputListener { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; // dummy placeholder for javaCC-generated code. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/Session.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/Session.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/Session.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.VirtualMachine; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import java.util.EventObject; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class SpecErrorEvent extends SpecEvent { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import java.util.EventObject; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import java.util.EventListener; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.ThreadGroupReference; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; import com.sun.jdi.ThreadGroupReference; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; //### does it belong here? import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class VMLaunchFailureException extends Exception { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public class VMNotInterruptedException extends Exception { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.bdi; public abstract class WatchpointSpec extends EventRequestSpec { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.event.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.event.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import java.util.EventListener; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.event.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.event.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.event.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.event; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Generated By:JavaCC: Do not edit this line. ASCII_UCodeESC_CharStream.java Version 0.7pre6 */ package com.sun.tools.example.debug.expr; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Generated By:JavaCC: Do not edit this line. ExpressionParser.java */ package com.sun.tools.example.debug.expr; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Generated By:JavaCC: Do not edit this line. ExpressionParserConstants.java */ package com.sun.tools.example.debug.expr; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Generated By:JavaCC: Do not edit this line. ExpressionParserTokenManager.java */ package com.sun.tools.example.debug.expr; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/LValue.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/LValue.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/LValue.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.expr; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Generated By:JavaCC: Do not edit this line. ParseException.java Version 0.7pre6 */ package com.sun.tools.example.debug.expr; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/Token.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/Token.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/Token.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Generated By:JavaCC: Do not edit this line. Token.java Version 0.7pre3 */ package com.sun.tools.example.debug.expr; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 0.7pre2 */ package com.sun.tools.example.debug.expr; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import javax.swing.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; public class ClassManager { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.util.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; public interface ContextListener { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/Environment.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/Environment.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/Environment.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/GUI.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/GUI.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/GUI.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/Icons.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/Icons.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/Icons.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import javax.swing.Icon; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.File; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import javax.swing.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import javax.swing.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.util.List; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.util.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import javax.swing.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import javax.swing.tree.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; public interface SourceListener { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.util.EventObject; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import javax.swing.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.util.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.awt.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import com.sun.tools.example.debug.bdi.OutputListener; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.gui; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; public class AmbiguousMethodException extends Exception diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/Commands.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/Commands.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/Commands.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/Env.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/Env.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/Env.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.event.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.request.EventRequest; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.ReferenceType; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; public class LineNotFoundException extends Exception diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; class MalformedMemberNameException extends Exception { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java Wed Aug 31 09:56:44 2011 -0700 @@ -22,6 +22,15 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ + +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + package com.sun.tools.example.debug.tty; import java.util.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.Location; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/TTY.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTY.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTY.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.ThreadGroupReference; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.ThreadReference; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.ThreadGroupReference; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; public class VMNotConnectedException extends RuntimeException { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java --- a/jdk/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.debug.tty; abstract class WatchpointSpec extends EventRequestSpec { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java --- a/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/trace/EventThread.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.trace; import com.sun.jdi.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java --- a/jdk/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.trace; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/classes/com/sun/tools/example/trace/Trace.java --- a/jdk/src/share/classes/com/sun/tools/example/trace/Trace.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/classes/com/sun/tools/example/trace/Trace.java Wed Aug 31 09:56:44 2011 -0700 @@ -23,6 +23,15 @@ * questions. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.tools.example.trace; import com.sun.jdi.VirtualMachine; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jdk/src/share/demo/README Wed Aug 31 09:56:44 2011 -0700 @@ -0,0 +1,6 @@ +The source code provided with samples and demos for the JDK is meant +to illustrate the usage of a given feature or technique and has been +deliberately simplified. Additional steps required for a +production-quality application, such as security checks, input +validation, and proper error handling, might not be present in the +sample code. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/ArcTest/ArcTest.java --- a/jdk/src/share/demo/applets/ArcTest/ArcTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/ArcTest/ArcTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.*; import java.awt.event.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/BarChart/BarChart.java --- a/jdk/src/share/demo/applets/BarChart/BarChart.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/BarChart/BarChart.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/Blink/Blink.java --- a/jdk/src/share/demo/applets/Blink/Blink.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/Blink/Blink.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * I love blinking things. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/CardTest/CardTest.java --- a/jdk/src/share/demo/applets/CardTest/CardTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/CardTest/CardTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.applet.Applet; import java.awt.BorderLayout; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/Clock/Clock.java --- a/jdk/src/share/demo/applets/Clock/Clock.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/Clock/Clock.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.applet.Applet; import java.awt.Color; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/DitherTest/DitherTest.java --- a/jdk/src/share/demo/applets/DitherTest/DitherTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/DitherTest/DitherTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.applet.Applet; import java.awt.AWTEvent; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/DrawTest/DrawTest.java --- a/jdk/src/share/demo/applets/DrawTest/DrawTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/DrawTest/DrawTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.applet.Applet; import java.awt.BorderLayout; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/Fractal/CLSFractal.java --- a/jdk/src/share/demo/applets/Fractal/CLSFractal.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/Fractal/CLSFractal.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Graphics; import java.util.Stack; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/GraphicsTest/AppletFrame.java --- a/jdk/src/share/demo/applets/GraphicsTest/AppletFrame.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/GraphicsTest/AppletFrame.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Frame; import java.awt.Event; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/GraphicsTest/GraphicsTest.java --- a/jdk/src/share/demo/applets/GraphicsTest/GraphicsTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/GraphicsTest/GraphicsTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.*; import java.util.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/MoleculeViewer/Matrix3D.java --- a/jdk/src/share/demo/applets/MoleculeViewer/Matrix3D.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/MoleculeViewer/Matrix3D.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** A fairly conventional 3D matrix object that can transform sets of 3D points and perform a variety of manipulations on the transform */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/MoleculeViewer/XYZApp.java --- a/jdk/src/share/demo/applets/MoleculeViewer/XYZApp.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/MoleculeViewer/XYZApp.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.applet.Applet; import java.awt.Image; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/NervousText/NervousText.java --- a/jdk/src/share/demo/applets/NervousText/NervousText.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/NervousText/NervousText.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Graphics; import java.awt.Font; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/SimpleGraph/GraphApplet.java --- a/jdk/src/share/demo/applets/SimpleGraph/GraphApplet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/SimpleGraph/GraphApplet.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Graphics; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java --- a/jdk/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * A bi-directional bubble sort demonstration algorithm diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java --- a/jdk/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * A bubble sort demonstration algorithm diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/SortDemo/QSortAlgorithm.java --- a/jdk/src/share/demo/applets/SortDemo/QSortAlgorithm.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/SortDemo/QSortAlgorithm.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * A quick sort demonstration algorithm diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/SortDemo/SortAlgorithm.java --- a/jdk/src/share/demo/applets/SortDemo/SortAlgorithm.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/SortDemo/SortAlgorithm.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * A generic sort demonstration algorithm diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/SortDemo/SortItem.java --- a/jdk/src/share/demo/applets/SortDemo/SortItem.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/SortDemo/SortItem.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Color; import java.awt.Dimension; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/SpreadSheet/SpreadSheet.java --- a/jdk/src/share/demo/applets/SpreadSheet/SpreadSheet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/SpreadSheet/SpreadSheet.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.applet.Applet; import java.awt.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/WireFrame/Matrix3D.java --- a/jdk/src/share/demo/applets/WireFrame/Matrix3D.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/WireFrame/Matrix3D.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** A fairly conventional 3D matrix object that can transform sets of 3D points and perform a variety of manipulations on the transform */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/applets/WireFrame/ThreeD.java --- a/jdk/src/share/demo/applets/WireFrame/ThreeD.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/applets/WireFrame/ThreeD.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.applet.Applet; import java.awt.Graphics; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.awt.Image; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.io.PrintWriter; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.io.PrintWriter; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; public interface Modifier { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.io.PrintWriter; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.awt.BorderLayout; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.util.Vector; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.util.Hashtable; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; public abstract class Test extends Option.Enable { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench; import java.awt.Canvas; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * HTMLSeriesReporter.java * diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.report; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.report; import java.util.Vector; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * XMLHTMLReporter.java * diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests; import java.awt.Graphics; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests; import j2dbench.Destinations; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests; import java.awt.Dimension; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests; import j2dbench.Destinations; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests; import java.awt.Graphics; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests.iio; import java.awt.AlphaComposite; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests.iio; import java.awt.Component; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests.iio; import java.io.File; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests.iio; import java.io.BufferedInputStream; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests.iio; import java.awt.Graphics; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests.iio; import java.io.File; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.tests.iio; import java.io.BufferedOutputStream; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * (C) Copyright IBM Corp. 2003, All Rights Reserved. * This technology is protected by multiple US and International * patents. This notice and attribution to IBM may not be removed. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * (C) Copyright IBM Corp. 2003, All Rights Reserved. * This technology is protected by multiple US and International * patents. This notice and attribution to IBM may not be removed. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * (C) Copyright IBM Corp. 2003, All Rights Reserved. * This technology is protected by multiple US and International * patents. This notice and attribution to IBM may not be removed. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * (C) Copyright IBM Corp. 2003, All Rights Reserved. * This technology is protected by multiple US and International * patents. This notice and attribution to IBM may not be removed. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.ui; import java.awt.Dimension; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java --- a/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package j2dbench.ui; import j2dbench.Group; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/CodePointIM/CodePointIM.java --- a/jdk/src/share/demo/jfc/CodePointIM/CodePointIM.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/CodePointIM/CodePointIM.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.util.Locale; import java.util.MissingResourceException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java --- a/jdk/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java Wed Aug 31 09:56:44 2011 -0700 @@ -28,6 +28,15 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + package com.sun.inputmethods.internal.codepointim; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java --- a/jdk/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java Wed Aug 31 09:56:44 2011 -0700 @@ -28,6 +28,15 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + package com.sun.inputmethods.internal.codepointim; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java --- a/jdk/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.File; import java.io.IOException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java --- a/jdk/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.*; import javax.swing.filechooser.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java --- a/jdk/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.lang.reflect.InvocationTargetException; import java.util.logging.Level; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Font2DTest/Font2DTest.java --- a/jdk/src/share/demo/jfc/Font2DTest/Font2DTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Font2DTest/Font2DTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Color; import java.awt.Component; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java --- a/jdk/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import java.awt.AWTPermission; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Font2DTest/FontPanel.java --- a/jdk/src/share/demo/jfc/Font2DTest/FontPanel.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Font2DTest/FontPanel.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.BorderLayout; import java.awt.Color; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Font2DTest/RangeMenu.java --- a/jdk/src/share/demo/jfc/Font2DTest/RangeMenu.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Font2DTest/RangeMenu.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import java.awt.BorderLayout; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/AquaMetalTheme.java --- a/jdk/src/share/demo/jfc/Metalworks/AquaMetalTheme.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/AquaMetalTheme.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.plaf.ColorUIResource; import javax.swing.plaf.metal.DefaultMetalTheme; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java --- a/jdk/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.plaf.*; import javax.swing.plaf.metal.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java --- a/jdk/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.UIDefaults; import javax.swing.border.Border; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/DemoMetalTheme.java --- a/jdk/src/share/demo/jfc/Metalworks/DemoMetalTheme.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/DemoMetalTheme.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Font; import javax.swing.UIDefaults; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/GreenMetalTheme.java --- a/jdk/src/share/demo/jfc/Metalworks/GreenMetalTheme.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/GreenMetalTheme.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.plaf.ColorUIResource; import javax.swing.plaf.metal.DefaultMetalTheme; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java --- a/jdk/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.plaf.ColorUIResource; import javax.swing.plaf.metal.DefaultMetalTheme; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/MetalThemeMenu.java --- a/jdk/src/share/demo/jfc/Metalworks/MetalThemeMenu.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/MetalThemeMenu.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.event.ActionEvent; import java.awt.event.ActionListener; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/Metalworks.java --- a/jdk/src/share/demo/jfc/Metalworks/Metalworks.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/Metalworks.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Toolkit; import javax.swing.JDialog; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java --- a/jdk/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.BorderLayout; import java.awt.Component; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/MetalworksFrame.java --- a/jdk/src/share/demo/jfc/Metalworks/MetalworksFrame.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/MetalworksFrame.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Dimension; import java.awt.Toolkit; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/MetalworksHelp.java --- a/jdk/src/share/demo/jfc/Metalworks/MetalworksHelp.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/MetalworksHelp.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.*; import java.awt.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/MetalworksInBox.java --- a/jdk/src/share/demo/jfc/Metalworks/MetalworksInBox.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/MetalworksInBox.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.JInternalFrame; import javax.swing.JScrollPane; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/MetalworksPrefs.java --- a/jdk/src/share/demo/jfc/Metalworks/MetalworksPrefs.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/MetalworksPrefs.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.BorderLayout; import java.awt.Component; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java --- a/jdk/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.IOException; import java.io.InputStream; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Metalworks/UISwitchListener.java --- a/jdk/src/share/demo/jfc/Metalworks/UISwitchListener.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Metalworks/UISwitchListener.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Notepad/ElementTreePanel.java --- a/jdk/src/share/demo/jfc/Notepad/ElementTreePanel.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Notepad/ElementTreePanel.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.BorderLayout; import java.awt.Dimension; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/Notepad/Notepad.java --- a/jdk/src/share/demo/jfc/Notepad/Notepad.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/Notepad/Notepad.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.BorderLayout; import java.awt.Color; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/SampleTree/DynamicTreeNode.java --- a/jdk/src/share/demo/jfc/SampleTree/DynamicTreeNode.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/SampleTree/DynamicTreeNode.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Color; import java.awt.Font; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/SampleTree/SampleData.java --- a/jdk/src/share/demo/jfc/SampleTree/SampleData.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/SampleTree/SampleData.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.Color; import java.awt.Font; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/SampleTree/SampleTree.java --- a/jdk/src/share/demo/jfc/SampleTree/SampleTree.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/SampleTree/SampleTree.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.lang.reflect.InvocationTargetException; import java.util.logging.Level; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java --- a/jdk/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.Icon; import javax.swing.ImageIcon; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/SampleTree/SampleTreeModel.java --- a/jdk/src/share/demo/jfc/SampleTree/SampleTreeModel.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/SampleTree/SampleTreeModel.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.TreeNode; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/SwingApplet/SwingApplet.java --- a/jdk/src/share/demo/jfc/SwingApplet/SwingApplet.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/SwingApplet/SwingApplet.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.FlowLayout; import java.lang.reflect.InvocationTargetException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/JDBCAdapter.java --- a/jdk/src/share/demo/jfc/TableExample/JDBCAdapter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/JDBCAdapter.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.sql.Connection; import java.sql.DriverManager; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/OldJTable.java --- a/jdk/src/share/demo/jfc/TableExample/OldJTable.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/OldJTable.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.util.EventObject; import java.util.List; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/TableExample.java --- a/jdk/src/share/demo/jfc/TableExample/TableExample.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/TableExample.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * A a UI around the JDBCAdaptor, allowing database data to be interactively diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/TableExample2.java --- a/jdk/src/share/demo/jfc/TableExample/TableExample2.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/TableExample2.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/TableExample3.java --- a/jdk/src/share/demo/jfc/TableExample/TableExample3.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/TableExample3.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.*; import javax.swing.table.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/TableExample4.java --- a/jdk/src/share/demo/jfc/TableExample/TableExample4.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/TableExample4.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.*; import javax.swing.table.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/TableMap.java --- a/jdk/src/share/demo/jfc/TableExample/TableMap.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/TableMap.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * In a chain of data manipulators some behaviour is common. TableMap diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TableExample/TableSorter.java --- a/jdk/src/share/demo/jfc/TableExample/TableSorter.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TableExample/TableSorter.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import javax.swing.table.TableModel; import javax.swing.event.TableModelEvent; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java --- a/jdk/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java Wed Aug 31 09:56:44 2011 -0700 @@ -28,6 +28,15 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + package transparentruler; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/agent_util/agent_util.c --- a/jdk/src/share/demo/jvmti/agent_util/agent_util.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/agent_util/agent_util.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include /* ------------------------------------------------------------------- */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/agent_util/agent_util.h --- a/jdk/src/share/demo/jvmti/agent_util/agent_util.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/agent_util/agent_util.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef AGENT_UTIL_H #define AGENT_UTIL_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c --- a/jdk/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/gctest/gctest.c --- a/jdk/src/share/demo/jvmti/gctest/gctest.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/gctest/gctest.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Example of using JVMTI_EVENT_GARBAGE_COLLECTION_START and * JVMTI_EVENT_GARBAGE_COLLECTION_FINISH events. */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/heapTracker/HeapTracker.java --- a/jdk/src/share/demo/jvmti/heapTracker/HeapTracker.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/heapTracker/HeapTracker.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Java class to hold static methods which will be called in byte code * injections of all class files. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/heapTracker/heapTracker.c --- a/jdk/src/share/demo/jvmti/heapTracker/heapTracker.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/heapTracker/heapTracker.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include "stdlib.h" #include "heapTracker.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/heapTracker/heapTracker.h --- a/jdk/src/share/demo/jvmti/heapTracker/heapTracker.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/heapTracker/heapTracker.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Primary heapTracker #include file, should be included by most if not * all heapTracker source files. Gives access to the global data structure * and all global macros. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/heapViewer/heapViewer.c --- a/jdk/src/share/demo/jvmti/heapViewer/heapViewer.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/heapViewer/heapViewer.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/debug_malloc.c --- a/jdk/src/share/demo/jvmti/hprof/debug_malloc.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/debug_malloc.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* ************************************************************************** * * Set of malloc/realloc/calloc/strdup/free replacement macros that diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/debug_malloc.h --- a/jdk/src/share/demo/jvmti/hprof/debug_malloc.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/debug_malloc.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* *********************************************************************** * * The source file debug_malloc.c should be included with your sources. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof.h --- a/jdk/src/share/demo/jvmti/hprof/hprof.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Primary hprof #include file, should be included by most if not * all hprof source files. Gives access to the global data structure * and all global macros, and everything declared in the #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_blocks.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_blocks.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_blocks.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Allocations from large blocks, no individual free's */ #include "hprof.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_blocks.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_blocks.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_blocks.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_BLOCKS_H #define HPROF_BLOCKS_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_check.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_check.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_check.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Functionality for checking hprof format=b output. */ /* ONLY used with logflags=4. */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_check.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_check.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_check.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_CHECK_H #define HPROF_CHECK_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_class.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_class.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_class.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Table of class information. * * Each element in this table is identified with a ClassIndex. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_class.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_class.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_class.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_CLASS_H #define HPROF_CLASS_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_cpu.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_cpu.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_cpu.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include "hprof.h" /* This file contains the cpu loop for the option cpu=samples */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_cpu.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_cpu.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_cpu.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_CPU_H #define HPROF_CPU_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_error.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_error.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_error.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include "hprof.h" /* The error handling logic. */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_error.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_error.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_error.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_ERROR_H #define HPROF_ERROR_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_event.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_event.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_event.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* This file contains all class, method and allocation event support functions, * both JVMTI and BCI events. * (See hprof_monitor.c for the monitor event handlers). diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_event.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_event.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_event.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_EVENT_H #define HPROF_EVENT_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_frame.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_frame.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_frame.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* This file contains support for handling frames, or (method,location) pairs. */ #include "hprof.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_frame.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_frame.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_frame.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_FRAME_H #define HPROF_FRAME_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_init.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_init.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_init.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Main source file, the basic JVMTI connection/startup code. */ #include "hprof.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_init.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_init.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_init.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_INIT_H #define HPROF_INIT_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_io.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_io.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_io.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* All I/O functionality for hprof. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_io.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_io.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_io.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_IO_H #define HPROF_IO_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_ioname.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_ioname.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_ioname.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Used to store strings written out to the binary format (see hprof_io.c) */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_ioname.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_ioname.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_ioname.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_IONAME_H #define HPROF_IONAME_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_listener.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_listener.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_listener.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* The hprof listener loop thread. net=hostname:port option */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_listener.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_listener.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_listener.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_LISTENER_H #define HPROF_LISTENER_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_loader.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_loader.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_loader.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* The Class Loader table. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_loader.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_loader.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_loader.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_LOADER_H #define HPROF_LOADER_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_md.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_md.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_md.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_MD_H #define HPROF_MD_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_monitor.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_monitor.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_monitor.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Monitor contention tracking and monitor wait handling. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_monitor.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_monitor.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_monitor.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_MONITOR_H #define HPROF_MONITOR_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_object.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_object.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_object.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Object table. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_object.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_object.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_object.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_OBJECT_H #define HPROF_OBJECT_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_reference.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_reference.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_reference.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Object references table (used in hprof_object.c). */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_reference.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_reference.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_reference.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_REFERENCE_H #define HPROF_REFERENCE_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_site.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_site.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_site.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Allocation site table. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_site.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_site.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_site.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_SITE_H #define HPROF_SITE_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_stack.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_stack.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_stack.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Simple stack storage mechanism (or simple List). */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_stack.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_stack.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_stack.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_STACK_H #define HPROF_STACK_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_string.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_string.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_string.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Table of byte arrays (e.g. char* string + NULL byte) */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_string.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_string.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_string.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_STRING_H #define HPROF_STRING_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_table.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_table.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_table.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Lookup Table of generic elements. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_table.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_table.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_table.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_TABLE_H #define HPROF_TABLE_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_tag.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_tag.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_tag.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* JVMTI tag definitions. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_tag.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_tag.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_tag.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_TAG_H #define HPROF_TAG_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_tls.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_tls.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_tls.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include "hprof.h" /* Thread Local Storage Table and method entry/exit handling. */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_tls.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_tls.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_tls.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_TLS_H #define HPROF_TLS_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_trace.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_trace.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_trace.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Trace table. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_trace.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_trace.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_trace.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_TRACE_H #define HPROF_TRACE_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_tracker.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_tracker.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_tracker.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Tracker class support functions. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_tracker.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_tracker.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_tracker.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_TRACKER_H #define HPROF_TRACKER_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_util.c --- a/jdk/src/share/demo/jvmti/hprof/hprof_util.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_util.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* General utility functions. */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/hprof/hprof_util.h --- a/jdk/src/share/demo/jvmti/hprof/hprof_util.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/hprof/hprof_util.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef HPROF_UTIL_H #define HPROF_UTIL_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c --- a/jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Class reader writer (java_crw_demo) for instrumenting bytecodes */ /* diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h --- a/jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef JAVA_CRW_DEMO_H #define JAVA_CRW_DEMO_H diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/minst/Minst.java --- a/jdk/src/share/demo/jvmti/minst/Minst.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/minst/Minst.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Java class to hold static methods which will be called in byte code * injections of all class files. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/minst/minst.c --- a/jdk/src/share/demo/jvmti/minst/minst.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/minst/minst.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include "stdlib.h" #include "minst.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/minst/minst.h --- a/jdk/src/share/demo/jvmti/minst/minst.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/minst/minst.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Primary minst #include file, should be included by most if not * all minst source files. Gives access to the global data structure * and all global macros. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/mtrace/Mtrace.java --- a/jdk/src/share/demo/jvmti/mtrace/Mtrace.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/mtrace/Mtrace.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Java class to hold static methods which will be called in byte code * injections of all class files. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/mtrace/mtrace.c --- a/jdk/src/share/demo/jvmti/mtrace/mtrace.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/mtrace/mtrace.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include "stdlib.h" #include "mtrace.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/mtrace/mtrace.h --- a/jdk/src/share/demo/jvmti/mtrace/mtrace.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/mtrace/mtrace.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Primary mtrace #include file, should be included by most if not * all mtrace source files. Gives access to the global data structure * and all global macros. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/versionCheck/versionCheck.c --- a/jdk/src/share/demo/jvmti/versionCheck/versionCheck.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/versionCheck/versionCheck.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/waiters/Agent.cpp --- a/jdk/src/share/demo/jvmti/waiters/Agent.cpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/waiters/Agent.cpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/waiters/Agent.hpp --- a/jdk/src/share/demo/jvmti/waiters/Agent.hpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/waiters/Agent.hpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* C++ Agent class */ class Agent { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/waiters/Monitor.cpp --- a/jdk/src/share/demo/jvmti/waiters/Monitor.cpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/waiters/Monitor.cpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/waiters/Monitor.hpp --- a/jdk/src/share/demo/jvmti/waiters/Monitor.hpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/waiters/Monitor.hpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* C++ Monitor class */ class Monitor { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/waiters/Thread.cpp --- a/jdk/src/share/demo/jvmti/waiters/Thread.cpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/waiters/Thread.cpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/waiters/Thread.hpp --- a/jdk/src/share/demo/jvmti/waiters/Thread.hpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/waiters/Thread.hpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* C++ Thread class */ class Thread { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/jvmti/waiters/waiters.cpp --- a/jdk/src/share/demo/jvmti/waiters/waiters.cpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/jvmti/waiters/waiters.cpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* Example of using JVMTI events: * JVMTI_EVENT_VM_INIT * JVMTI_EVENT_VM_DEATH diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/FullThreadDump/Deadlock.java --- a/jdk/src/share/demo/management/FullThreadDump/Deadlock.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/FullThreadDump/Deadlock.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import java.util.concurrent.CyclicBarrier; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/FullThreadDump/FullThreadDump.java --- a/jdk/src/share/demo/management/FullThreadDump/FullThreadDump.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/FullThreadDump/FullThreadDump.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import javax.management.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/FullThreadDump/ThreadMonitor.java --- a/jdk/src/share/demo/management/FullThreadDump/ThreadMonitor.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/FullThreadDump/ThreadMonitor.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import static java.lang.management.ManagementFactory.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/JTop/JTop.java --- a/jdk/src/share/demo/management/JTop/JTop.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/JTop/JTop.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * * Example of using the java.lang.management API to sort threads * by CPU usage. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/JTop/JTopPlugin.java --- a/jdk/src/share/demo/management/JTop/JTopPlugin.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/JTop/JTopPlugin.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * * Example of a JConsole Plugin. This loads JTop as a JConsole tab. * diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/MemoryMonitor/MemoryMonitor.java --- a/jdk/src/share/demo/management/MemoryMonitor/MemoryMonitor.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/MemoryMonitor/MemoryMonitor.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import java.awt.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/VerboseGC/PrintGCStat.java --- a/jdk/src/share/demo/management/VerboseGC/PrintGCStat.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/VerboseGC/PrintGCStat.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import static java.lang.management.ManagementFactory.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/management/VerboseGC/VerboseGC.java --- a/jdk/src/share/demo/management/VerboseGC/VerboseGC.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/management/VerboseGC/VerboseGC.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* */ import javax.management.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/Demo.java --- a/jdk/src/share/demo/nio/zipfs/Demo.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/Demo.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java Wed Aug 31 09:56:44 2011 -0700 @@ -28,6 +28,15 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + package com.sun.nio.zipfs; import java.nio.file.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.nio.ByteBuffer; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.nio.file.DirectoryStream; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.io.IOException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.io.ByteArrayInputStream; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.nio.file.Paths; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java --- a/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.nio.zipfs; import java.io.IOException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.demo.scripting.jconsole; import javax.swing.text.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.demo.scripting.jconsole; import com.sun.tools.jconsole.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.demo.scripting.jconsole; import java.awt.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This file defines heapdump function to heap dump * in binary format. User can call this function * based on events. For example, a timer thread can diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This is sample JavaScript file that can be loaded into script console. * This file prints "hello, world". */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script demonstrates "invokeMBean" function. Instead * of using MXBean proxy or script wrapper object returned by * 'mbean' function, this file uses direct invoke on MBean. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This file defines 'jstack' function to print stack traces of * threads.'jstack' function which can be called once or periodically * from a timer thread (calling it periodically would slow down the target diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This code is "ported" from JTop demo. This file defines * 'jtop' function. jtop prints threads sorting by CPU time. * jtop can be called once or periodically from a timer thread. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This file defines 'sysprops' function to print Java System * properties.'sysprops' function which can be called once or periodically * from a timer thread (calling it periodically would slow down the target diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js --- a/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script demonstrates "getMBeanAttribute" * and "setMBeanAttribute" functions. Instead of using * MXBean proxy or script wrapper object returned by diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jdk/src/share/sample/README Wed Aug 31 09:56:44 2011 -0700 @@ -0,0 +1,6 @@ +The source code provided with samples and demos for the JDK is meant +to illustrate the usage of a given feature or technique and has been +deliberately simplified. Additional steps required for a +production-quality application, such as security checks, input +validation, and proper error handling, might not be present in the +sample code. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/forkjoin/mergesort/MergeDemo.java --- a/jdk/src/share/sample/forkjoin/mergesort/MergeDemo.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/forkjoin/mergesort/MergeDemo.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.util.Arrays; import java.util.Random; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/forkjoin/mergesort/MergeSort.java --- a/jdk/src/share/sample/forkjoin/mergesort/MergeSort.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/forkjoin/mergesort/MergeSort.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.util.Arrays; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.ForkJoinTask; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import com.sun.jmx.examples.scandir.config.ResultRecord; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import java.net.InetAddress; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import static com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import java.io.IOException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir.config; import java.io.File; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir.config; import java.io.File; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir.config; import java.util.Arrays; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir.config; import java.util.Date; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir.config; import java.util.Arrays; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java --- a/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir.config; import java.io.ByteArrayInputStream; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java --- a/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java --- a/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import com.sun.jmx.examples.scandir.config.XmlConfigUtils; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java --- a/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import java.util.concurrent.LinkedBlockingQueue; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java --- a/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir; import java.lang.reflect.InvocationHandler; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java --- a/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.jmx.examples.scandir.config; import junit.framework.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/chatserver/ChatServer.java --- a/jdk/src/share/sample/nio/chatserver/ChatServer.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/chatserver/ChatServer.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketAddress; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/chatserver/Client.java --- a/jdk/src/share/sample/nio/chatserver/Client.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/chatserver/Client.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.AsynchronousSocketChannel; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/chatserver/ClientReader.java --- a/jdk/src/share/sample/nio/chatserver/ClientReader.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/chatserver/ClientReader.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.ByteBuffer; import java.nio.channels.CompletionHandler; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/chatserver/DataReader.java --- a/jdk/src/share/sample/nio/chatserver/DataReader.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/chatserver/DataReader.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.ByteBuffer; public interface DataReader { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/chatserver/MessageReader.java --- a/jdk/src/share/sample/nio/chatserver/MessageReader.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/chatserver/MessageReader.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.ByteBuffer; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/chatserver/NameReader.java --- a/jdk/src/share/sample/nio/chatserver/NameReader.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/chatserver/NameReader.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.ByteBuffer; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/file/AclEdit.java --- a/jdk/src/share/sample/nio/file/AclEdit.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/file/AclEdit.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.file.*; import java.nio.file.attribute.*; import java.io.IOException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/file/Chmod.java --- a/jdk/src/share/sample/nio/file/Chmod.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/file/Chmod.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.file.*; import java.nio.file.attribute.*; import static java.nio.file.attribute.PosixFilePermission.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/file/Copy.java --- a/jdk/src/share/sample/nio/file/Copy.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/file/Copy.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.file.*; import static java.nio.file.StandardCopyOption.*; import java.nio.file.attribute.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/file/DiskUsage.java --- a/jdk/src/share/sample/nio/file/DiskUsage.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/file/DiskUsage.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.file.*; import java.nio.file.attribute.*; import java.io.IOException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/file/FileType.java --- a/jdk/src/share/sample/nio/file/FileType.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/file/FileType.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.file.*; import java.io.IOException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/file/WatchDir.java --- a/jdk/src/share/sample/nio/file/WatchDir.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/file/WatchDir.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.file.*; import static java.nio.file.StandardWatchEventKinds.*; import static java.nio.file.LinkOption.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/file/Xdd.java --- a/jdk/src/share/sample/nio/file/Xdd.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/file/Xdd.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.nio.file.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/multicast/MulticastAddress.java --- a/jdk/src/share/sample/nio/multicast/MulticastAddress.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/multicast/MulticastAddress.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.net.InetAddress; import java.net.NetworkInterface; import java.net.UnknownHostException; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/multicast/Reader.java --- a/jdk/src/share/sample/nio/multicast/Reader.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/multicast/Reader.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.channels.*; import java.nio.charset.*; import java.nio.ByteBuffer; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/multicast/Sender.java --- a/jdk/src/share/sample/nio/multicast/Sender.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/multicast/Sender.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.channels.*; import java.nio.charset.Charset; import java.net.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/AcceptHandler.java --- a/jdk/src/share/sample/nio/server/AcceptHandler.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/AcceptHandler.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.channels.*; import javax.net.ssl.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Acceptor.java --- a/jdk/src/share/sample/nio/server/Acceptor.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Acceptor.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.channels.*; import javax.net.ssl.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/B1.java --- a/jdk/src/share/sample/nio/server/B1.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/B1.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.channels.*; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/BN.java --- a/jdk/src/share/sample/nio/server/BN.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/BN.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/BP.java --- a/jdk/src/share/sample/nio/server/BP.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/BP.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.channels.*; import java.util.concurrent.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/ChannelIO.java --- a/jdk/src/share/sample/nio/server/ChannelIO.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/ChannelIO.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/ChannelIOSecure.java --- a/jdk/src/share/sample/nio/server/ChannelIOSecure.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/ChannelIOSecure.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Content.java --- a/jdk/src/share/sample/nio/server/Content.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Content.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * An Sendable interface extension that adds additional * methods for additional information, such as Files diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Dispatcher.java --- a/jdk/src/share/sample/nio/server/Dispatcher.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Dispatcher.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Dispatcher1.java --- a/jdk/src/share/sample/nio/server/Dispatcher1.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Dispatcher1.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.channels.*; import java.util.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/DispatcherN.java --- a/jdk/src/share/sample/nio/server/DispatcherN.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/DispatcherN.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.channels.*; import java.util.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/FileContent.java --- a/jdk/src/share/sample/nio/server/FileContent.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/FileContent.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.net.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Handler.java --- a/jdk/src/share/sample/nio/server/Handler.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Handler.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/MalformedRequestException.java --- a/jdk/src/share/sample/nio/server/MalformedRequestException.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/MalformedRequestException.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * Exception class used when a request can't be properly parsed. * diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/N1.java --- a/jdk/src/share/sample/nio/server/N1.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/N1.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.nio.channels.*; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/N2.java --- a/jdk/src/share/sample/nio/server/N2.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/N2.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /** * A non-blocking/dual-threaded which performs accept()s in one thread, * and services requests in a second. Both threads use select(). diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Reply.java --- a/jdk/src/share/sample/nio/server/Reply.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Reply.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.*; import java.nio.charset.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Request.java --- a/jdk/src/share/sample/nio/server/Request.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Request.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.net.*; import java.nio.*; import java.nio.charset.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/RequestHandler.java --- a/jdk/src/share/sample/nio/server/RequestHandler.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/RequestHandler.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/RequestServicer.java --- a/jdk/src/share/sample/nio/server/RequestServicer.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/RequestServicer.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Sendable.java --- a/jdk/src/share/sample/nio/server/Sendable.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Sendable.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; /** diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/Server.java --- a/jdk/src/share/sample/nio/server/Server.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/Server.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.net.*; import java.nio.channels.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/StringContent.java --- a/jdk/src/share/sample/nio/server/StringContent.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/StringContent.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.nio.*; import java.nio.charset.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/nio/server/URLDumper.java --- a/jdk/src/share/sample/nio/server/URLDumper.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/nio/server/URLDumper.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.net.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java --- a/jdk/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + package com.sun.sample.scriptpad; import javax.script.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/resources/Main.js --- a/jdk/src/share/sample/scripting/scriptpad/src/resources/Main.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/resources/Main.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script can be loaded in jrunscript to start scriptpad. * * jrunscript -f Main.js -f - diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/resources/conc.js --- a/jdk/src/share/sample/scripting/scriptpad/src/resources/conc.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/resources/conc.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * Concurrency utilities for JavaScript. These are based on * java.lang and java.util.concurrent API. The following functions * provide a simpler API for scripts. Instead of directly using java.lang diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/resources/gui.js --- a/jdk/src/share/sample/scripting/scriptpad/src/resources/gui.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/resources/gui.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * Few user interface utilities. */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/resources/mm.js --- a/jdk/src/share/sample/scripting/scriptpad/src/resources/mm.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/resources/mm.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This is a collection of utilities for Monitoring * and management API. * diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js --- a/jdk/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script creates a simple Notepad-like interface, which * serves as a simple script editor, runner. * diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/scripts/browse.js --- a/jdk/src/share/sample/scripting/scriptpad/src/scripts/browse.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/scripts/browse.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This function uses new Swing Desktop API in JDK 6. * To use this with scriptpad, open this in scriptpad * and use "Tools->Run Script" menu. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js --- a/jdk/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script adds "Insert File" mode menu item to "Tools" menu. * When selected, this menu shows a file dialog box and inserts * contents of the selected file into current document (at the diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js --- a/jdk/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script adds "Line Wrap" mode menu item to "Tools" menu. * When selected, this menu toggles the current word wrap mode * of the editor. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/scripts/mail.js --- a/jdk/src/share/sample/scripting/scriptpad/src/scripts/mail.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/scripts/mail.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This function uses new Swing Desktop API in JDK 6. * To use this with scriptpad, open this in scriptpad * and use "Tools->Run Script" menu. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js --- a/jdk/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + // this checker function runs asynchronously function memoryChecker(memoryBean, threshold, interval) { while (true) { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/scripts/memory.js --- a/jdk/src/share/sample/scripting/scriptpad/src/scripts/memory.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/scripts/memory.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script serves as a simple "monitored application". * Start this script using memory.bat or memory.sh in the * current directory. diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js --- a/jdk/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* * This script adds "Selected Text Color" menu item to "Tools" menu. * When selected, this menu changes the "selected text" color. */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/vm/clr-jvm/invoked.java --- a/jdk/src/share/sample/vm/clr-jvm/invoked.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/vm/clr-jvm/invoked.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + public class invoked { public static void main(String args[]) { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/vm/clr-jvm/jinvoker.cpp --- a/jdk/src/share/sample/vm/clr-jvm/jinvoker.cpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/vm/clr-jvm/jinvoker.cpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include "jinvokerExp.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/vm/clr-jvm/jinvokerExp.h --- a/jdk/src/share/sample/vm/clr-jvm/jinvokerExp.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/vm/clr-jvm/jinvokerExp.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/vm/jvm-clr/invoker.cpp --- a/jdk/src/share/sample/vm/jvm-clr/invoker.cpp Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/vm/jvm-clr/invoker.cpp Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #define _WIN32_WINNT 0x0400 #include "windows.h" #include "Oleauto.h" diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/vm/jvm-clr/invoker.h --- a/jdk/src/share/sample/vm/jvm-clr/invoker.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/vm/jvm-clr/invoker.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class invoker */ diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/vm/jvm-clr/invoker.java --- a/jdk/src/share/sample/vm/jvm-clr/invoker.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/vm/jvm-clr/invoker.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + public class invoker { static { diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/share/sample/vm/jvm-clr/invokerExp.h --- a/jdk/src/share/sample/vm/jvm-clr/invokerExp.h Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/share/sample/vm/jvm-clr/invokerExp.h Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #ifndef _invoker_h #define _invoker_h diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/solaris/demo/jni/Poller/Client.java --- a/jdk/src/solaris/demo/jni/Poller/Client.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/solaris/demo/jni/Poller/Client.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.util.*; import java.net.*; import java.io.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/solaris/demo/jni/Poller/LinkedQueue.java --- a/jdk/src/solaris/demo/jni/Poller/LinkedQueue.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/solaris/demo/jni/Poller/LinkedQueue.java Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* File: SLQ.java Originally: LinkedQueue.java diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/solaris/demo/jni/Poller/Poller.c --- a/jdk/src/solaris/demo/jni/Poller/Poller.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/solaris/demo/jni/Poller/Poller.c Wed Aug 31 09:56:44 2011 -0700 @@ -30,6 +30,15 @@ */ /* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + +/* ********************************************************************** * Poller.c : * JNI code for use with Poller.java, principally to take advantage diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/solaris/demo/jni/Poller/Poller.java --- a/jdk/src/solaris/demo/jni/Poller/Poller.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/solaris/demo/jni/Poller/Poller.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.lang.reflect.*; import java.io.*; import java.net.*; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/solaris/demo/jni/Poller/PollingServer.java --- a/jdk/src/solaris/demo/jni/Poller/PollingServer.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/solaris/demo/jni/Poller/PollingServer.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.net.*; import java.lang.Byte; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/solaris/demo/jni/Poller/SimpleServer.java --- a/jdk/src/solaris/demo/jni/Poller/SimpleServer.java Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/solaris/demo/jni/Poller/SimpleServer.java Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + import java.io.*; import java.net.*; import java.lang.Byte; diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/solaris/demo/jvmti/hprof/hprof_md.c --- a/jdk/src/solaris/demo/jvmti/hprof/hprof_md.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/solaris/demo/jvmti/hprof/hprof_md.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + #include #include #include diff -r 0a12b75617ed -r 11c81bbc7690 jdk/src/windows/demo/jvmti/hprof/hprof_md.c --- a/jdk/src/windows/demo/jvmti/hprof/hprof_md.c Mon Aug 29 17:09:35 2011 -0700 +++ b/jdk/src/windows/demo/jvmti/hprof/hprof_md.c Wed Aug 31 09:56:44 2011 -0700 @@ -29,6 +29,15 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * This source code is provided to illustrate the usage of a given feature + * or technique and has been deliberately simplified. Additional steps + * required for a production-quality application, such as security checks, + * input validation and proper error handling, might not be present in + * this sample code. + */ + + // To ensure winsock2.h is used, it has to be included ahead of // windows.h, which includes winsock.h by default. #include