--- 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
--- 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)
-
--- 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)
--- 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.*;
--- 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
--- 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 {
--- 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.*;
--- 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 {
--- 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.*;
--- 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.*;
--- 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;
--- 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.*;
--- 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 {
--- 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 {
--- 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.*;
--- 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.*;
--- 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
--- 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 {
--- 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.*;
--- 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
--- 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.*;
--- 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 {
--- 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 {
--- 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 {
--- 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.
--- 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.*;
--- 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.*;
--- 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;
--- 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;
--- 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.*;
--- 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 {
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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.*;
--- 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 {
--- 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 {
--- 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 {
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
/**
--- 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;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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 {
--- 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.*;
--- 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.*;
--- 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.*;
--- 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 {
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
--- 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;
--- 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.*;
--- 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.*;
--- 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;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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 {
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
--- 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.*;
--- 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.*;
--- 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
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
--- 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;
--- 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
--- 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 {
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
--- 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.*;
--- 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;
/**
--- 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;
/**
--- 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;
/**
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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 {
--- 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 {
--- 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.*;
--- 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.*;
--- 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;
--- /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.
--- 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.*;
--- 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.*;
--- 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.
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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 */
--- 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;
--- 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;
--- 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;
--- 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
--- 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
--- 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
--- 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
--- 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;
--- 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.*;
--- 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 */
--- 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;
--- 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;
--- 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;
--- 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;
--- 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 {
--- 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;
--- 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;
--- 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;
--- 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;
--- 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 {
--- 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;
--- 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
*
--- 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.*;
--- 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;
--- 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
*
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.
--- 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.
--- 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.
--- 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.
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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
--- 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;
--- 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.*;
--- 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.*;
--- 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
--- 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;
--- 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;
--- 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 <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
--- 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
--- 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.
*/
--- 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.
--- 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"
--- 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.
--- 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 <stdio.h>
#include <stddef.h>
#include <stdlib.h>
--- 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
--- 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.
--- 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
--- 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"
--- 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
--- 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. */
--- 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
--- 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.
--- 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
--- 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 */
--- 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
--- 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. */
--- 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
--- 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).
--- 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
--- 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"
--- 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
--- 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"
--- 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
--- 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. */
/*
--- 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
--- 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) */
--- 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
--- 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 */
/*
--- 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
--- 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. */
/*
--- 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
--- 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
--- 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. */
/*
--- 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
--- 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. */
/*
--- 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
--- 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). */
/*
--- 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
--- 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. */
/*
--- 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
--- 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). */
/*
--- 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
--- 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) */
/*
--- 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
--- 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. */
/*
--- 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
--- 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. */
/*
--- 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
--- 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. */
--- 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
--- 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. */
/*
--- 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
--- 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. */
/*
--- 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
--- 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. */
/*
--- 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
--- 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 */
/*
--- 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
--- 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.
--- 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"
--- 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.
--- 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.
--- 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"
--- 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.
--- 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
--- 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
--- 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 {
--- 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
--- 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 {
--- 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
--- 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 {
--- 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
--- 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;
--- 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.*;
--- 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.*;
--- 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.
--- 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.
*
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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.*;
--- 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;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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:
--- 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
--- 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".
*/
--- 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.
--- 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
--- 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.
--- 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
--- 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
--- /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.
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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;
--- 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.*;
--- 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;
--- 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;
--- 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;
--- 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 {
--- 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;
/**
--- 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;
/**
--- 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;
--- 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.*;
--- 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.*;
--- 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;
--- 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;
--- 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.*;
--- 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.*;
--- 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;
--- 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;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
/**
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.
*
--- 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.*;
/**
--- 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().
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
/**
--- 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.*;
--- 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.*;
--- 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.*;
--- 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.*;
--- 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 -
--- 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
--- 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.
*/
--- 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.
*
--- 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.
*
--- 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.
--- 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
--- 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.
--- 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.
--- 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) {
--- 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.
--- 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.
*/
--- 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[]) {
--- 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 <memory.h>
#include <stdlib.h>
#include "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 <windows.h>
#include <jni.h>
--- 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"
--- 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 <jni.h>
/* Header for class invoker */
--- 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 {
--- 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
--- 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.*;
--- 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
--- 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
--- 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.*;
--- 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;
--- 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;
--- 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 <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
--- 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 <winsock2.h>