changeset 4574:a2376be96654

7067811: Update demo/sample code to state it should not be used for production Summary: Added comment block after copyright block stating that code is unfit for production. Reviewed-by: ohair
author nloodin
date Tue, 06 Sep 2011 13:28:11 +0200
parents bf587b00998d
children de8f5909f8ad
files make/common/Defs.gmk make/mkdemo/Makefile make/mksample/Makefile src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java src/share/classes/com/sun/tools/example/debug/bdi/Session.java src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java src/share/classes/com/sun/tools/example/debug/bdi/Utils.java src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java src/share/classes/com/sun/tools/example/debug/event/JDIListener.java src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java src/share/classes/com/sun/tools/example/debug/expr/LValue.java src/share/classes/com/sun/tools/example/debug/expr/ParseException.java src/share/classes/com/sun/tools/example/debug/expr/Token.java src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java src/share/classes/com/sun/tools/example/debug/gui/Environment.java src/share/classes/com/sun/tools/example/debug/gui/GUI.java src/share/classes/com/sun/tools/example/debug/gui/Icons.java src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java src/share/classes/com/sun/tools/example/debug/tty/Commands.java src/share/classes/com/sun/tools/example/debug/tty/Env.java src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java src/share/classes/com/sun/tools/example/debug/tty/TTY.java src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java src/share/classes/com/sun/tools/example/trace/EventThread.java src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java src/share/classes/com/sun/tools/example/trace/Trace.java src/share/demo/README src/share/demo/applets/ArcTest/ArcTest.java src/share/demo/applets/BarChart/BarChart.java src/share/demo/applets/Blink/Blink.java src/share/demo/applets/CardTest/CardTest.java src/share/demo/applets/Clock/Clock.java src/share/demo/applets/DitherTest/DitherTest.java src/share/demo/applets/DrawTest/DrawTest.java src/share/demo/applets/Fractal/CLSFractal.java src/share/demo/applets/GraphicsTest/AppletFrame.java src/share/demo/applets/GraphicsTest/GraphicsTest.java src/share/demo/applets/MoleculeViewer/Matrix3D.java src/share/demo/applets/MoleculeViewer/XYZApp.java src/share/demo/applets/NervousText/NervousText.java src/share/demo/applets/SimpleGraph/GraphApplet.java src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java src/share/demo/applets/SortDemo/QSortAlgorithm.java src/share/demo/applets/SortDemo/SortAlgorithm.java src/share/demo/applets/SortDemo/SortItem.java src/share/demo/applets/SpreadSheet/SpreadSheet.java src/share/demo/applets/WireFrame/Matrix3D.java src/share/demo/applets/WireFrame/ThreeD.java src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java src/share/demo/java2d/J2DBench/src/j2dbench/Group.java src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java src/share/demo/java2d/J2DBench/src/j2dbench/Node.java src/share/demo/java2d/J2DBench/src/j2dbench/Option.java src/share/demo/java2d/J2DBench/src/j2dbench/Result.java src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java src/share/demo/java2d/J2DBench/src/j2dbench/Test.java src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java src/share/demo/jfc/CodePointIM/CodePointIM.java src/share/demo/jfc/CodePointIM/CodePointInputMethod.java src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java src/share/demo/jfc/FileChooserDemo/ExampleFileView.java src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java src/share/demo/jfc/Font2DTest/Font2DTest.java src/share/demo/jfc/Font2DTest/Font2DTestApplet.java src/share/demo/jfc/Font2DTest/FontPanel.java src/share/demo/jfc/Font2DTest/RangeMenu.java src/share/demo/jfc/Metalworks/AquaMetalTheme.java src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java src/share/demo/jfc/Metalworks/ContrastMetalTheme.java src/share/demo/jfc/Metalworks/DemoMetalTheme.java src/share/demo/jfc/Metalworks/GreenMetalTheme.java src/share/demo/jfc/Metalworks/KhakiMetalTheme.java src/share/demo/jfc/Metalworks/MetalThemeMenu.java src/share/demo/jfc/Metalworks/Metalworks.java src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java src/share/demo/jfc/Metalworks/MetalworksFrame.java src/share/demo/jfc/Metalworks/MetalworksHelp.java src/share/demo/jfc/Metalworks/MetalworksInBox.java src/share/demo/jfc/Metalworks/MetalworksPrefs.java src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java src/share/demo/jfc/Metalworks/UISwitchListener.java src/share/demo/jfc/Notepad/ElementTreePanel.java src/share/demo/jfc/Notepad/Notepad.java src/share/demo/jfc/SampleTree/DynamicTreeNode.java src/share/demo/jfc/SampleTree/SampleData.java src/share/demo/jfc/SampleTree/SampleTree.java src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java src/share/demo/jfc/SampleTree/SampleTreeModel.java src/share/demo/jfc/SwingApplet/SwingApplet.java src/share/demo/jfc/TableExample/JDBCAdapter.java src/share/demo/jfc/TableExample/OldJTable.java src/share/demo/jfc/TableExample/TableExample.java src/share/demo/jfc/TableExample/TableExample2.java src/share/demo/jfc/TableExample/TableExample3.java src/share/demo/jfc/TableExample/TableExample4.java src/share/demo/jfc/TableExample/TableMap.java src/share/demo/jfc/TableExample/TableSorter.java src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java src/share/demo/jvmti/agent_util/agent_util.c src/share/demo/jvmti/agent_util/agent_util.h src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c src/share/demo/jvmti/gctest/gctest.c src/share/demo/jvmti/heapTracker/HeapTracker.java src/share/demo/jvmti/heapTracker/heapTracker.c src/share/demo/jvmti/heapTracker/heapTracker.h src/share/demo/jvmti/heapViewer/heapViewer.c src/share/demo/jvmti/hprof/debug_malloc.c src/share/demo/jvmti/hprof/debug_malloc.h src/share/demo/jvmti/hprof/hprof.h src/share/demo/jvmti/hprof/hprof_blocks.c src/share/demo/jvmti/hprof/hprof_blocks.h src/share/demo/jvmti/hprof/hprof_check.c src/share/demo/jvmti/hprof/hprof_check.h src/share/demo/jvmti/hprof/hprof_class.c src/share/demo/jvmti/hprof/hprof_class.h src/share/demo/jvmti/hprof/hprof_cpu.c src/share/demo/jvmti/hprof/hprof_cpu.h src/share/demo/jvmti/hprof/hprof_error.c src/share/demo/jvmti/hprof/hprof_error.h src/share/demo/jvmti/hprof/hprof_event.c src/share/demo/jvmti/hprof/hprof_event.h src/share/demo/jvmti/hprof/hprof_frame.c src/share/demo/jvmti/hprof/hprof_frame.h src/share/demo/jvmti/hprof/hprof_init.c src/share/demo/jvmti/hprof/hprof_init.h src/share/demo/jvmti/hprof/hprof_io.c src/share/demo/jvmti/hprof/hprof_io.h src/share/demo/jvmti/hprof/hprof_ioname.c src/share/demo/jvmti/hprof/hprof_ioname.h src/share/demo/jvmti/hprof/hprof_listener.c src/share/demo/jvmti/hprof/hprof_listener.h src/share/demo/jvmti/hprof/hprof_loader.c src/share/demo/jvmti/hprof/hprof_loader.h src/share/demo/jvmti/hprof/hprof_md.h src/share/demo/jvmti/hprof/hprof_monitor.c src/share/demo/jvmti/hprof/hprof_monitor.h src/share/demo/jvmti/hprof/hprof_object.c src/share/demo/jvmti/hprof/hprof_object.h src/share/demo/jvmti/hprof/hprof_reference.c src/share/demo/jvmti/hprof/hprof_reference.h src/share/demo/jvmti/hprof/hprof_site.c src/share/demo/jvmti/hprof/hprof_site.h src/share/demo/jvmti/hprof/hprof_stack.c src/share/demo/jvmti/hprof/hprof_stack.h src/share/demo/jvmti/hprof/hprof_string.c src/share/demo/jvmti/hprof/hprof_string.h src/share/demo/jvmti/hprof/hprof_table.c src/share/demo/jvmti/hprof/hprof_table.h src/share/demo/jvmti/hprof/hprof_tag.c src/share/demo/jvmti/hprof/hprof_tag.h src/share/demo/jvmti/hprof/hprof_tls.c src/share/demo/jvmti/hprof/hprof_tls.h src/share/demo/jvmti/hprof/hprof_trace.c src/share/demo/jvmti/hprof/hprof_trace.h src/share/demo/jvmti/hprof/hprof_tracker.c src/share/demo/jvmti/hprof/hprof_tracker.h src/share/demo/jvmti/hprof/hprof_util.c src/share/demo/jvmti/hprof/hprof_util.h src/share/demo/jvmti/java_crw_demo/java_crw_demo.c src/share/demo/jvmti/java_crw_demo/java_crw_demo.h src/share/demo/jvmti/minst/Minst.java src/share/demo/jvmti/minst/minst.c src/share/demo/jvmti/minst/minst.h src/share/demo/jvmti/mtrace/Mtrace.java src/share/demo/jvmti/mtrace/mtrace.c src/share/demo/jvmti/mtrace/mtrace.h src/share/demo/jvmti/versionCheck/versionCheck.c src/share/demo/jvmti/waiters/Agent.cpp src/share/demo/jvmti/waiters/Agent.hpp src/share/demo/jvmti/waiters/Monitor.cpp src/share/demo/jvmti/waiters/Monitor.hpp src/share/demo/jvmti/waiters/Thread.cpp src/share/demo/jvmti/waiters/Thread.hpp src/share/demo/jvmti/waiters/waiters.cpp src/share/demo/management/FullThreadDump/Deadlock.java src/share/demo/management/FullThreadDump/FullThreadDump.java src/share/demo/management/FullThreadDump/ThreadMonitor.java src/share/demo/management/JTop/JTop.java src/share/demo/management/JTop/JTopPlugin.java src/share/demo/management/MemoryMonitor/MemoryMonitor.java src/share/demo/management/VerboseGC/PrintGCStat.java src/share/demo/management/VerboseGC/VerboseGC.java src/share/demo/nio/zipfs/Demo.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js src/share/sample/README src/share/sample/forkjoin/mergesort/MergeDemo.java src/share/sample/forkjoin/mergesort/MergeSort.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java src/share/sample/nio/chatserver/ChatServer.java src/share/sample/nio/chatserver/Client.java src/share/sample/nio/chatserver/ClientReader.java src/share/sample/nio/chatserver/DataReader.java src/share/sample/nio/chatserver/MessageReader.java src/share/sample/nio/chatserver/NameReader.java src/share/sample/nio/file/AclEdit.java src/share/sample/nio/file/Chmod.java src/share/sample/nio/file/Copy.java src/share/sample/nio/file/DiskUsage.java src/share/sample/nio/file/FileType.java src/share/sample/nio/file/WatchDir.java src/share/sample/nio/file/Xdd.java src/share/sample/nio/multicast/MulticastAddress.java src/share/sample/nio/multicast/Reader.java src/share/sample/nio/multicast/Sender.java src/share/sample/nio/server/AcceptHandler.java src/share/sample/nio/server/Acceptor.java src/share/sample/nio/server/B1.java src/share/sample/nio/server/BN.java src/share/sample/nio/server/BP.java src/share/sample/nio/server/ChannelIO.java src/share/sample/nio/server/ChannelIOSecure.java src/share/sample/nio/server/Content.java src/share/sample/nio/server/Dispatcher.java src/share/sample/nio/server/Dispatcher1.java src/share/sample/nio/server/DispatcherN.java src/share/sample/nio/server/FileContent.java src/share/sample/nio/server/Handler.java src/share/sample/nio/server/MalformedRequestException.java src/share/sample/nio/server/N1.java src/share/sample/nio/server/N2.java src/share/sample/nio/server/Reply.java src/share/sample/nio/server/Request.java src/share/sample/nio/server/RequestHandler.java src/share/sample/nio/server/RequestServicer.java src/share/sample/nio/server/Sendable.java src/share/sample/nio/server/Server.java src/share/sample/nio/server/StringContent.java src/share/sample/nio/server/URLDumper.java src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java src/share/sample/scripting/scriptpad/src/resources/Main.js src/share/sample/scripting/scriptpad/src/resources/conc.js src/share/sample/scripting/scriptpad/src/resources/gui.js src/share/sample/scripting/scriptpad/src/resources/mm.js src/share/sample/scripting/scriptpad/src/resources/scriptpad.js src/share/sample/scripting/scriptpad/src/scripts/browse.js src/share/sample/scripting/scriptpad/src/scripts/insertfile.js src/share/sample/scripting/scriptpad/src/scripts/linewrap.js src/share/sample/scripting/scriptpad/src/scripts/mail.js src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js src/share/sample/scripting/scriptpad/src/scripts/memory.js src/share/sample/scripting/scriptpad/src/scripts/textcolor.js src/share/sample/vm/clr-jvm/invoked.java src/share/sample/vm/clr-jvm/jinvoker.cpp src/share/sample/vm/clr-jvm/jinvokerExp.h src/share/sample/vm/jvm-clr/invoker.cpp src/share/sample/vm/jvm-clr/invoker.h src/share/sample/vm/jvm-clr/invoker.java src/share/sample/vm/jvm-clr/invokerExp.h src/solaris/demo/jni/Poller/Client.java src/solaris/demo/jni/Poller/LinkedQueue.java src/solaris/demo/jni/Poller/Poller.c src/solaris/demo/jni/Poller/Poller.java src/solaris/demo/jni/Poller/PollingServer.java src/solaris/demo/jni/Poller/SimpleServer.java src/solaris/demo/jvmti/hprof/hprof_md.c src/windows/demo/jvmti/hprof/hprof_md.c
diffstat 422 files changed, 3784 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/Defs.gmk	Mon Sep 05 13:31:44 2011 +0100
+++ b/make/common/Defs.gmk	Tue Sep 06 13:28:11 2011 +0200
@@ -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/make/mkdemo/Makefile	Mon Sep 05 13:31:44 2011 +0100
+++ b/make/mkdemo/Makefile	Tue Sep 06 13:28:11 2011 +0200
@@ -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/make/mksample/Makefile	Mon Sep 05 13:31:44 2011 +0100
+++ b/make/mksample/Makefile	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/Session.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/Session.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/classes/com/sun/tools/example/debug/expr/LValue.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/LValue.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/classes/com/sun/tools/example/debug/expr/Token.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/Token.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/Environment.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/Environment.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/GUI.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/GUI.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/Icons.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/Icons.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/Commands.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/Commands.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/Env.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/Env.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/TTY.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTY.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, 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/src/share/classes/com/sun/tools/example/trace/EventThread.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/trace/EventThread.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality 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/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality 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/src/share/classes/com/sun/tools/example/trace/Trace.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/classes/com/sun/tools/example/trace/Trace.java	Tue Sep 06 13:28:11 2011 +0200
@@ -23,6 +23,15 @@
  * questions.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality 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/src/share/demo/README	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/applets/ArcTest/ArcTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/ArcTest/ArcTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/BarChart/BarChart.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/BarChart/BarChart.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/Blink/Blink.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/Blink/Blink.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/applets/CardTest/CardTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/CardTest/CardTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/Clock/Clock.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/Clock/Clock.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/DitherTest/DitherTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/DitherTest/DitherTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/DrawTest/DrawTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/DrawTest/DrawTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/Fractal/CLSFractal.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/Fractal/CLSFractal.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/GraphicsTest/AppletFrame.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/GraphicsTest/AppletFrame.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/GraphicsTest/GraphicsTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/GraphicsTest/GraphicsTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/MoleculeViewer/Matrix3D.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/MoleculeViewer/Matrix3D.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/applets/MoleculeViewer/XYZApp.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/MoleculeViewer/XYZApp.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/NervousText/NervousText.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/NervousText/NervousText.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/SimpleGraph/GraphApplet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/SimpleGraph/GraphApplet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/applets/SortDemo/QSortAlgorithm.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/SortDemo/QSortAlgorithm.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/applets/SortDemo/SortAlgorithm.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/SortDemo/SortAlgorithm.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/applets/SortDemo/SortItem.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/SortDemo/SortItem.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/SpreadSheet/SpreadSheet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/SpreadSheet/SpreadSheet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/applets/WireFrame/Matrix3D.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/WireFrame/Matrix3D.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/applets/WireFrame/ThreeD.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/applets/WireFrame/ThreeD.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/CodePointIM/CodePointIM.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/CodePointIM/CodePointIM.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Font2DTest/Font2DTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Font2DTest/Font2DTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/jfc/Font2DTest/FontPanel.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Font2DTest/FontPanel.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Font2DTest/RangeMenu.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Font2DTest/RangeMenu.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/jfc/Metalworks/AquaMetalTheme.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/AquaMetalTheme.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/DemoMetalTheme.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/DemoMetalTheme.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/GreenMetalTheme.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/GreenMetalTheme.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/MetalThemeMenu.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/MetalThemeMenu.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/Metalworks.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/Metalworks.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/MetalworksFrame.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/MetalworksFrame.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/MetalworksHelp.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/MetalworksHelp.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/MetalworksInBox.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/MetalworksInBox.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/MetalworksPrefs.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/MetalworksPrefs.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Metalworks/UISwitchListener.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Metalworks/UISwitchListener.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Notepad/ElementTreePanel.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Notepad/ElementTreePanel.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/Notepad/Notepad.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/Notepad/Notepad.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/SampleTree/DynamicTreeNode.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/SampleTree/DynamicTreeNode.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/SampleTree/SampleData.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/SampleTree/SampleData.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/SampleTree/SampleTree.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/SampleTree/SampleTree.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/SampleTree/SampleTreeModel.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/SampleTree/SampleTreeModel.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/SwingApplet/SwingApplet.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/SwingApplet/SwingApplet.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/TableExample/JDBCAdapter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/JDBCAdapter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/TableExample/OldJTable.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/OldJTable.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/TableExample/TableExample.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/TableExample.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jfc/TableExample/TableExample2.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/TableExample2.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/TableExample/TableExample3.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/TableExample3.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/TableExample/TableExample4.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/TableExample4.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/TableExample/TableMap.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/TableMap.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jfc/TableExample/TableSorter.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TableExample/TableSorter.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/jvmti/agent_util/agent_util.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/agent_util/agent_util.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/agent_util/agent_util.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/agent_util/agent_util.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/gctest/gctest.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/gctest/gctest.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/heapTracker/HeapTracker.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/heapTracker/HeapTracker.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/heapTracker/heapTracker.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/heapTracker/heapTracker.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/heapTracker/heapTracker.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/heapTracker/heapTracker.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/heapViewer/heapViewer.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/heapViewer/heapViewer.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/debug_malloc.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/debug_malloc.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/debug_malloc.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/debug_malloc.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_blocks.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_blocks.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_blocks.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_blocks.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_check.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_check.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_check.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_check.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_class.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_class.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_class.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_class.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_cpu.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_cpu.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_cpu.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_cpu.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_error.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_error.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_error.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_error.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_event.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_event.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_event.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_event.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_frame.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_frame.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_frame.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_frame.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_init.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_init.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_init.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_init.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_io.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_io.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_io.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_io.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_ioname.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_ioname.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_ioname.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_ioname.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_listener.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_listener.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_listener.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_listener.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_loader.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_loader.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_loader.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_loader.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_md.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_md.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_monitor.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_monitor.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_monitor.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_monitor.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_object.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_object.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_object.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_object.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_reference.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_reference.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_reference.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_reference.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_site.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_site.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_site.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_site.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_stack.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_stack.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_stack.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_stack.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_string.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_string.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_string.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_string.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_table.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_table.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_table.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_table.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_tag.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_tag.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_tag.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_tag.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_tls.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_tls.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_tls.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_tls.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_trace.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_trace.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_trace.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_trace.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_tracker.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_tracker.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_tracker.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_tracker.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_util.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_util.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/hprof/hprof_util.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/hprof/hprof_util.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/minst/Minst.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/minst/Minst.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/minst/minst.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/minst/minst.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/minst/minst.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/minst/minst.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/mtrace/Mtrace.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/mtrace/Mtrace.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/mtrace/mtrace.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/mtrace/mtrace.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/mtrace/mtrace.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/mtrace/mtrace.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/versionCheck/versionCheck.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/versionCheck/versionCheck.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/waiters/Agent.cpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/waiters/Agent.cpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/waiters/Agent.hpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/waiters/Agent.hpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/waiters/Monitor.cpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/waiters/Monitor.cpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/waiters/Monitor.hpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/waiters/Monitor.hpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/waiters/Thread.cpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/waiters/Thread.cpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/waiters/Thread.hpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/waiters/Thread.hpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/jvmti/waiters/waiters.cpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/jvmti/waiters/waiters.cpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/demo/management/FullThreadDump/Deadlock.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/FullThreadDump/Deadlock.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/management/FullThreadDump/FullThreadDump.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/FullThreadDump/FullThreadDump.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/management/FullThreadDump/ThreadMonitor.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/FullThreadDump/ThreadMonitor.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/management/JTop/JTop.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/JTop/JTop.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/management/JTop/JTopPlugin.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/JTop/JTopPlugin.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/management/MemoryMonitor/MemoryMonitor.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/MemoryMonitor/MemoryMonitor.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/management/VerboseGC/PrintGCStat.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/VerboseGC/PrintGCStat.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/management/VerboseGC/VerboseGC.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/management/VerboseGC/VerboseGC.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/nio/zipfs/Demo.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/Demo.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
 package com.sun.nio.zipfs;
 
 import java.io.BufferedOutputStream;
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/README	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/forkjoin/mergesort/MergeDemo.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/forkjoin/mergesort/MergeDemo.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/forkjoin/mergesort/MergeSort.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/forkjoin/mergesort/MergeSort.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/nio/chatserver/ChatServer.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/chatserver/ChatServer.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/chatserver/Client.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/chatserver/Client.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/chatserver/ClientReader.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/chatserver/ClientReader.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/chatserver/DataReader.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/chatserver/DataReader.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/chatserver/MessageReader.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/chatserver/MessageReader.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/chatserver/NameReader.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/chatserver/NameReader.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/file/AclEdit.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/file/AclEdit.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/file/Chmod.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/file/Chmod.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/file/Copy.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/file/Copy.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/file/DiskUsage.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/file/DiskUsage.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/file/FileType.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/file/FileType.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/file/WatchDir.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/file/WatchDir.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/file/Xdd.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/file/Xdd.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/multicast/MulticastAddress.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/multicast/MulticastAddress.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/multicast/Reader.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/multicast/Reader.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/multicast/Sender.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/multicast/Sender.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/AcceptHandler.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/AcceptHandler.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/Acceptor.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Acceptor.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/B1.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/B1.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/BN.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/BN.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/BP.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/BP.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/ChannelIO.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/ChannelIO.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/ChannelIOSecure.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/ChannelIOSecure.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/Content.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Content.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/nio/server/Dispatcher.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Dispatcher.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/Dispatcher1.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Dispatcher1.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/DispatcherN.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/DispatcherN.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/FileContent.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/FileContent.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/Handler.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Handler.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/MalformedRequestException.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/MalformedRequestException.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/nio/server/N1.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/N1.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/N2.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/N2.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/nio/server/Reply.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Reply.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/Request.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Request.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/RequestHandler.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/RequestHandler.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/RequestServicer.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/RequestServicer.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/Sendable.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Sendable.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/Server.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/Server.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/StringContent.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/StringContent.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/nio/server/URLDumper.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/nio/server/URLDumper.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a 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/src/share/sample/scripting/scriptpad/src/resources/Main.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/resources/Main.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/resources/conc.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/resources/conc.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/resources/gui.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/resources/gui.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/resources/mm.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/resources/mm.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/scripts/browse.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/scripts/browse.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/scripts/mail.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/scripts/mail.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/scripting/scriptpad/src/scripts/memory.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/scripts/memory.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/share/sample/vm/clr-jvm/invoked.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/vm/clr-jvm/invoked.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/vm/clr-jvm/jinvoker.cpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/vm/clr-jvm/jinvoker.cpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/vm/clr-jvm/jinvokerExp.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/vm/clr-jvm/jinvokerExp.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/vm/jvm-clr/invoker.cpp	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/vm/jvm-clr/invoker.cpp	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/vm/jvm-clr/invoker.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/vm/jvm-clr/invoker.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/vm/jvm-clr/invoker.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/vm/jvm-clr/invoker.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/share/sample/vm/jvm-clr/invokerExp.h	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/share/sample/vm/jvm-clr/invokerExp.h	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/solaris/demo/jni/Poller/Client.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/solaris/demo/jni/Poller/Client.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/solaris/demo/jni/Poller/LinkedQueue.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/solaris/demo/jni/Poller/LinkedQueue.java	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/solaris/demo/jni/Poller/Poller.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/solaris/demo/jni/Poller/Poller.c	Tue Sep 06 13:28:11 2011 +0200
@@ -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/src/solaris/demo/jni/Poller/Poller.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/solaris/demo/jni/Poller/Poller.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/solaris/demo/jni/Poller/PollingServer.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/solaris/demo/jni/Poller/PollingServer.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/solaris/demo/jni/Poller/SimpleServer.java	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/solaris/demo/jni/Poller/SimpleServer.java	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required 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/src/solaris/demo/jvmti/hprof/hprof_md.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/solaris/demo/jvmti/hprof/hprof_md.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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/src/windows/demo/jvmti/hprof/hprof_md.c	Mon Sep 05 13:31:44 2011 +0100
+++ b/src/windows/demo/jvmti/hprof/hprof_md.c	Tue Sep 06 13:28:11 2011 +0200
@@ -29,6 +29,15 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * 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>