aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornloodin <none@none>2011-08-31 13:48:04 +0200
committernloodin <none@none>2011-08-31 13:48:04 +0200
commitdf71f761b471ae31605978ed2221f731d99d0d01 (patch)
tree37fce914c5aa83b9315bfc94241b8decd690ba95
parentaeeeb89e924065bf39060faa2a3dde7a717470e3 (diff)
downloadjdk8u_jdk-df71f761b471ae31605978ed2221f731d99d0d01.tar.gz
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
-rw-r--r--make/common/Defs.gmk3
-rw-r--r--make/mkdemo/Makefile9
-rw-r--r--make/mksample/Makefile8
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/Session.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/Utils.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/JDIListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/LValue.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/ParseException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/Token.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/Environment.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/GUI.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/Icons.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/Commands.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/Env.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/TTY.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java9
-rw-r--r--src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java9
-rw-r--r--src/share/classes/com/sun/tools/example/trace/EventThread.java9
-rw-r--r--src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java9
-rw-r--r--src/share/classes/com/sun/tools/example/trace/Trace.java9
-rw-r--r--src/share/demo/README6
-rw-r--r--src/share/demo/applets/ArcTest/ArcTest.java9
-rw-r--r--src/share/demo/applets/BarChart/BarChart.java9
-rw-r--r--src/share/demo/applets/Blink/Blink.java9
-rw-r--r--src/share/demo/applets/CardTest/CardTest.java9
-rw-r--r--src/share/demo/applets/Clock/Clock.java9
-rw-r--r--src/share/demo/applets/DitherTest/DitherTest.java9
-rw-r--r--src/share/demo/applets/DrawTest/DrawTest.java9
-rw-r--r--src/share/demo/applets/Fractal/CLSFractal.java9
-rw-r--r--src/share/demo/applets/GraphicsTest/AppletFrame.java9
-rw-r--r--src/share/demo/applets/GraphicsTest/GraphicsTest.java9
-rw-r--r--src/share/demo/applets/MoleculeViewer/Matrix3D.java9
-rw-r--r--src/share/demo/applets/MoleculeViewer/XYZApp.java9
-rw-r--r--src/share/demo/applets/NervousText/NervousText.java9
-rw-r--r--src/share/demo/applets/SimpleGraph/GraphApplet.java9
-rw-r--r--src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java9
-rw-r--r--src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java9
-rw-r--r--src/share/demo/applets/SortDemo/QSortAlgorithm.java9
-rw-r--r--src/share/demo/applets/SortDemo/SortAlgorithm.java9
-rw-r--r--src/share/demo/applets/SortDemo/SortItem.java9
-rw-r--r--src/share/demo/applets/SpreadSheet/SpreadSheet.java9
-rw-r--r--src/share/demo/applets/WireFrame/Matrix3D.java9
-rw-r--r--src/share/demo/applets/WireFrame/ThreeD.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/Group.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/Node.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/Option.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/Result.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/Test.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java9
-rw-r--r--src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java9
-rw-r--r--src/share/demo/jfc/CodePointIM/CodePointIM.java9
-rw-r--r--src/share/demo/jfc/CodePointIM/CodePointInputMethod.java9
-rw-r--r--src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java9
-rw-r--r--src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java9
-rw-r--r--src/share/demo/jfc/FileChooserDemo/ExampleFileView.java9
-rw-r--r--src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java9
-rw-r--r--src/share/demo/jfc/Font2DTest/Font2DTest.java9
-rw-r--r--src/share/demo/jfc/Font2DTest/Font2DTestApplet.java9
-rw-r--r--src/share/demo/jfc/Font2DTest/FontPanel.java9
-rw-r--r--src/share/demo/jfc/Font2DTest/RangeMenu.java9
-rw-r--r--src/share/demo/jfc/Metalworks/AquaMetalTheme.java9
-rw-r--r--src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java9
-rw-r--r--src/share/demo/jfc/Metalworks/ContrastMetalTheme.java9
-rw-r--r--src/share/demo/jfc/Metalworks/DemoMetalTheme.java9
-rw-r--r--src/share/demo/jfc/Metalworks/GreenMetalTheme.java9
-rw-r--r--src/share/demo/jfc/Metalworks/KhakiMetalTheme.java9
-rw-r--r--src/share/demo/jfc/Metalworks/MetalThemeMenu.java9
-rw-r--r--src/share/demo/jfc/Metalworks/Metalworks.java9
-rw-r--r--src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java9
-rw-r--r--src/share/demo/jfc/Metalworks/MetalworksFrame.java9
-rw-r--r--src/share/demo/jfc/Metalworks/MetalworksHelp.java9
-rw-r--r--src/share/demo/jfc/Metalworks/MetalworksInBox.java9
-rw-r--r--src/share/demo/jfc/Metalworks/MetalworksPrefs.java9
-rw-r--r--src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java9
-rw-r--r--src/share/demo/jfc/Metalworks/UISwitchListener.java9
-rw-r--r--src/share/demo/jfc/Notepad/ElementTreePanel.java9
-rw-r--r--src/share/demo/jfc/Notepad/Notepad.java9
-rw-r--r--src/share/demo/jfc/SampleTree/DynamicTreeNode.java9
-rw-r--r--src/share/demo/jfc/SampleTree/SampleData.java9
-rw-r--r--src/share/demo/jfc/SampleTree/SampleTree.java9
-rw-r--r--src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java9
-rw-r--r--src/share/demo/jfc/SampleTree/SampleTreeModel.java9
-rw-r--r--src/share/demo/jfc/SwingApplet/SwingApplet.java9
-rw-r--r--src/share/demo/jfc/TableExample/JDBCAdapter.java9
-rw-r--r--src/share/demo/jfc/TableExample/OldJTable.java9
-rw-r--r--src/share/demo/jfc/TableExample/TableExample.java9
-rw-r--r--src/share/demo/jfc/TableExample/TableExample2.java9
-rw-r--r--src/share/demo/jfc/TableExample/TableExample3.java9
-rw-r--r--src/share/demo/jfc/TableExample/TableExample4.java9
-rw-r--r--src/share/demo/jfc/TableExample/TableMap.java9
-rw-r--r--src/share/demo/jfc/TableExample/TableSorter.java9
-rw-r--r--src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java9
-rw-r--r--src/share/demo/jvmti/agent_util/agent_util.c9
-rw-r--r--src/share/demo/jvmti/agent_util/agent_util.h9
-rw-r--r--src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c9
-rw-r--r--src/share/demo/jvmti/gctest/gctest.c9
-rw-r--r--src/share/demo/jvmti/heapTracker/HeapTracker.java9
-rw-r--r--src/share/demo/jvmti/heapTracker/heapTracker.c9
-rw-r--r--src/share/demo/jvmti/heapTracker/heapTracker.h9
-rw-r--r--src/share/demo/jvmti/heapViewer/heapViewer.c9
-rw-r--r--src/share/demo/jvmti/hprof/debug_malloc.c9
-rw-r--r--src/share/demo/jvmti/hprof/debug_malloc.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_blocks.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_blocks.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_check.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_check.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_class.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_class.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_cpu.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_cpu.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_error.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_error.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_event.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_event.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_frame.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_frame.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_init.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_init.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_io.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_io.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_ioname.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_ioname.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_listener.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_listener.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_loader.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_loader.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_md.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_monitor.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_monitor.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_object.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_object.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_reference.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_reference.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_site.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_site.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_stack.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_stack.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_string.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_string.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_table.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_table.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_tag.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_tag.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_tls.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_tls.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_trace.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_trace.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_tracker.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_tracker.h9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_util.c9
-rw-r--r--src/share/demo/jvmti/hprof/hprof_util.h9
-rw-r--r--src/share/demo/jvmti/java_crw_demo/java_crw_demo.c9
-rw-r--r--src/share/demo/jvmti/java_crw_demo/java_crw_demo.h9
-rw-r--r--src/share/demo/jvmti/minst/Minst.java9
-rw-r--r--src/share/demo/jvmti/minst/minst.c9
-rw-r--r--src/share/demo/jvmti/minst/minst.h9
-rw-r--r--src/share/demo/jvmti/mtrace/Mtrace.java9
-rw-r--r--src/share/demo/jvmti/mtrace/mtrace.c9
-rw-r--r--src/share/demo/jvmti/mtrace/mtrace.h9
-rw-r--r--src/share/demo/jvmti/versionCheck/versionCheck.c9
-rw-r--r--src/share/demo/jvmti/waiters/Agent.cpp9
-rw-r--r--src/share/demo/jvmti/waiters/Agent.hpp9
-rw-r--r--src/share/demo/jvmti/waiters/Monitor.cpp9
-rw-r--r--src/share/demo/jvmti/waiters/Monitor.hpp9
-rw-r--r--src/share/demo/jvmti/waiters/Thread.cpp9
-rw-r--r--src/share/demo/jvmti/waiters/Thread.hpp9
-rw-r--r--src/share/demo/jvmti/waiters/waiters.cpp9
-rw-r--r--src/share/demo/management/FullThreadDump/Deadlock.java9
-rw-r--r--src/share/demo/management/FullThreadDump/FullThreadDump.java9
-rw-r--r--src/share/demo/management/FullThreadDump/ThreadMonitor.java9
-rw-r--r--src/share/demo/management/JTop/JTop.java9
-rw-r--r--src/share/demo/management/JTop/JTopPlugin.java9
-rw-r--r--src/share/demo/management/MemoryMonitor/MemoryMonitor.java9
-rw-r--r--src/share/demo/management/VerboseGC/PrintGCStat.java9
-rw-r--r--src/share/demo/management/VerboseGC/VerboseGC.java9
-rw-r--r--src/share/demo/nio/zipfs/Demo.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java9
-rw-r--r--src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js9
-rw-r--r--src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js9
-rw-r--r--src/share/sample/README6
-rw-r--r--src/share/sample/forkjoin/mergesort/MergeDemo.java9
-rw-r--r--src/share/sample/forkjoin/mergesort/MergeSort.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java9
-rw-r--r--src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java9
-rw-r--r--src/share/sample/nio/chatserver/ChatServer.java9
-rw-r--r--src/share/sample/nio/chatserver/Client.java9
-rw-r--r--src/share/sample/nio/chatserver/ClientReader.java9
-rw-r--r--src/share/sample/nio/chatserver/DataReader.java9
-rw-r--r--src/share/sample/nio/chatserver/MessageReader.java9
-rw-r--r--src/share/sample/nio/chatserver/NameReader.java9
-rw-r--r--src/share/sample/nio/file/AclEdit.java9
-rw-r--r--src/share/sample/nio/file/Chmod.java9
-rw-r--r--src/share/sample/nio/file/Copy.java9
-rw-r--r--src/share/sample/nio/file/DiskUsage.java9
-rw-r--r--src/share/sample/nio/file/FileType.java9
-rw-r--r--src/share/sample/nio/file/WatchDir.java9
-rw-r--r--src/share/sample/nio/file/Xdd.java9
-rw-r--r--src/share/sample/nio/multicast/MulticastAddress.java9
-rw-r--r--src/share/sample/nio/multicast/Reader.java9
-rw-r--r--src/share/sample/nio/multicast/Sender.java9
-rw-r--r--src/share/sample/nio/server/AcceptHandler.java9
-rw-r--r--src/share/sample/nio/server/Acceptor.java9
-rw-r--r--src/share/sample/nio/server/B1.java9
-rw-r--r--src/share/sample/nio/server/BN.java9
-rw-r--r--src/share/sample/nio/server/BP.java9
-rw-r--r--src/share/sample/nio/server/ChannelIO.java9
-rw-r--r--src/share/sample/nio/server/ChannelIOSecure.java9
-rw-r--r--src/share/sample/nio/server/Content.java9
-rw-r--r--src/share/sample/nio/server/Dispatcher.java9
-rw-r--r--src/share/sample/nio/server/Dispatcher1.java9
-rw-r--r--src/share/sample/nio/server/DispatcherN.java9
-rw-r--r--src/share/sample/nio/server/FileContent.java9
-rw-r--r--src/share/sample/nio/server/Handler.java9
-rw-r--r--src/share/sample/nio/server/MalformedRequestException.java9
-rw-r--r--src/share/sample/nio/server/N1.java9
-rw-r--r--src/share/sample/nio/server/N2.java9
-rw-r--r--src/share/sample/nio/server/Reply.java9
-rw-r--r--src/share/sample/nio/server/Request.java9
-rw-r--r--src/share/sample/nio/server/RequestHandler.java9
-rw-r--r--src/share/sample/nio/server/RequestServicer.java9
-rw-r--r--src/share/sample/nio/server/Sendable.java9
-rw-r--r--src/share/sample/nio/server/Server.java9
-rw-r--r--src/share/sample/nio/server/StringContent.java9
-rw-r--r--src/share/sample/nio/server/URLDumper.java9
-rw-r--r--src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java9
-rw-r--r--src/share/sample/scripting/scriptpad/src/resources/Main.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/resources/conc.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/resources/gui.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/resources/mm.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/resources/scriptpad.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/scripts/browse.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/scripts/insertfile.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/scripts/linewrap.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/scripts/mail.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/scripts/memory.js9
-rw-r--r--src/share/sample/scripting/scriptpad/src/scripts/textcolor.js9
-rw-r--r--src/share/sample/vm/clr-jvm/invoked.java9
-rw-r--r--src/share/sample/vm/clr-jvm/jinvoker.cpp9
-rw-r--r--src/share/sample/vm/clr-jvm/jinvokerExp.h9
-rw-r--r--src/share/sample/vm/jvm-clr/invoker.cpp9
-rw-r--r--src/share/sample/vm/jvm-clr/invoker.h9
-rw-r--r--src/share/sample/vm/jvm-clr/invoker.java9
-rw-r--r--src/share/sample/vm/jvm-clr/invokerExp.h9
-rw-r--r--src/solaris/demo/jni/Poller/Client.java9
-rw-r--r--src/solaris/demo/jni/Poller/LinkedQueue.java9
-rw-r--r--src/solaris/demo/jni/Poller/Poller.c9
-rw-r--r--src/solaris/demo/jni/Poller/Poller.java9
-rw-r--r--src/solaris/demo/jni/Poller/PollingServer.java9
-rw-r--r--src/solaris/demo/jni/Poller/SimpleServer.java9
-rw-r--r--src/solaris/demo/jvmti/hprof/hprof_md.c9
-rw-r--r--src/windows/demo/jvmti/hprof/hprof_md.c9
422 files changed, 3784 insertions, 1 deletions
diff --git a/make/common/Defs.gmk b/make/common/Defs.gmk
index 1e12d41194..e46aedeffe 100644
--- a/make/common/Defs.gmk
+++ b/make/common/Defs.gmk
@@ -300,6 +300,9 @@ JRE_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-image
#where the demo source can be found
DEMOSRCDIR = $(SHARE_SRC)/demo
+#where the sample source can be found
+SAMPLESRCDIR = $(SHARE_SRC)/sample
+
# An attempt is made to generate unique enough directories for the
# generated files to not have name collisisons. Most build units
# defines PRODUCT (except Release.gmk), but then they may or may
diff --git a/make/mkdemo/Makefile b/make/mkdemo/Makefile
index c134316218..6bf93e5366 100644
--- a/make/mkdemo/Makefile
+++ b/make/mkdemo/Makefile
@@ -39,9 +39,14 @@ SUBDIRS_tools = jpda jvmti
include $(BUILDDIR)/common/Subdirs.gmk
+TOPLEVEL_FILES = \
+ $(DEMODIR)/README
+
all build:: nbproject
$(SUBDIRS-loop)
+all build:: $(TOPLEVEL_FILES)
+
nbproject:
$(RM) -r $(DEMODIR)/nbproject
$(MKDIR) -p $(DEMODIR)
@@ -54,8 +59,10 @@ ifndef OPENJDK
( $(CD) $(DEMODIR) && $(TAR) -xf - )
endif
+$(DEMODIR)/%: $(DEMOSRCDIR)/%
+ $(install-file)
+
clean clobber::
$(SUBDIRS-loop)
$(RM) -r $(DEMODIR)
$(RM) -r $(DEMOCLASSDIR)
-
diff --git a/make/mksample/Makefile b/make/mksample/Makefile
index bdc770b4f7..aa4e31d69e 100644
--- a/make/mksample/Makefile
+++ b/make/mksample/Makefile
@@ -49,8 +49,16 @@ endif
include $(BUILDDIR)/common/Subdirs.gmk
+TOPLEVEL_FILES = \
+ $(SAMPLEDIR)/README
+
all build clean clobber::
$(SUBDIRS-loop)
+all build:: $(TOPLEVEL_FILES)
+
+$(SAMPLEDIR)/%: $(SAMPLESRCDIR)/%
+ $(install-file)
+
clobber clean ::
$(RM) -r $(SAMPLEDIR)
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java
index 09e3f7e681..8cfe90ff58 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/AccessWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java b/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java
index 667cbb2259..139d688303 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/AmbiguousMethodException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class AmbiguousMethodException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java
index 541582ef89..9e5da4001f 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/BreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public abstract class BreakpointSpec extends EventRequestSpec {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java b/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java
index 917b0d8803..74697098aa 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ChildSession.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java b/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java
index 0e0a6b0b48..9163e5b457 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EvaluationException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class EvaluationException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java
index 796d5803b9..5a9c1d7ce5 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java
index a48982780d..ce5dccee71 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/EventRequestSpecList.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java
index fa3fcb3de2..c26d8b8d48 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExceptionSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.ReferenceType;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java b/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java
index 35f2075daa..4a79f4352b 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ExecutionManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java b/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java
index 5d70918cb3..4f1ebd2f7d 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/FrameIndexOutOfBoundsException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class FrameIndexOutOfBoundsException extends IndexOutOfBoundsException {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java
index a06d39bc61..d32d1da314 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/InputListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public interface InputListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java b/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java
index dedc2477e0..bd34832e35 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/JDIEventSource.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java
index 0a1e0b1cb3..838fe550d5 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineBreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java b/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java
index 6d906a8b65..97f023ad1d 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/LineNotFoundException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class LineNotFoundException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java b/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java
index c73e685f50..1dea517a42 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MalformedMemberNameException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
class MalformedMemberNameException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java
index 7a9748af10..387f92fbae 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodBreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java b/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java
index 9fd3aa9efc..75331cc551 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class MethodNotFoundException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java
index 7043d666ec..7d30378e35 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ModificationWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java b/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java
index 32988ab140..df1c82d394 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoSessionException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class NoSessionException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java b/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java
index 460b1a4ba4..48ed6badab 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/NoThreadException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class NoThreadException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java
index 777926b6df..2f5db08e20 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/OutputListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public interface OutputListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java b/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java
index c730c6ce1a..413e7aa224 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ParseException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
// dummy placeholder for javaCC-generated code.
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java
index 4f6d73e8e7..382b6da88a 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/PatternReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java
index fc478060aa..199df81893 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/Session.java b/src/share/classes/com/sun/tools/example/debug/bdi/Session.java
index 4599cb1ba1..d2cd7ced18 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/Session.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/Session.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.VirtualMachine;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java
index df109a5a18..1b22055aea 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SessionListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import java.util.EventObject;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java
index c788f5d0c5..ff954d293c 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SourceNameReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java b/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java
index c6b9f4e78d..2ba571eddf 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecErrorEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class SpecErrorEvent extends SpecEvent {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java b/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java
index 625a263fce..8492f4de23 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import java.util.EventObject;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java b/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java
index 9771e9f641..a5d6bc4bb7 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/SpecListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import java.util.EventListener;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java
index c6ec121d80..736bf2e633 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadGroupIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java
index b9516c4313..9f36408c64 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadInfo.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java
index 6fafd71cd8..ac61bbdd0c 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/ThreadIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java b/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java
index d3e0173dc9..3ccaad6514 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/Utils.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi; //### does it belong here?
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java b/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java
index d0c482c50e..4996184cae 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMLaunchFailureException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class VMLaunchFailureException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java b/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java
index ef12d6d244..f14a5f487d 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/VMNotInterruptedException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public class VMNotInterruptedException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java
index 469b4230a9..7b77173842 100644
--- a/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/bdi/WatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.bdi;
public abstract class WatchpointSpec extends EventRequestSpec {
diff --git a/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java
index 80cbd9a0da..c239f0f9e3 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/AbstractEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java
index 37b73e5c4a..e8b0f086d9 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/AccessWatchpointEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java
index 69050d3f53..09e83407fa 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ClassPrepareEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java
index c043b23b29..b9e70d6f51 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ClassUnloadEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java
index c94fa284ae..7c48539116 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ExceptionEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java b/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java
index fb3e7a859a..706e206850 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/JDIAdapter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java b/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java
index 16eef9644c..a0637e3975 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/JDIListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import java.util.EventListener;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java
index 303af121e4..6cafff9113 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/LocatableEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java
index b30bea52be..ab52678f12 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/LocationTriggerEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java
index 382a8f31b7..591bcd5dbf 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ModificationWatchpointEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java
index ad432f7784..dd17a05bc6 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadDeathEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java
index 63b1fb4260..c96e298f3a 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/ThreadStartEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java
index 017f11ff5a..ee054110a7 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMDeathEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java
index 4edf4b872c..0ac988c6ca 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMDisconnectEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java
index 896fa78c36..0de4700551 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/VMStartEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java b/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java
index 628f21cb92..e662b1008e 100644
--- a/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java
+++ b/src/share/classes/com/sun/tools/example/debug/event/WatchpointEventSet.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.event;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java b/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java
index 1ec552e317..69f2433e19 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ASCII_UCodeESC_CharStream.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ASCII_UCodeESC_CharStream.java Version 0.7pre6 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java
index c2c79010c6..063c29d221 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParser.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ExpressionParser.java */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java
index 9f1f725ac1..390d238102 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserConstants.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ExpressionParserConstants.java */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java
index 9787d5de55..67209972ea 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ExpressionParserTokenManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ExpressionParserTokenManager.java */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/LValue.java b/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
index 42ef2963e0..57e2950c63 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.expr;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java b/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java
index 8ee53728f0..1f5c30b269 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/ParseException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 0.7pre6 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/Token.java b/src/share/classes/com/sun/tools/example/debug/expr/Token.java
index 534120014f..1b6a63ddcf 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/Token.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/Token.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. Token.java Version 0.7pre3 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java b/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java
index 16a40df286..fc84002f1b 100644
--- a/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java
+++ b/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 0.7pre2 */
package com.sun.tools.example.debug.expr;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java b/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java
index e9a4c0b780..4157f9819e 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ApplicationTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java b/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java
index bdddc24c65..f5561d11e9 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
public class ClassManager {
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java b/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java
index 945243458b..bc4a766d0e 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ClassTreeTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java b/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java
index 97ab320bf8..af1b9eb040 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandInterpreter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java b/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java
index 42157e4423..1e0f78bde5 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CommandTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java b/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java
index 4ac03a0b16..b4b63f0b45 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
public interface ContextListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java b/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java
index 2ce04907ab..01f96d4534 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ContextManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java b/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java
index 00c827fd3c..90f2967187 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/CurrentFrameChangedEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/Environment.java b/src/share/classes/com/sun/tools/example/debug/gui/Environment.java
index f9884c7d53..6dc57a9349 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/Environment.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/Environment.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/GUI.java b/src/share/classes/com/sun/tools/example/debug/gui/GUI.java
index 1fa88bb28a..b9ae173b36 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/GUI.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/GUI.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/Icons.java b/src/share/classes/com/sun/tools/example/debug/gui/Icons.java
index bdbb700918..87173d22b9 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/Icons.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/Icons.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.Icon;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java b/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java
index 3a6f107bbb..6d6bf77820 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBFileFilter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.File;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java b/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java
index c224b57c4f..22329cf944 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBMenuBar.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java b/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java
index 02982b9f70..8031fab34c 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/JDBToolBar.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java b/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java
index cb1d77b22f..febce66232 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/LaunchTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.List;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java b/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java
index c46219f472..9203206448 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorListModel.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java b/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java
index cf7c10c51c..ebdca5417e 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/MonitorTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java b/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java
index 413878f692..321e162e1f 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/OutputSink.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java b/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java
index 3090569666..9e6da5899a 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SearchPath.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java b/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java
index 47df28d116..0de002a600 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SingleLeafTreeSelectionModel.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.tree.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java
index 94c1dbcaa1..d98251a6ba 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
public interface SourceListener {
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java
index eda83460e8..7465bfb8cb 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceManager.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java
index b65be0b5a2..95102185a7 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceModel.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java
index cecbeaf247..a358c71efe 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java b/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java
index 5f572c7089..e21b027efb 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourceTreeTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java b/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java
index 975571b0da..88a26f9bdd 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/SourcepathChangedEvent.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.EventObject;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java b/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java
index 1e3b68eabc..405c7ec556 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/StackTraceTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import javax.swing.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java b/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java
index 02cf374f02..05e183656c 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/ThreadTreeTool.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java b/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java
index c99a4cd9e2..254e9fa976 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScript.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.awt.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java
index bb3cda6921..e284e77ca0 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptOutputListener.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import com.sun.tools.example.debug.bdi.OutputListener;
diff --git a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java
index 64b5ec2b44..462d4a5320 100644
--- a/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java
+++ b/src/share/classes/com/sun/tools/example/debug/gui/TypeScriptWriter.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.gui;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java
index 1b83363d17..0f72fb4376 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/AccessWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java b/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java
index eb210dd458..35329bcc4a 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/AmbiguousMethodException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
public class AmbiguousMethodException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java
index ed6c2a10fc..87a9a30e7d 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/BreakpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/Commands.java b/src/share/classes/com/sun/tools/example/debug/tty/Commands.java
index 14a88267fe..d6fa909492 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/Commands.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/Commands.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/Env.java b/src/share/classes/com/sun/tools/example/debug/tty/Env.java
index e39732692c..060f8a3a00 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/Env.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/Env.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java b/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java
index 31e5035fe8..55bf2bf668 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventHandler.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java b/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java
index f03e97d501..97dabf90c9 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventNotifier.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.event.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java
index 5c0177b454..ba668d2ec8 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java
index 58dc664f0e..8ad6528da1 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/EventRequestSpecList.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.request.EventRequest;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java
index f1a3c27272..8c1e652b4b 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ExceptionSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ReferenceType;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java b/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java
index 442b798aaa..8e188aabb7 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/LineNotFoundException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
public class LineNotFoundException extends Exception
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java b/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java
index 3f2bf46c62..3e6492708d 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/MalformedMemberNameException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
class MalformedMemberNameException extends Exception {
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java b/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java
index 54e3b3726b..b86d89f2bd 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java
@@ -22,6 +22,15 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.tools.example.debug.tty;
import java.util.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java
index ee3a63e969..846f74b21d 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ModificationWatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java
index cc4473cefd..e71922207a 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/PatternReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java
index 0e76be0cb4..12f1fc6dcf 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ReferenceTypeSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java b/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java
index 941f6c2472..e7f67f06a8 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/SourceMapper.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.Location;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTY.java b/src/share/classes/com/sun/tools/example/debug/tty/TTY.java
index 6514592d67..f86f1774f4 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTY.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTY.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java
index f6ba9d74ca..2c844c2d9a 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java
index 2dcace1c48..1a82e3b729 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_ja.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java
index dc84bdf4f9..1bad495b9c 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/TTYResources_zh_CN.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
/**
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java b/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java
index dd3ad08106..c361a833c1 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadGroupIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java b/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java
index 8ac294fbca..b1654ac851 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadInfo.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ThreadReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java b/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java
index 6acb2ea9d0..31b996b744 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/ThreadIterator.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.ThreadGroupReference;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java b/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java
index 0b77f9824a..73a075b172 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/VMConnection.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java b/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java
index 780301ca60..bde3c12207 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
public class VMNotConnectedException extends RuntimeException {
diff --git a/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java b/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java
index 6c7da78f48..c9b3c4e096 100644
--- a/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java
+++ b/src/share/classes/com/sun/tools/example/debug/tty/WatchpointSpec.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.debug.tty;
abstract class WatchpointSpec extends EventRequestSpec {
diff --git a/src/share/classes/com/sun/tools/example/trace/EventThread.java b/src/share/classes/com/sun/tools/example/trace/EventThread.java
index 229a416898..22a3fdc31a 100644
--- a/src/share/classes/com/sun/tools/example/trace/EventThread.java
+++ b/src/share/classes/com/sun/tools/example/trace/EventThread.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.trace;
import com.sun.jdi.*;
diff --git a/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java b/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java
index b6e6e59c91..be5b028186 100644
--- a/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java
+++ b/src/share/classes/com/sun/tools/example/trace/StreamRedirectThread.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.trace;
import java.io.*;
diff --git a/src/share/classes/com/sun/tools/example/trace/Trace.java b/src/share/classes/com/sun/tools/example/trace/Trace.java
index 2e1b961dde..04fc09615b 100644
--- a/src/share/classes/com/sun/tools/example/trace/Trace.java
+++ b/src/share/classes/com/sun/tools/example/trace/Trace.java
@@ -23,6 +23,15 @@
* questions.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.tools.example.trace;
import com.sun.jdi.VirtualMachine;
diff --git a/src/share/demo/README b/src/share/demo/README
new file mode 100644
index 0000000000..ae56b64d72
--- /dev/null
+++ b/src/share/demo/README
@@ -0,0 +1,6 @@
+The source code provided with samples and demos for the JDK is meant
+to illustrate the usage of a given feature or technique and has been
+deliberately simplified. Additional steps required for a
+production-quality application, such as security checks, input
+validation, and proper error handling, might not be present in the
+sample code.
diff --git a/src/share/demo/applets/ArcTest/ArcTest.java b/src/share/demo/applets/ArcTest/ArcTest.java
index d58ef44b34..9e9e02c574 100644
--- a/src/share/demo/applets/ArcTest/ArcTest.java
+++ b/src/share/demo/applets/ArcTest/ArcTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.*;
import java.awt.event.*;
diff --git a/src/share/demo/applets/BarChart/BarChart.java b/src/share/demo/applets/BarChart/BarChart.java
index 81cab8fcf3..7bac8af882 100644
--- a/src/share/demo/applets/BarChart/BarChart.java
+++ b/src/share/demo/applets/BarChart/BarChart.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.*;
diff --git a/src/share/demo/applets/Blink/Blink.java b/src/share/demo/applets/Blink/Blink.java
index ab6f9795cc..de3f69f0ab 100644
--- a/src/share/demo/applets/Blink/Blink.java
+++ b/src/share/demo/applets/Blink/Blink.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* I love blinking things.
diff --git a/src/share/demo/applets/CardTest/CardTest.java b/src/share/demo/applets/CardTest/CardTest.java
index 38110efaf5..b1395a4a41 100644
--- a/src/share/demo/applets/CardTest/CardTest.java
+++ b/src/share/demo/applets/CardTest/CardTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.BorderLayout;
diff --git a/src/share/demo/applets/Clock/Clock.java b/src/share/demo/applets/Clock/Clock.java
index ea698ff503..6a41b45984 100644
--- a/src/share/demo/applets/Clock/Clock.java
+++ b/src/share/demo/applets/Clock/Clock.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.Color;
diff --git a/src/share/demo/applets/DitherTest/DitherTest.java b/src/share/demo/applets/DitherTest/DitherTest.java
index 0416573570..4875042a43 100644
--- a/src/share/demo/applets/DitherTest/DitherTest.java
+++ b/src/share/demo/applets/DitherTest/DitherTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.AWTEvent;
diff --git a/src/share/demo/applets/DrawTest/DrawTest.java b/src/share/demo/applets/DrawTest/DrawTest.java
index 50af991079..b2edecdc4b 100644
--- a/src/share/demo/applets/DrawTest/DrawTest.java
+++ b/src/share/demo/applets/DrawTest/DrawTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.BorderLayout;
diff --git a/src/share/demo/applets/Fractal/CLSFractal.java b/src/share/demo/applets/Fractal/CLSFractal.java
index be391e6176..9f7812cff9 100644
--- a/src/share/demo/applets/Fractal/CLSFractal.java
+++ b/src/share/demo/applets/Fractal/CLSFractal.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Graphics;
import java.util.Stack;
diff --git a/src/share/demo/applets/GraphicsTest/AppletFrame.java b/src/share/demo/applets/GraphicsTest/AppletFrame.java
index bf61a181a7..53b7628913 100644
--- a/src/share/demo/applets/GraphicsTest/AppletFrame.java
+++ b/src/share/demo/applets/GraphicsTest/AppletFrame.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Frame;
import java.awt.Event;
diff --git a/src/share/demo/applets/GraphicsTest/GraphicsTest.java b/src/share/demo/applets/GraphicsTest/GraphicsTest.java
index 821b119e50..573c5878fa 100644
--- a/src/share/demo/applets/GraphicsTest/GraphicsTest.java
+++ b/src/share/demo/applets/GraphicsTest/GraphicsTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.*;
import java.util.*;
diff --git a/src/share/demo/applets/MoleculeViewer/Matrix3D.java b/src/share/demo/applets/MoleculeViewer/Matrix3D.java
index 0dda042c3c..e7afced493 100644
--- a/src/share/demo/applets/MoleculeViewer/Matrix3D.java
+++ b/src/share/demo/applets/MoleculeViewer/Matrix3D.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/** A fairly conventional 3D matrix object that can transform sets of
3D points and perform a variety of manipulations on the transform */
diff --git a/src/share/demo/applets/MoleculeViewer/XYZApp.java b/src/share/demo/applets/MoleculeViewer/XYZApp.java
index 78717bef21..5ee3afe38a 100644
--- a/src/share/demo/applets/MoleculeViewer/XYZApp.java
+++ b/src/share/demo/applets/MoleculeViewer/XYZApp.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.Image;
diff --git a/src/share/demo/applets/NervousText/NervousText.java b/src/share/demo/applets/NervousText/NervousText.java
index c3d8d0889e..12dd678d00 100644
--- a/src/share/demo/applets/NervousText/NervousText.java
+++ b/src/share/demo/applets/NervousText/NervousText.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Graphics;
import java.awt.Font;
diff --git a/src/share/demo/applets/SimpleGraph/GraphApplet.java b/src/share/demo/applets/SimpleGraph/GraphApplet.java
index b1d166a050..dabbc209c4 100644
--- a/src/share/demo/applets/SimpleGraph/GraphApplet.java
+++ b/src/share/demo/applets/SimpleGraph/GraphApplet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Graphics;
diff --git a/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java b/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java
index 6a54d649d1..c2478f899e 100644
--- a/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/BidirBubbleSortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A bi-directional bubble sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java b/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java
index 62be88cc58..946c864535 100644
--- a/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/BubbleSortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A bubble sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/QSortAlgorithm.java b/src/share/demo/applets/SortDemo/QSortAlgorithm.java
index 7fa48903e5..045f222969 100644
--- a/src/share/demo/applets/SortDemo/QSortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/QSortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A quick sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/SortAlgorithm.java b/src/share/demo/applets/SortDemo/SortAlgorithm.java
index 8917cf9418..c1a80aabc0 100644
--- a/src/share/demo/applets/SortDemo/SortAlgorithm.java
+++ b/src/share/demo/applets/SortDemo/SortAlgorithm.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A generic sort demonstration algorithm
diff --git a/src/share/demo/applets/SortDemo/SortItem.java b/src/share/demo/applets/SortDemo/SortItem.java
index 9a155e37bd..0ee60c9122 100644
--- a/src/share/demo/applets/SortDemo/SortItem.java
+++ b/src/share/demo/applets/SortDemo/SortItem.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Dimension;
diff --git a/src/share/demo/applets/SpreadSheet/SpreadSheet.java b/src/share/demo/applets/SpreadSheet/SpreadSheet.java
index d221e342de..9aa32866cd 100644
--- a/src/share/demo/applets/SpreadSheet/SpreadSheet.java
+++ b/src/share/demo/applets/SpreadSheet/SpreadSheet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.*;
diff --git a/src/share/demo/applets/WireFrame/Matrix3D.java b/src/share/demo/applets/WireFrame/Matrix3D.java
index 0dda042c3c..e7afced493 100644
--- a/src/share/demo/applets/WireFrame/Matrix3D.java
+++ b/src/share/demo/applets/WireFrame/Matrix3D.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/** A fairly conventional 3D matrix object that can transform sets of
3D points and perform a variety of manipulations on the transform */
diff --git a/src/share/demo/applets/WireFrame/ThreeD.java b/src/share/demo/applets/WireFrame/ThreeD.java
index 7f228331f7..935ca0a99c 100644
--- a/src/share/demo/applets/WireFrame/ThreeD.java
+++ b/src/share/demo/applets/WireFrame/ThreeD.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.applet.Applet;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java
index 9cd94a5ca0..a0a70e10ac 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Destinations.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.awt.Image;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java
index 713a7164bb..007df98746 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Group.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.io.PrintWriter;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java b/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java
index c4d50554cd..15eb0c5f82 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/J2DBench.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.io.PrintWriter;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java
index 3f07b2d8e9..32c4ad929f 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Modifier.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
public interface Modifier {
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java
index d8430e0662..a72575785e 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Node.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.io.PrintWriter;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java
index 1266eda9a6..88656a14b1 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Option.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.awt.BorderLayout;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java
index a89342fc69..2f40cd2d60 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Result.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.util.Vector;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java b/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java
index 862498fa17..7b17770420 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ResultSet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.util.Hashtable;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java b/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java
index ffd2ca9767..d727aaa4b5 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/Test.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
public abstract class Test extends Option.Enable {
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java b/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java
index 0dccbed7c1..c0211a877b 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/TestEnvironment.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench;
import java.awt.Canvas;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java
index 7ac7ee0144..fa0838c2e2 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/HTMLSeriesReporter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* HTMLSeriesReporter.java
*
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java
index 85c8782512..e0399f0dca 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/IIOComparator.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.report;
import java.io.*;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java
index 5f5b9457c9..a30e1aaca4 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.report;
import java.util.Vector;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java b/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java
index b10017c3ce..f72f902bcf 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/report/XMLHTMLReporter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* XMLHTMLReporter.java
*
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java
index 3b04ad1ab3..92cfe7c34a 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/GraphicsTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java
index 813995e3fc..52378b2867 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ImageTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import j2dbench.Destinations;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java
index 1d25d0ffbe..84bddeaf9e 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/MiscTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import java.awt.Dimension;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java
index 8184c1a4bd..99f611341b 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/PixelTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import j2dbench.Destinations;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java
index 769b372f0d..addba0162b 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/RenderTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java
index 5b23e1a63a..d535fe631c 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/IIOTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.awt.AlphaComposite;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java
index c530253a4c..b0c9a94677 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputImageTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.awt.Component;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java
index d76d0fd420..ec544854b0 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputStreamTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.File;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java
index 57a6a06471..d643de4122 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.BufferedInputStream;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java
index 583986e40f..0eea6e20e8 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputImageTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.awt.Graphics;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java
index 36b48b6c9d..bf1da9ad31 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputStreamTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.File;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java
index 86f1937fb7..a1662c3389 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.tests.iio;
import java.io.BufferedOutputStream;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java
index e91c6075d0..cd92674852 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextConstructionTests.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
* patents. This notice and attribution to IBM may not be removed.
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java
index 51fb97561c..1fb4863d50 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
* patents. This notice and attribution to IBM may not be removed.
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java
index f6cad6441d..3f5c385bbd 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextRenderTests.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
* patents. This notice and attribution to IBM may not be removed.
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java
index 1569f9dfc6..deb78a4e26 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* (C) Copyright IBM Corp. 2003, All Rights Reserved.
* This technology is protected by multiple US and International
* patents. This notice and attribution to IBM may not be removed.
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java
index 06be9e6ae1..40ed4e63f3 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/CompactLayout.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.ui;
import java.awt.Dimension;
diff --git a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java
index acebd6cbc2..0663a59190 100644
--- a/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java
+++ b/src/share/demo/java2d/J2DBench/src/j2dbench/ui/EnableButton.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package j2dbench.ui;
import j2dbench.Group;
diff --git a/src/share/demo/jfc/CodePointIM/CodePointIM.java b/src/share/demo/jfc/CodePointIM/CodePointIM.java
index 6d02ecdc9f..6345e611c7 100644
--- a/src/share/demo/jfc/CodePointIM/CodePointIM.java
+++ b/src/share/demo/jfc/CodePointIM/CodePointIM.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.Locale;
import java.util.MissingResourceException;
diff --git a/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java b/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java
index 67ff106c68..add460a899 100644
--- a/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java
+++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethod.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.inputmethods.internal.codepointim;
diff --git a/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java b/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java
index 1ee62162b1..ee8ccb5c0d 100644
--- a/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java
+++ b/src/share/demo/jfc/CodePointIM/CodePointInputMethodDescriptor.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.inputmethods.internal.codepointim;
diff --git a/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java b/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java
index 3a0897b1c4..f557bdeba0 100644
--- a/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java
+++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileSystemView.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.File;
import java.io.IOException;
diff --git a/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java b/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java
index cec4e721c1..52c486d7f3 100644
--- a/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java
+++ b/src/share/demo/jfc/FileChooserDemo/ExampleFileView.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import javax.swing.filechooser.*;
diff --git a/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java b/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java
index 67e1daee1e..bfb74b4330 100644
--- a/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java
+++ b/src/share/demo/jfc/FileChooserDemo/FileChooserDemo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
diff --git a/src/share/demo/jfc/Font2DTest/Font2DTest.java b/src/share/demo/jfc/Font2DTest/Font2DTest.java
index 5625d96605..1487c428ae 100644
--- a/src/share/demo/jfc/Font2DTest/Font2DTest.java
+++ b/src/share/demo/jfc/Font2DTest/Font2DTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Component;
diff --git a/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java b/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java
index 4ee1168db7..7e663c2bb7 100644
--- a/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java
+++ b/src/share/demo/jfc/Font2DTest/Font2DTestApplet.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import java.awt.AWTPermission;
diff --git a/src/share/demo/jfc/Font2DTest/FontPanel.java b/src/share/demo/jfc/Font2DTest/FontPanel.java
index 5506051a18..c939f0b81a 100644
--- a/src/share/demo/jfc/Font2DTest/FontPanel.java
+++ b/src/share/demo/jfc/Font2DTest/FontPanel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Color;
diff --git a/src/share/demo/jfc/Font2DTest/RangeMenu.java b/src/share/demo/jfc/Font2DTest/RangeMenu.java
index 20a3113df4..54b6ad8f79 100644
--- a/src/share/demo/jfc/Font2DTest/RangeMenu.java
+++ b/src/share/demo/jfc/Font2DTest/RangeMenu.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import java.awt.BorderLayout;
diff --git a/src/share/demo/jfc/Metalworks/AquaMetalTheme.java b/src/share/demo/jfc/Metalworks/AquaMetalTheme.java
index 363a0cfb9d..3510f7afc4 100644
--- a/src/share/demo/jfc/Metalworks/AquaMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/AquaMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
diff --git a/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java b/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java
index 3402320a09..d965d63f97 100644
--- a/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/BigContrastMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.*;
import javax.swing.plaf.metal.*;
diff --git a/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java b/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java
index 62d7f39e65..4d19ed1902 100644
--- a/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.UIDefaults;
import javax.swing.border.Border;
diff --git a/src/share/demo/jfc/Metalworks/DemoMetalTheme.java b/src/share/demo/jfc/Metalworks/DemoMetalTheme.java
index 3724630ff3..865932c866 100644
--- a/src/share/demo/jfc/Metalworks/DemoMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/DemoMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Font;
import javax.swing.UIDefaults;
diff --git a/src/share/demo/jfc/Metalworks/GreenMetalTheme.java b/src/share/demo/jfc/Metalworks/GreenMetalTheme.java
index ceb299de9e..45c9ab4825 100644
--- a/src/share/demo/jfc/Metalworks/GreenMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/GreenMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
diff --git a/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java b/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java
index 90e1259222..3074fd80fb 100644
--- a/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/KhakiMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
diff --git a/src/share/demo/jfc/Metalworks/MetalThemeMenu.java b/src/share/demo/jfc/Metalworks/MetalThemeMenu.java
index a837228743..e7947d76ec 100644
--- a/src/share/demo/jfc/Metalworks/MetalThemeMenu.java
+++ b/src/share/demo/jfc/Metalworks/MetalThemeMenu.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
diff --git a/src/share/demo/jfc/Metalworks/Metalworks.java b/src/share/demo/jfc/Metalworks/Metalworks.java
index 22322c26d9..3db6eaad45 100644
--- a/src/share/demo/jfc/Metalworks/Metalworks.java
+++ b/src/share/demo/jfc/Metalworks/Metalworks.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Toolkit;
import javax.swing.JDialog;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java b/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java
index 5802e77c69..813e3b7c47 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksDocumentFrame.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Component;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksFrame.java b/src/share/demo/jfc/Metalworks/MetalworksFrame.java
index 77fa685a38..4333d7ba4d 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksFrame.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksFrame.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Dimension;
import java.awt.Toolkit;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksHelp.java b/src/share/demo/jfc/Metalworks/MetalworksHelp.java
index f9dd1429f0..d46bc7b994 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksHelp.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksHelp.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import java.awt.*;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksInBox.java b/src/share/demo/jfc/Metalworks/MetalworksInBox.java
index 48e71ca523..e165723b88 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksInBox.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksInBox.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.JInternalFrame;
import javax.swing.JScrollPane;
diff --git a/src/share/demo/jfc/Metalworks/MetalworksPrefs.java b/src/share/demo/jfc/Metalworks/MetalworksPrefs.java
index fa88a88f57..36626ee19c 100644
--- a/src/share/demo/jfc/Metalworks/MetalworksPrefs.java
+++ b/src/share/demo/jfc/Metalworks/MetalworksPrefs.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Component;
diff --git a/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java b/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java
index ec729f16ab..af1abf2abd 100644
--- a/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java
+++ b/src/share/demo/jfc/Metalworks/PropertiesMetalTheme.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.IOException;
import java.io.InputStream;
diff --git a/src/share/demo/jfc/Metalworks/UISwitchListener.java b/src/share/demo/jfc/Metalworks/UISwitchListener.java
index d75fb3f4b6..6dc77ce29d 100644
--- a/src/share/demo/jfc/Metalworks/UISwitchListener.java
+++ b/src/share/demo/jfc/Metalworks/UISwitchListener.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
diff --git a/src/share/demo/jfc/Notepad/ElementTreePanel.java b/src/share/demo/jfc/Notepad/ElementTreePanel.java
index 0a208c9269..e1bac63b28 100644
--- a/src/share/demo/jfc/Notepad/ElementTreePanel.java
+++ b/src/share/demo/jfc/Notepad/ElementTreePanel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Dimension;
diff --git a/src/share/demo/jfc/Notepad/Notepad.java b/src/share/demo/jfc/Notepad/Notepad.java
index a6d7e03a94..c80966920f 100644
--- a/src/share/demo/jfc/Notepad/Notepad.java
+++ b/src/share/demo/jfc/Notepad/Notepad.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.BorderLayout;
import java.awt.Color;
diff --git a/src/share/demo/jfc/SampleTree/DynamicTreeNode.java b/src/share/demo/jfc/SampleTree/DynamicTreeNode.java
index fa6db4dfd1..60a11fe735 100644
--- a/src/share/demo/jfc/SampleTree/DynamicTreeNode.java
+++ b/src/share/demo/jfc/SampleTree/DynamicTreeNode.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Font;
diff --git a/src/share/demo/jfc/SampleTree/SampleData.java b/src/share/demo/jfc/SampleTree/SampleData.java
index 48a92dd8d0..66f7c16809 100644
--- a/src/share/demo/jfc/SampleTree/SampleData.java
+++ b/src/share/demo/jfc/SampleTree/SampleData.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.Color;
import java.awt.Font;
diff --git a/src/share/demo/jfc/SampleTree/SampleTree.java b/src/share/demo/jfc/SampleTree/SampleTree.java
index 831d70cbdf..efde28fd6f 100644
--- a/src/share/demo/jfc/SampleTree/SampleTree.java
+++ b/src/share/demo/jfc/SampleTree/SampleTree.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
diff --git a/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java b/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java
index d45bf4e27b..9e9a04b522 100644
--- a/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java
+++ b/src/share/demo/jfc/SampleTree/SampleTreeCellRenderer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.Icon;
import javax.swing.ImageIcon;
diff --git a/src/share/demo/jfc/SampleTree/SampleTreeModel.java b/src/share/demo/jfc/SampleTree/SampleTreeModel.java
index 51ee2daec9..1d7bfdc106 100644
--- a/src/share/demo/jfc/SampleTree/SampleTreeModel.java
+++ b/src/share/demo/jfc/SampleTree/SampleTreeModel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeNode;
diff --git a/src/share/demo/jfc/SwingApplet/SwingApplet.java b/src/share/demo/jfc/SwingApplet/SwingApplet.java
index 281ca70984..b239893ffd 100644
--- a/src/share/demo/jfc/SwingApplet/SwingApplet.java
+++ b/src/share/demo/jfc/SwingApplet/SwingApplet.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.FlowLayout;
import java.lang.reflect.InvocationTargetException;
diff --git a/src/share/demo/jfc/TableExample/JDBCAdapter.java b/src/share/demo/jfc/TableExample/JDBCAdapter.java
index 4dbfe42011..02d0d385d3 100644
--- a/src/share/demo/jfc/TableExample/JDBCAdapter.java
+++ b/src/share/demo/jfc/TableExample/JDBCAdapter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.sql.Connection;
import java.sql.DriverManager;
diff --git a/src/share/demo/jfc/TableExample/OldJTable.java b/src/share/demo/jfc/TableExample/OldJTable.java
index 28a3f21281..bc90794355 100644
--- a/src/share/demo/jfc/TableExample/OldJTable.java
+++ b/src/share/demo/jfc/TableExample/OldJTable.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.EventObject;
import java.util.List;
diff --git a/src/share/demo/jfc/TableExample/TableExample.java b/src/share/demo/jfc/TableExample/TableExample.java
index 03d798f3f1..f046e2f3fc 100644
--- a/src/share/demo/jfc/TableExample/TableExample.java
+++ b/src/share/demo/jfc/TableExample/TableExample.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A a UI around the JDBCAdaptor, allowing database data to be interactively
diff --git a/src/share/demo/jfc/TableExample/TableExample2.java b/src/share/demo/jfc/TableExample/TableExample2.java
index 9423f17556..e7fc9be3d4 100644
--- a/src/share/demo/jfc/TableExample/TableExample2.java
+++ b/src/share/demo/jfc/TableExample/TableExample2.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
diff --git a/src/share/demo/jfc/TableExample/TableExample3.java b/src/share/demo/jfc/TableExample/TableExample3.java
index 51646395b0..ba1010119c 100644
--- a/src/share/demo/jfc/TableExample/TableExample3.java
+++ b/src/share/demo/jfc/TableExample/TableExample3.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import javax.swing.table.*;
diff --git a/src/share/demo/jfc/TableExample/TableExample4.java b/src/share/demo/jfc/TableExample/TableExample4.java
index e75e2db383..9ea30b80c7 100644
--- a/src/share/demo/jfc/TableExample/TableExample4.java
+++ b/src/share/demo/jfc/TableExample/TableExample4.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.*;
import javax.swing.table.*;
diff --git a/src/share/demo/jfc/TableExample/TableMap.java b/src/share/demo/jfc/TableExample/TableMap.java
index 2511397fec..b0c24f0672 100644
--- a/src/share/demo/jfc/TableExample/TableMap.java
+++ b/src/share/demo/jfc/TableExample/TableMap.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* In a chain of data manipulators some behaviour is common. TableMap
diff --git a/src/share/demo/jfc/TableExample/TableSorter.java b/src/share/demo/jfc/TableExample/TableSorter.java
index 625b6f2600..0ec49b714e 100644
--- a/src/share/demo/jfc/TableExample/TableSorter.java
+++ b/src/share/demo/jfc/TableExample/TableSorter.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import javax.swing.table.TableModel;
import javax.swing.event.TableModelEvent;
diff --git a/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java b/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java
index 707151f971..fcba7acc85 100644
--- a/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java
+++ b/src/share/demo/jfc/TransparentRuler/transparentruler/Ruler.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package transparentruler;
diff --git a/src/share/demo/jvmti/agent_util/agent_util.c b/src/share/demo/jvmti/agent_util/agent_util.c
index 74796a9155..1855885594 100644
--- a/src/share/demo/jvmti/agent_util/agent_util.c
+++ b/src/share/demo/jvmti/agent_util/agent_util.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <agent_util.h>
/* ------------------------------------------------------------------- */
diff --git a/src/share/demo/jvmti/agent_util/agent_util.h b/src/share/demo/jvmti/agent_util/agent_util.h
index 14ec703a15..1518e932c8 100644
--- a/src/share/demo/jvmti/agent_util/agent_util.h
+++ b/src/share/demo/jvmti/agent_util/agent_util.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef AGENT_UTIL_H
#define AGENT_UTIL_H
diff --git a/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c b/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c
index 5117c93702..cfc9ab2b5f 100644
--- a/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c
+++ b/src/share/demo/jvmti/compiledMethodLoad/compiledMethodLoad.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/share/demo/jvmti/gctest/gctest.c b/src/share/demo/jvmti/gctest/gctest.c
index f982b3f30d..7d430f4e87 100644
--- a/src/share/demo/jvmti/gctest/gctest.c
+++ b/src/share/demo/jvmti/gctest/gctest.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Example of using JVMTI_EVENT_GARBAGE_COLLECTION_START and
* JVMTI_EVENT_GARBAGE_COLLECTION_FINISH events.
*/
diff --git a/src/share/demo/jvmti/heapTracker/HeapTracker.java b/src/share/demo/jvmti/heapTracker/HeapTracker.java
index faec6ba60d..041c88bf87 100644
--- a/src/share/demo/jvmti/heapTracker/HeapTracker.java
+++ b/src/share/demo/jvmti/heapTracker/HeapTracker.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Java class to hold static methods which will be called in byte code
* injections of all class files.
diff --git a/src/share/demo/jvmti/heapTracker/heapTracker.c b/src/share/demo/jvmti/heapTracker/heapTracker.c
index 439de6eee8..c1019ade39 100644
--- a/src/share/demo/jvmti/heapTracker/heapTracker.c
+++ b/src/share/demo/jvmti/heapTracker/heapTracker.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "stdlib.h"
#include "heapTracker.h"
diff --git a/src/share/demo/jvmti/heapTracker/heapTracker.h b/src/share/demo/jvmti/heapTracker/heapTracker.h
index 0cc49c0233..b0df4bbf5f 100644
--- a/src/share/demo/jvmti/heapTracker/heapTracker.h
+++ b/src/share/demo/jvmti/heapTracker/heapTracker.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary heapTracker #include file, should be included by most if not
* all heapTracker source files. Gives access to the global data structure
* and all global macros.
diff --git a/src/share/demo/jvmti/heapViewer/heapViewer.c b/src/share/demo/jvmti/heapViewer/heapViewer.c
index 1d4742dd2e..a6da56d67e 100644
--- a/src/share/demo/jvmti/heapViewer/heapViewer.c
+++ b/src/share/demo/jvmti/heapViewer/heapViewer.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
diff --git a/src/share/demo/jvmti/hprof/debug_malloc.c b/src/share/demo/jvmti/hprof/debug_malloc.c
index ea7fecece6..a0155c0588 100644
--- a/src/share/demo/jvmti/hprof/debug_malloc.c
+++ b/src/share/demo/jvmti/hprof/debug_malloc.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* **************************************************************************
*
* Set of malloc/realloc/calloc/strdup/free replacement macros that
diff --git a/src/share/demo/jvmti/hprof/debug_malloc.h b/src/share/demo/jvmti/hprof/debug_malloc.h
index 1325f94e6a..6b6b4c6b73 100644
--- a/src/share/demo/jvmti/hprof/debug_malloc.h
+++ b/src/share/demo/jvmti/hprof/debug_malloc.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* ***********************************************************************
*
* The source file debug_malloc.c should be included with your sources.
diff --git a/src/share/demo/jvmti/hprof/hprof.h b/src/share/demo/jvmti/hprof/hprof.h
index a577f883a7..44afbf4c5d 100644
--- a/src/share/demo/jvmti/hprof/hprof.h
+++ b/src/share/demo/jvmti/hprof/hprof.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary hprof #include file, should be included by most if not
* all hprof source files. Gives access to the global data structure
* and all global macros, and everything declared in the #include
diff --git a/src/share/demo/jvmti/hprof/hprof_blocks.c b/src/share/demo/jvmti/hprof/hprof_blocks.c
index 140566584f..13534a99ab 100644
--- a/src/share/demo/jvmti/hprof/hprof_blocks.c
+++ b/src/share/demo/jvmti/hprof/hprof_blocks.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Allocations from large blocks, no individual free's */
#include "hprof.h"
diff --git a/src/share/demo/jvmti/hprof/hprof_blocks.h b/src/share/demo/jvmti/hprof/hprof_blocks.h
index cf3157a49a..e35433e73f 100644
--- a/src/share/demo/jvmti/hprof/hprof_blocks.h
+++ b/src/share/demo/jvmti/hprof/hprof_blocks.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_BLOCKS_H
#define HPROF_BLOCKS_H
diff --git a/src/share/demo/jvmti/hprof/hprof_check.c b/src/share/demo/jvmti/hprof/hprof_check.c
index b26a413d5b..c91a54ae84 100644
--- a/src/share/demo/jvmti/hprof/hprof_check.c
+++ b/src/share/demo/jvmti/hprof/hprof_check.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Functionality for checking hprof format=b output. */
/* ONLY used with logflags=4. */
diff --git a/src/share/demo/jvmti/hprof/hprof_check.h b/src/share/demo/jvmti/hprof/hprof_check.h
index 2861306454..2840bf114c 100644
--- a/src/share/demo/jvmti/hprof/hprof_check.h
+++ b/src/share/demo/jvmti/hprof/hprof_check.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_CHECK_H
#define HPROF_CHECK_H
diff --git a/src/share/demo/jvmti/hprof/hprof_class.c b/src/share/demo/jvmti/hprof/hprof_class.c
index 8ffc41e640..d89a804dbb 100644
--- a/src/share/demo/jvmti/hprof/hprof_class.c
+++ b/src/share/demo/jvmti/hprof/hprof_class.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Table of class information.
*
* Each element in this table is identified with a ClassIndex.
diff --git a/src/share/demo/jvmti/hprof/hprof_class.h b/src/share/demo/jvmti/hprof/hprof_class.h
index 270bf083da..5bcf1b80f7 100644
--- a/src/share/demo/jvmti/hprof/hprof_class.h
+++ b/src/share/demo/jvmti/hprof/hprof_class.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_CLASS_H
#define HPROF_CLASS_H
diff --git a/src/share/demo/jvmti/hprof/hprof_cpu.c b/src/share/demo/jvmti/hprof/hprof_cpu.c
index 77262898e6..358b478486 100644
--- a/src/share/demo/jvmti/hprof/hprof_cpu.c
+++ b/src/share/demo/jvmti/hprof/hprof_cpu.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "hprof.h"
/* This file contains the cpu loop for the option cpu=samples */
diff --git a/src/share/demo/jvmti/hprof/hprof_cpu.h b/src/share/demo/jvmti/hprof/hprof_cpu.h
index b22744f9a5..6a96239073 100644
--- a/src/share/demo/jvmti/hprof/hprof_cpu.h
+++ b/src/share/demo/jvmti/hprof/hprof_cpu.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_CPU_H
#define HPROF_CPU_H
diff --git a/src/share/demo/jvmti/hprof/hprof_error.c b/src/share/demo/jvmti/hprof/hprof_error.c
index c7ddd62218..8088a49b50 100644
--- a/src/share/demo/jvmti/hprof/hprof_error.c
+++ b/src/share/demo/jvmti/hprof/hprof_error.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "hprof.h"
/* The error handling logic. */
diff --git a/src/share/demo/jvmti/hprof/hprof_error.h b/src/share/demo/jvmti/hprof/hprof_error.h
index 968c31ff44..c0d6aed0fe 100644
--- a/src/share/demo/jvmti/hprof/hprof_error.h
+++ b/src/share/demo/jvmti/hprof/hprof_error.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_ERROR_H
#define HPROF_ERROR_H
diff --git a/src/share/demo/jvmti/hprof/hprof_event.c b/src/share/demo/jvmti/hprof/hprof_event.c
index 734d8afe81..66d89e76ec 100644
--- a/src/share/demo/jvmti/hprof/hprof_event.c
+++ b/src/share/demo/jvmti/hprof/hprof_event.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* This file contains all class, method and allocation event support functions,
* both JVMTI and BCI events.
* (See hprof_monitor.c for the monitor event handlers).
diff --git a/src/share/demo/jvmti/hprof/hprof_event.h b/src/share/demo/jvmti/hprof/hprof_event.h
index 207f875ba3..198824a215 100644
--- a/src/share/demo/jvmti/hprof/hprof_event.h
+++ b/src/share/demo/jvmti/hprof/hprof_event.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_EVENT_H
#define HPROF_EVENT_H
diff --git a/src/share/demo/jvmti/hprof/hprof_frame.c b/src/share/demo/jvmti/hprof/hprof_frame.c
index 23a1606654..284b6a555a 100644
--- a/src/share/demo/jvmti/hprof/hprof_frame.c
+++ b/src/share/demo/jvmti/hprof/hprof_frame.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* This file contains support for handling frames, or (method,location) pairs. */
#include "hprof.h"
diff --git a/src/share/demo/jvmti/hprof/hprof_frame.h b/src/share/demo/jvmti/hprof/hprof_frame.h
index 5f9798c356..8443aee3bb 100644
--- a/src/share/demo/jvmti/hprof/hprof_frame.h
+++ b/src/share/demo/jvmti/hprof/hprof_frame.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_FRAME_H
#define HPROF_FRAME_H
diff --git a/src/share/demo/jvmti/hprof/hprof_init.c b/src/share/demo/jvmti/hprof/hprof_init.c
index 9ac1733874..e3add30a6c 100644
--- a/src/share/demo/jvmti/hprof/hprof_init.c
+++ b/src/share/demo/jvmti/hprof/hprof_init.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Main source file, the basic JVMTI connection/startup code. */
#include "hprof.h"
diff --git a/src/share/demo/jvmti/hprof/hprof_init.h b/src/share/demo/jvmti/hprof/hprof_init.h
index 413e3e02f3..500491754a 100644
--- a/src/share/demo/jvmti/hprof/hprof_init.h
+++ b/src/share/demo/jvmti/hprof/hprof_init.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_INIT_H
#define HPROF_INIT_H
diff --git a/src/share/demo/jvmti/hprof/hprof_io.c b/src/share/demo/jvmti/hprof/hprof_io.c
index 9d9c0ae94b..51c7c25852 100644
--- a/src/share/demo/jvmti/hprof/hprof_io.c
+++ b/src/share/demo/jvmti/hprof/hprof_io.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* All I/O functionality for hprof. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_io.h b/src/share/demo/jvmti/hprof/hprof_io.h
index 29cae3a316..0cb7d85ab6 100644
--- a/src/share/demo/jvmti/hprof/hprof_io.h
+++ b/src/share/demo/jvmti/hprof/hprof_io.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_IO_H
#define HPROF_IO_H
diff --git a/src/share/demo/jvmti/hprof/hprof_ioname.c b/src/share/demo/jvmti/hprof/hprof_ioname.c
index 4935e21290..b14ecb15b8 100644
--- a/src/share/demo/jvmti/hprof/hprof_ioname.c
+++ b/src/share/demo/jvmti/hprof/hprof_ioname.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Used to store strings written out to the binary format (see hprof_io.c) */
diff --git a/src/share/demo/jvmti/hprof/hprof_ioname.h b/src/share/demo/jvmti/hprof/hprof_ioname.h
index c070491443..03ac048338 100644
--- a/src/share/demo/jvmti/hprof/hprof_ioname.h
+++ b/src/share/demo/jvmti/hprof/hprof_ioname.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_IONAME_H
#define HPROF_IONAME_H
diff --git a/src/share/demo/jvmti/hprof/hprof_listener.c b/src/share/demo/jvmti/hprof/hprof_listener.c
index 05d4768a31..f5fb896398 100644
--- a/src/share/demo/jvmti/hprof/hprof_listener.c
+++ b/src/share/demo/jvmti/hprof/hprof_listener.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* The hprof listener loop thread. net=hostname:port option */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_listener.h b/src/share/demo/jvmti/hprof/hprof_listener.h
index d077f4f338..1e82ca537a 100644
--- a/src/share/demo/jvmti/hprof/hprof_listener.h
+++ b/src/share/demo/jvmti/hprof/hprof_listener.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_LISTENER_H
#define HPROF_LISTENER_H
diff --git a/src/share/demo/jvmti/hprof/hprof_loader.c b/src/share/demo/jvmti/hprof/hprof_loader.c
index eaabed68ba..f0c1f1de89 100644
--- a/src/share/demo/jvmti/hprof/hprof_loader.c
+++ b/src/share/demo/jvmti/hprof/hprof_loader.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* The Class Loader table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_loader.h b/src/share/demo/jvmti/hprof/hprof_loader.h
index ec40c327b7..ef15f76037 100644
--- a/src/share/demo/jvmti/hprof/hprof_loader.h
+++ b/src/share/demo/jvmti/hprof/hprof_loader.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_LOADER_H
#define HPROF_LOADER_H
diff --git a/src/share/demo/jvmti/hprof/hprof_md.h b/src/share/demo/jvmti/hprof/hprof_md.h
index 9396381c61..6145a03b5e 100644
--- a/src/share/demo/jvmti/hprof/hprof_md.h
+++ b/src/share/demo/jvmti/hprof/hprof_md.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_MD_H
#define HPROF_MD_H
diff --git a/src/share/demo/jvmti/hprof/hprof_monitor.c b/src/share/demo/jvmti/hprof/hprof_monitor.c
index 81c9dc11b2..65495df599 100644
--- a/src/share/demo/jvmti/hprof/hprof_monitor.c
+++ b/src/share/demo/jvmti/hprof/hprof_monitor.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Monitor contention tracking and monitor wait handling. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_monitor.h b/src/share/demo/jvmti/hprof/hprof_monitor.h
index 752c1c11c9..13561633c6 100644
--- a/src/share/demo/jvmti/hprof/hprof_monitor.h
+++ b/src/share/demo/jvmti/hprof/hprof_monitor.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_MONITOR_H
#define HPROF_MONITOR_H
diff --git a/src/share/demo/jvmti/hprof/hprof_object.c b/src/share/demo/jvmti/hprof/hprof_object.c
index 619cf3fcd2..ce21c23e2c 100644
--- a/src/share/demo/jvmti/hprof/hprof_object.c
+++ b/src/share/demo/jvmti/hprof/hprof_object.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Object table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_object.h b/src/share/demo/jvmti/hprof/hprof_object.h
index efa643ad48..ccbf8e03e2 100644
--- a/src/share/demo/jvmti/hprof/hprof_object.h
+++ b/src/share/demo/jvmti/hprof/hprof_object.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_OBJECT_H
#define HPROF_OBJECT_H
diff --git a/src/share/demo/jvmti/hprof/hprof_reference.c b/src/share/demo/jvmti/hprof/hprof_reference.c
index fafaf822ff..e7a668d7f1 100644
--- a/src/share/demo/jvmti/hprof/hprof_reference.c
+++ b/src/share/demo/jvmti/hprof/hprof_reference.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Object references table (used in hprof_object.c). */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_reference.h b/src/share/demo/jvmti/hprof/hprof_reference.h
index c6b36f042d..2464f58ed2 100644
--- a/src/share/demo/jvmti/hprof/hprof_reference.h
+++ b/src/share/demo/jvmti/hprof/hprof_reference.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_REFERENCE_H
#define HPROF_REFERENCE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_site.c b/src/share/demo/jvmti/hprof/hprof_site.c
index b90cf4f107..f1ae184c6f 100644
--- a/src/share/demo/jvmti/hprof/hprof_site.c
+++ b/src/share/demo/jvmti/hprof/hprof_site.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Allocation site table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_site.h b/src/share/demo/jvmti/hprof/hprof_site.h
index cf6f04c933..b9229815b5 100644
--- a/src/share/demo/jvmti/hprof/hprof_site.h
+++ b/src/share/demo/jvmti/hprof/hprof_site.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_SITE_H
#define HPROF_SITE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_stack.c b/src/share/demo/jvmti/hprof/hprof_stack.c
index f283866878..2f0127c49c 100644
--- a/src/share/demo/jvmti/hprof/hprof_stack.c
+++ b/src/share/demo/jvmti/hprof/hprof_stack.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Simple stack storage mechanism (or simple List). */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_stack.h b/src/share/demo/jvmti/hprof/hprof_stack.h
index 7aaa8ae0f3..32efdceeb1 100644
--- a/src/share/demo/jvmti/hprof/hprof_stack.h
+++ b/src/share/demo/jvmti/hprof/hprof_stack.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_STACK_H
#define HPROF_STACK_H
diff --git a/src/share/demo/jvmti/hprof/hprof_string.c b/src/share/demo/jvmti/hprof/hprof_string.c
index 1937488741..f2f53a4ce8 100644
--- a/src/share/demo/jvmti/hprof/hprof_string.c
+++ b/src/share/demo/jvmti/hprof/hprof_string.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Table of byte arrays (e.g. char* string + NULL byte) */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_string.h b/src/share/demo/jvmti/hprof/hprof_string.h
index ed58c98256..13e4f42c52 100644
--- a/src/share/demo/jvmti/hprof/hprof_string.h
+++ b/src/share/demo/jvmti/hprof/hprof_string.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_STRING_H
#define HPROF_STRING_H
diff --git a/src/share/demo/jvmti/hprof/hprof_table.c b/src/share/demo/jvmti/hprof/hprof_table.c
index d78719c717..19b0c42539 100644
--- a/src/share/demo/jvmti/hprof/hprof_table.c
+++ b/src/share/demo/jvmti/hprof/hprof_table.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Lookup Table of generic elements. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_table.h b/src/share/demo/jvmti/hprof/hprof_table.h
index e2ded55b47..84e3acd093 100644
--- a/src/share/demo/jvmti/hprof/hprof_table.h
+++ b/src/share/demo/jvmti/hprof/hprof_table.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TABLE_H
#define HPROF_TABLE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_tag.c b/src/share/demo/jvmti/hprof/hprof_tag.c
index d2cdcdaa79..363be9a550 100644
--- a/src/share/demo/jvmti/hprof/hprof_tag.c
+++ b/src/share/demo/jvmti/hprof/hprof_tag.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* JVMTI tag definitions. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_tag.h b/src/share/demo/jvmti/hprof/hprof_tag.h
index 54e339a6ae..14ef616899 100644
--- a/src/share/demo/jvmti/hprof/hprof_tag.h
+++ b/src/share/demo/jvmti/hprof/hprof_tag.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TAG_H
#define HPROF_TAG_H
diff --git a/src/share/demo/jvmti/hprof/hprof_tls.c b/src/share/demo/jvmti/hprof/hprof_tls.c
index 9925b649a4..3c62aacf26 100644
--- a/src/share/demo/jvmti/hprof/hprof_tls.c
+++ b/src/share/demo/jvmti/hprof/hprof_tls.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "hprof.h"
/* Thread Local Storage Table and method entry/exit handling. */
diff --git a/src/share/demo/jvmti/hprof/hprof_tls.h b/src/share/demo/jvmti/hprof/hprof_tls.h
index 8bd5ceebdc..695e78a409 100644
--- a/src/share/demo/jvmti/hprof/hprof_tls.h
+++ b/src/share/demo/jvmti/hprof/hprof_tls.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TLS_H
#define HPROF_TLS_H
diff --git a/src/share/demo/jvmti/hprof/hprof_trace.c b/src/share/demo/jvmti/hprof/hprof_trace.c
index bc6e2f02da..e56bfe9d41 100644
--- a/src/share/demo/jvmti/hprof/hprof_trace.c
+++ b/src/share/demo/jvmti/hprof/hprof_trace.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Trace table. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_trace.h b/src/share/demo/jvmti/hprof/hprof_trace.h
index 06b87ae6aa..b24ac1ee4c 100644
--- a/src/share/demo/jvmti/hprof/hprof_trace.h
+++ b/src/share/demo/jvmti/hprof/hprof_trace.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TRACE_H
#define HPROF_TRACE_H
diff --git a/src/share/demo/jvmti/hprof/hprof_tracker.c b/src/share/demo/jvmti/hprof/hprof_tracker.c
index 0d07e55e81..56e1125122 100644
--- a/src/share/demo/jvmti/hprof/hprof_tracker.c
+++ b/src/share/demo/jvmti/hprof/hprof_tracker.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Tracker class support functions. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_tracker.h b/src/share/demo/jvmti/hprof/hprof_tracker.h
index 4c35b209c9..9aec0820a5 100644
--- a/src/share/demo/jvmti/hprof/hprof_tracker.h
+++ b/src/share/demo/jvmti/hprof/hprof_tracker.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_TRACKER_H
#define HPROF_TRACKER_H
diff --git a/src/share/demo/jvmti/hprof/hprof_util.c b/src/share/demo/jvmti/hprof/hprof_util.c
index 2948483b0f..0a191172a9 100644
--- a/src/share/demo/jvmti/hprof/hprof_util.c
+++ b/src/share/demo/jvmti/hprof/hprof_util.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* General utility functions. */
/*
diff --git a/src/share/demo/jvmti/hprof/hprof_util.h b/src/share/demo/jvmti/hprof/hprof_util.h
index aebf2a18e9..c052394f2b 100644
--- a/src/share/demo/jvmti/hprof/hprof_util.h
+++ b/src/share/demo/jvmti/hprof/hprof_util.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef HPROF_UTIL_H
#define HPROF_UTIL_H
diff --git a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c
index 2add266d16..28ef3b60cb 100644
--- a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c
+++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Class reader writer (java_crw_demo) for instrumenting bytecodes */
/*
diff --git a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h
index c8c80edb4a..06b6e01bb3 100644
--- a/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h
+++ b/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef JAVA_CRW_DEMO_H
#define JAVA_CRW_DEMO_H
diff --git a/src/share/demo/jvmti/minst/Minst.java b/src/share/demo/jvmti/minst/Minst.java
index 04504c79f6..c75edfe673 100644
--- a/src/share/demo/jvmti/minst/Minst.java
+++ b/src/share/demo/jvmti/minst/Minst.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Java class to hold static methods which will be called in byte code
* injections of all class files.
diff --git a/src/share/demo/jvmti/minst/minst.c b/src/share/demo/jvmti/minst/minst.c
index ea70fcdd5a..e811c63ac2 100644
--- a/src/share/demo/jvmti/minst/minst.c
+++ b/src/share/demo/jvmti/minst/minst.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "stdlib.h"
#include "minst.h"
diff --git a/src/share/demo/jvmti/minst/minst.h b/src/share/demo/jvmti/minst/minst.h
index e2e3ececc2..8ffc14ce6e 100644
--- a/src/share/demo/jvmti/minst/minst.h
+++ b/src/share/demo/jvmti/minst/minst.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary minst #include file, should be included by most if not
* all minst source files. Gives access to the global data structure
* and all global macros.
diff --git a/src/share/demo/jvmti/mtrace/Mtrace.java b/src/share/demo/jvmti/mtrace/Mtrace.java
index 085d5a6c99..061400a1f8 100644
--- a/src/share/demo/jvmti/mtrace/Mtrace.java
+++ b/src/share/demo/jvmti/mtrace/Mtrace.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Java class to hold static methods which will be called in byte code
* injections of all class files.
diff --git a/src/share/demo/jvmti/mtrace/mtrace.c b/src/share/demo/jvmti/mtrace/mtrace.c
index 86e8e60714..4a43b54f93 100644
--- a/src/share/demo/jvmti/mtrace/mtrace.c
+++ b/src/share/demo/jvmti/mtrace/mtrace.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include "stdlib.h"
#include "mtrace.h"
diff --git a/src/share/demo/jvmti/mtrace/mtrace.h b/src/share/demo/jvmti/mtrace/mtrace.h
index c442c19194..15c0824017 100644
--- a/src/share/demo/jvmti/mtrace/mtrace.h
+++ b/src/share/demo/jvmti/mtrace/mtrace.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Primary mtrace #include file, should be included by most if not
* all mtrace source files. Gives access to the global data structure
* and all global macros.
diff --git a/src/share/demo/jvmti/versionCheck/versionCheck.c b/src/share/demo/jvmti/versionCheck/versionCheck.c
index 5dd6140b75..b49d7b8209 100644
--- a/src/share/demo/jvmti/versionCheck/versionCheck.c
+++ b/src/share/demo/jvmti/versionCheck/versionCheck.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/share/demo/jvmti/waiters/Agent.cpp b/src/share/demo/jvmti/waiters/Agent.cpp
index 551c75d8fe..4fd87d0015 100644
--- a/src/share/demo/jvmti/waiters/Agent.cpp
+++ b/src/share/demo/jvmti/waiters/Agent.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/share/demo/jvmti/waiters/Agent.hpp b/src/share/demo/jvmti/waiters/Agent.hpp
index 79ea61ceed..c508863cf0 100644
--- a/src/share/demo/jvmti/waiters/Agent.hpp
+++ b/src/share/demo/jvmti/waiters/Agent.hpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* C++ Agent class */
class Agent {
diff --git a/src/share/demo/jvmti/waiters/Monitor.cpp b/src/share/demo/jvmti/waiters/Monitor.cpp
index 9e1970837b..a99d5a6fa1 100644
--- a/src/share/demo/jvmti/waiters/Monitor.cpp
+++ b/src/share/demo/jvmti/waiters/Monitor.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/share/demo/jvmti/waiters/Monitor.hpp b/src/share/demo/jvmti/waiters/Monitor.hpp
index 3508ea0b9d..cd5444b247 100644
--- a/src/share/demo/jvmti/waiters/Monitor.hpp
+++ b/src/share/demo/jvmti/waiters/Monitor.hpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* C++ Monitor class */
class Monitor {
diff --git a/src/share/demo/jvmti/waiters/Thread.cpp b/src/share/demo/jvmti/waiters/Thread.cpp
index 7e12d4e88a..ca9056710c 100644
--- a/src/share/demo/jvmti/waiters/Thread.cpp
+++ b/src/share/demo/jvmti/waiters/Thread.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/share/demo/jvmti/waiters/Thread.hpp b/src/share/demo/jvmti/waiters/Thread.hpp
index 19adb98cd2..32697c04cd 100644
--- a/src/share/demo/jvmti/waiters/Thread.hpp
+++ b/src/share/demo/jvmti/waiters/Thread.hpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* C++ Thread class */
class Thread {
diff --git a/src/share/demo/jvmti/waiters/waiters.cpp b/src/share/demo/jvmti/waiters/waiters.cpp
index 1bc53f73fb..c6d34c3daf 100644
--- a/src/share/demo/jvmti/waiters/waiters.cpp
+++ b/src/share/demo/jvmti/waiters/waiters.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* Example of using JVMTI events:
* JVMTI_EVENT_VM_INIT
* JVMTI_EVENT_VM_DEATH
diff --git a/src/share/demo/management/FullThreadDump/Deadlock.java b/src/share/demo/management/FullThreadDump/Deadlock.java
index 2cc2d3e518..452335f97a 100644
--- a/src/share/demo/management/FullThreadDump/Deadlock.java
+++ b/src/share/demo/management/FullThreadDump/Deadlock.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import java.util.concurrent.CyclicBarrier;
diff --git a/src/share/demo/management/FullThreadDump/FullThreadDump.java b/src/share/demo/management/FullThreadDump/FullThreadDump.java
index 15c95de326..09e85ee5af 100644
--- a/src/share/demo/management/FullThreadDump/FullThreadDump.java
+++ b/src/share/demo/management/FullThreadDump/FullThreadDump.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import javax.management.*;
diff --git a/src/share/demo/management/FullThreadDump/ThreadMonitor.java b/src/share/demo/management/FullThreadDump/ThreadMonitor.java
index eb4ed7803d..2942ce1aa2 100644
--- a/src/share/demo/management/FullThreadDump/ThreadMonitor.java
+++ b/src/share/demo/management/FullThreadDump/ThreadMonitor.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import static java.lang.management.ManagementFactory.*;
diff --git a/src/share/demo/management/JTop/JTop.java b/src/share/demo/management/JTop/JTop.java
index 39f4cab133..4c1539d883 100644
--- a/src/share/demo/management/JTop/JTop.java
+++ b/src/share/demo/management/JTop/JTop.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*
* Example of using the java.lang.management API to sort threads
* by CPU usage.
diff --git a/src/share/demo/management/JTop/JTopPlugin.java b/src/share/demo/management/JTop/JTopPlugin.java
index 9586f9ad48..478d865252 100644
--- a/src/share/demo/management/JTop/JTopPlugin.java
+++ b/src/share/demo/management/JTop/JTopPlugin.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*
* Example of a JConsole Plugin. This loads JTop as a JConsole tab.
*
diff --git a/src/share/demo/management/MemoryMonitor/MemoryMonitor.java b/src/share/demo/management/MemoryMonitor/MemoryMonitor.java
index 676b698f3f..717e34b13c 100644
--- a/src/share/demo/management/MemoryMonitor/MemoryMonitor.java
+++ b/src/share/demo/management/MemoryMonitor/MemoryMonitor.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import java.awt.*;
diff --git a/src/share/demo/management/VerboseGC/PrintGCStat.java b/src/share/demo/management/VerboseGC/PrintGCStat.java
index d4485043a2..d3f84df997 100644
--- a/src/share/demo/management/VerboseGC/PrintGCStat.java
+++ b/src/share/demo/management/VerboseGC/PrintGCStat.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import static java.lang.management.ManagementFactory.*;
diff --git a/src/share/demo/management/VerboseGC/VerboseGC.java b/src/share/demo/management/VerboseGC/VerboseGC.java
index 963389423b..b70cebb0f0 100644
--- a/src/share/demo/management/VerboseGC/VerboseGC.java
+++ b/src/share/demo/management/VerboseGC/VerboseGC.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*/
import javax.management.*;
diff --git a/src/share/demo/nio/zipfs/Demo.java b/src/share/demo/nio/zipfs/Demo.java
index 394a5f7d01..17927b1b15 100644
--- a/src/share/demo/nio/zipfs/Demo.java
+++ b/src/share/demo/nio/zipfs/Demo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java
index b9ea826ab1..72dc21756b 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/JarFileSystemProvider.java
@@ -28,6 +28,15 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
package com.sun.nio.zipfs;
import java.nio.file.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java
index 92c5535ab1..d78c485766 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipCoder.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.nio.ByteBuffer;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java
index 24c28cfe80..dd15bf87e6 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipConstants.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java
index 543220fc63..7ee803cc35 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipDirectoryStream.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.nio.file.DirectoryStream;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java
index c646a09e5e..2498acd8e5 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributeView.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java
index 687f92644c..7e532ca1dd 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileAttributes.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java
index 94ec0307dd..996f7cc0ef 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileStore.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.IOException;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java
index 39945358fc..7052d28e4b 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystem.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.ByteArrayInputStream;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java
index c6dd243815..49d9ee7b90 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipFileSystemProvider.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java
index 56954e1d9e..71274e2a11 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipInfo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.nio.file.Paths;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java
index 8c97818b24..3527e5de25 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipPath.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.*;
diff --git a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java
index cddec6f9be..8938d9e2a0 100644
--- a/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java
+++ b/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ZipUtils.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.nio.zipfs;
import java.io.IOException;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java
index fa9bf1d548..9dbc34ec6a 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/EditableAtEndDocument.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.demo.scripting.jconsole;
import javax.swing.text.*;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java
index 6bae2c80f8..330fd7df5b 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptJConsolePlugin.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.demo.scripting.jconsole;
import com.sun.tools.jconsole.*;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java
index 54731af539..c6b87d6083 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java
+++ b/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/ScriptShellPanel.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.demo.scripting.jconsole;
import java.awt.*;
diff --git a/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js b/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js
index dd1f724f67..f7253b3448 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/resources/jconsole.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js
index 2577b2ab5e..d2af00d5dd 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/heapdump.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This file defines heapdump function to heap dump
* in binary format. User can call this function
* based on events. For example, a timer thread can
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js
index 1454cc744e..0cbdb6dd1e 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/hello.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This is sample JavaScript file that can be loaded into script console.
* This file prints "hello, world".
*/
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js
index 09a060aa62..4bac941780 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/invoke.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script demonstrates "invokeMBean" function. Instead
* of using MXBean proxy or script wrapper object returned by
* 'mbean' function, this file uses direct invoke on MBean.
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js
index 831377dee1..2114b6e09e 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jstack.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This file defines 'jstack' function to print stack traces of
* threads.'jstack' function which can be called once or periodically
* from a timer thread (calling it periodically would slow down the target
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js
index 55e75ac109..ff79bf6abc 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/jtop.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This code is "ported" from JTop demo. This file defines
* 'jtop' function. jtop prints threads sorting by CPU time.
* jtop can be called once or periodically from a timer thread.
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js
index 012b92b904..a78fde4f1f 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/sysprops.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This file defines 'sysprops' function to print Java System
* properties.'sysprops' function which can be called once or periodically
* from a timer thread (calling it periodically would slow down the target
diff --git a/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js b/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js
index b57011ebe0..4e5bb97d25 100644
--- a/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js
+++ b/src/share/demo/scripting/jconsole-plugin/src/scripts/verbose.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script demonstrates "getMBeanAttribute"
* and "setMBeanAttribute" functions. Instead of using
* MXBean proxy or script wrapper object returned by
diff --git a/src/share/sample/README b/src/share/sample/README
new file mode 100644
index 0000000000..ae56b64d72
--- /dev/null
+++ b/src/share/sample/README
@@ -0,0 +1,6 @@
+The source code provided with samples and demos for the JDK is meant
+to illustrate the usage of a given feature or technique and has been
+deliberately simplified. Additional steps required for a
+production-quality application, such as security checks, input
+validation, and proper error handling, might not be present in the
+sample code.
diff --git a/src/share/sample/forkjoin/mergesort/MergeDemo.java b/src/share/sample/forkjoin/mergesort/MergeDemo.java
index f7daf05244..528f383f2f 100644
--- a/src/share/sample/forkjoin/mergesort/MergeDemo.java
+++ b/src/share/sample/forkjoin/mergesort/MergeDemo.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.Arrays;
import java.util.Random;
diff --git a/src/share/sample/forkjoin/mergesort/MergeSort.java b/src/share/sample/forkjoin/mergesort/MergeSort.java
index b9cf0f50c1..0ae48dcd11 100644
--- a/src/share/sample/forkjoin/mergesort/MergeSort.java
+++ b/src/share/sample/forkjoin/mergesort/MergeSort.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.Arrays;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java
index 1c761e1c5d..0187dc550f 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScanner.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java
index ecb4cfcc75..5da41d1efb 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/DirectoryScannerMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java
index 46aaaaa6ed..364543ff92 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManager.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java
index 379e412535..49ac5d67d7 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ResultLogManagerMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.ResultRecord;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java
index bf620d6643..6957e5de14 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirAgent.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java
index b6e7f8ffa4..57f948f52e 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirClient.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.net.InetAddress;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java
index 2a71689b24..2e63a53b4a 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManager.getNextSeqNumber;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java
index 2714cee3f8..d207add704 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanDirConfigMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java
index 52c7cc1092..90cedebb7a 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManager.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import static com.sun.jmx.examples.scandir.ScanManagerMXBean.ScanState.*;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java
index 3eac061600..fa9b03b209 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/ScanManagerMXBean.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.io.IOException;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java
index ec71766556..e186046f3d 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/DirectoryScannerConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.io.File;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java
index ae75835f00..133ad64f6e 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/FileMatch.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.io.File;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java
index a621eec91a..8277f47f84 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultLogConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.util.Arrays;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java
index b1d906783d..c2309289e2 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ResultRecord.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.util.Date;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java
index 5da3f97c25..dbae7a8f85 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/ScanManagerConfig.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.util.Arrays;
diff --git a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java
index 75e4f7425e..e450eaa8e3 100644
--- a/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java
+++ b/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/config/XmlConfigUtils.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import java.io.ByteArrayInputStream;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java
index b38a2d6614..247b1d4be5 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/DirectoryScannerTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.DirectoryScannerConfig;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java
index 36cda481b6..f9cac9405c 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanDirConfigTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import com.sun.jmx.examples.scandir.config.XmlConfigUtils;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java
index 9c700f3957..7c4e03106f 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/ScanManagerTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.util.concurrent.LinkedBlockingQueue;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java
index 1916cc9747..de9b99d6b5 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/TestUtils.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir;
import java.lang.reflect.InvocationHandler;
diff --git a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java
index c63dca1b41..7b15d68acc 100644
--- a/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java
+++ b/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/XmlConfigUtilsTest.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.jmx.examples.scandir.config;
import junit.framework.*;
diff --git a/src/share/sample/nio/chatserver/ChatServer.java b/src/share/sample/nio/chatserver/ChatServer.java
index 072999bd51..f807aa184a 100644
--- a/src/share/sample/nio/chatserver/ChatServer.java
+++ b/src/share/sample/nio/chatserver/ChatServer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
diff --git a/src/share/sample/nio/chatserver/Client.java b/src/share/sample/nio/chatserver/Client.java
index d89516a22d..31ee034eb3 100644
--- a/src/share/sample/nio/chatserver/Client.java
+++ b/src/share/sample/nio/chatserver/Client.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousSocketChannel;
diff --git a/src/share/sample/nio/chatserver/ClientReader.java b/src/share/sample/nio/chatserver/ClientReader.java
index 5308805ea0..ee84b08a3d 100644
--- a/src/share/sample/nio/chatserver/ClientReader.java
+++ b/src/share/sample/nio/chatserver/ClientReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
import java.nio.channels.CompletionHandler;
diff --git a/src/share/sample/nio/chatserver/DataReader.java b/src/share/sample/nio/chatserver/DataReader.java
index 574c69dd1b..8858c9f096 100644
--- a/src/share/sample/nio/chatserver/DataReader.java
+++ b/src/share/sample/nio/chatserver/DataReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
public interface DataReader {
diff --git a/src/share/sample/nio/chatserver/MessageReader.java b/src/share/sample/nio/chatserver/MessageReader.java
index 46fde6f06f..81c370b17c 100644
--- a/src/share/sample/nio/chatserver/MessageReader.java
+++ b/src/share/sample/nio/chatserver/MessageReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
/**
diff --git a/src/share/sample/nio/chatserver/NameReader.java b/src/share/sample/nio/chatserver/NameReader.java
index d0484d0fd0..341d4da334 100644
--- a/src/share/sample/nio/chatserver/NameReader.java
+++ b/src/share/sample/nio/chatserver/NameReader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
/**
diff --git a/src/share/sample/nio/file/AclEdit.java b/src/share/sample/nio/file/AclEdit.java
index 02b6ae78aa..90af86518b 100644
--- a/src/share/sample/nio/file/AclEdit.java
+++ b/src/share/sample/nio/file/AclEdit.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.nio.file.attribute.*;
import java.io.IOException;
diff --git a/src/share/sample/nio/file/Chmod.java b/src/share/sample/nio/file/Chmod.java
index 321f455255..05c16b9963 100644
--- a/src/share/sample/nio/file/Chmod.java
+++ b/src/share/sample/nio/file/Chmod.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.nio.file.attribute.*;
import static java.nio.file.attribute.PosixFilePermission.*;
diff --git a/src/share/sample/nio/file/Copy.java b/src/share/sample/nio/file/Copy.java
index 7cb684183a..0d61ef3466 100644
--- a/src/share/sample/nio/file/Copy.java
+++ b/src/share/sample/nio/file/Copy.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import static java.nio.file.StandardCopyOption.*;
import java.nio.file.attribute.*;
diff --git a/src/share/sample/nio/file/DiskUsage.java b/src/share/sample/nio/file/DiskUsage.java
index 8d6bbb674d..7d30bdfe22 100644
--- a/src/share/sample/nio/file/DiskUsage.java
+++ b/src/share/sample/nio/file/DiskUsage.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.nio.file.attribute.*;
import java.io.IOException;
diff --git a/src/share/sample/nio/file/FileType.java b/src/share/sample/nio/file/FileType.java
index dc754b5f89..d001d6018b 100644
--- a/src/share/sample/nio/file/FileType.java
+++ b/src/share/sample/nio/file/FileType.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import java.io.IOException;
diff --git a/src/share/sample/nio/file/WatchDir.java b/src/share/sample/nio/file/WatchDir.java
index 49e278e14e..4c738209f8 100644
--- a/src/share/sample/nio/file/WatchDir.java
+++ b/src/share/sample/nio/file/WatchDir.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.file.*;
import static java.nio.file.StandardWatchEventKinds.*;
import static java.nio.file.LinkOption.*;
diff --git a/src/share/sample/nio/file/Xdd.java b/src/share/sample/nio/file/Xdd.java
index f07802f264..c0c7f8778a 100644
--- a/src/share/sample/nio/file/Xdd.java
+++ b/src/share/sample/nio/file/Xdd.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.file.*;
diff --git a/src/share/sample/nio/multicast/MulticastAddress.java b/src/share/sample/nio/multicast/MulticastAddress.java
index df0619df16..400eb324f2 100644
--- a/src/share/sample/nio/multicast/MulticastAddress.java
+++ b/src/share/sample/nio/multicast/MulticastAddress.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.UnknownHostException;
diff --git a/src/share/sample/nio/multicast/Reader.java b/src/share/sample/nio/multicast/Reader.java
index 59190f5b8e..5780d730e8 100644
--- a/src/share/sample/nio/multicast/Reader.java
+++ b/src/share/sample/nio/multicast/Reader.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
import java.nio.charset.*;
import java.nio.ByteBuffer;
diff --git a/src/share/sample/nio/multicast/Sender.java b/src/share/sample/nio/multicast/Sender.java
index d22d334f60..6bc76af27f 100644
--- a/src/share/sample/nio/multicast/Sender.java
+++ b/src/share/sample/nio/multicast/Sender.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
import java.nio.charset.Charset;
import java.net.*;
diff --git a/src/share/sample/nio/server/AcceptHandler.java b/src/share/sample/nio/server/AcceptHandler.java
index f24e7d37c1..2efd309f88 100644
--- a/src/share/sample/nio/server/AcceptHandler.java
+++ b/src/share/sample/nio/server/AcceptHandler.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import javax.net.ssl.*;
diff --git a/src/share/sample/nio/server/Acceptor.java b/src/share/sample/nio/server/Acceptor.java
index a9fb52ba86..502e63275a 100644
--- a/src/share/sample/nio/server/Acceptor.java
+++ b/src/share/sample/nio/server/Acceptor.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import javax.net.ssl.*;
diff --git a/src/share/sample/nio/server/B1.java b/src/share/sample/nio/server/B1.java
index e858e4ebfc..71011db72b 100644
--- a/src/share/sample/nio/server/B1.java
+++ b/src/share/sample/nio/server/B1.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
/**
diff --git a/src/share/sample/nio/server/BN.java b/src/share/sample/nio/server/BN.java
index 57c2b7a484..8a268c58d8 100644
--- a/src/share/sample/nio/server/BN.java
+++ b/src/share/sample/nio/server/BN.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/BP.java b/src/share/sample/nio/server/BP.java
index a0d8e9e94f..5029cdd0cd 100644
--- a/src/share/sample/nio/server/BP.java
+++ b/src/share/sample/nio/server/BP.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
import java.util.concurrent.*;
diff --git a/src/share/sample/nio/server/ChannelIO.java b/src/share/sample/nio/server/ChannelIO.java
index 244a5062df..80fe9efdd1 100644
--- a/src/share/sample/nio/server/ChannelIO.java
+++ b/src/share/sample/nio/server/ChannelIO.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/ChannelIOSecure.java b/src/share/sample/nio/server/ChannelIOSecure.java
index 7cc05cb01b..3ec6c93767 100644
--- a/src/share/sample/nio/server/ChannelIOSecure.java
+++ b/src/share/sample/nio/server/ChannelIOSecure.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/Content.java b/src/share/sample/nio/server/Content.java
index 7eebc90b2b..4a6938a6b9 100644
--- a/src/share/sample/nio/server/Content.java
+++ b/src/share/sample/nio/server/Content.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* An Sendable interface extension that adds additional
* methods for additional information, such as Files
diff --git a/src/share/sample/nio/server/Dispatcher.java b/src/share/sample/nio/server/Dispatcher.java
index 660790414b..d82cc55375 100644
--- a/src/share/sample/nio/server/Dispatcher.java
+++ b/src/share/sample/nio/server/Dispatcher.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/Dispatcher1.java b/src/share/sample/nio/server/Dispatcher1.java
index 78e93890ac..16d80aa553 100644
--- a/src/share/sample/nio/server/Dispatcher1.java
+++ b/src/share/sample/nio/server/Dispatcher1.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import java.util.*;
diff --git a/src/share/sample/nio/server/DispatcherN.java b/src/share/sample/nio/server/DispatcherN.java
index 51355d6bc8..1b0d4067e3 100644
--- a/src/share/sample/nio/server/DispatcherN.java
+++ b/src/share/sample/nio/server/DispatcherN.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
import java.util.*;
diff --git a/src/share/sample/nio/server/FileContent.java b/src/share/sample/nio/server/FileContent.java
index 36b7c6c6da..675b00a0a0 100644
--- a/src/share/sample/nio/server/FileContent.java
+++ b/src/share/sample/nio/server/FileContent.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/Handler.java b/src/share/sample/nio/server/Handler.java
index 5705fad6b6..29e0b18711 100644
--- a/src/share/sample/nio/server/Handler.java
+++ b/src/share/sample/nio/server/Handler.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/MalformedRequestException.java b/src/share/sample/nio/server/MalformedRequestException.java
index 089805afb6..bc785ed1ce 100644
--- a/src/share/sample/nio/server/MalformedRequestException.java
+++ b/src/share/sample/nio/server/MalformedRequestException.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* Exception class used when a request can't be properly parsed.
*
diff --git a/src/share/sample/nio/server/N1.java b/src/share/sample/nio/server/N1.java
index 6aa03fe541..761ec6e740 100644
--- a/src/share/sample/nio/server/N1.java
+++ b/src/share/sample/nio/server/N1.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.nio.channels.*;
/**
diff --git a/src/share/sample/nio/server/N2.java b/src/share/sample/nio/server/N2.java
index 49a4abdfcd..aff22cc4d6 100644
--- a/src/share/sample/nio/server/N2.java
+++ b/src/share/sample/nio/server/N2.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/**
* A non-blocking/dual-threaded which performs accept()s in one thread,
* and services requests in a second. Both threads use select().
diff --git a/src/share/sample/nio/server/Reply.java b/src/share/sample/nio/server/Reply.java
index ff3da8984c..c2d7f3be89 100644
--- a/src/share/sample/nio/server/Reply.java
+++ b/src/share/sample/nio/server/Reply.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.charset.*;
diff --git a/src/share/sample/nio/server/Request.java b/src/share/sample/nio/server/Request.java
index 3b227fe8ef..7767d1a849 100644
--- a/src/share/sample/nio/server/Request.java
+++ b/src/share/sample/nio/server/Request.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.net.*;
import java.nio.*;
import java.nio.charset.*;
diff --git a/src/share/sample/nio/server/RequestHandler.java b/src/share/sample/nio/server/RequestHandler.java
index 7b7ca78f94..59953c7009 100644
--- a/src/share/sample/nio/server/RequestHandler.java
+++ b/src/share/sample/nio/server/RequestHandler.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/RequestServicer.java b/src/share/sample/nio/server/RequestServicer.java
index 9f9e099dd3..149e3ded42 100644
--- a/src/share/sample/nio/server/RequestServicer.java
+++ b/src/share/sample/nio/server/RequestServicer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
diff --git a/src/share/sample/nio/server/Sendable.java b/src/share/sample/nio/server/Sendable.java
index 57219b0989..b12dacf8ca 100644
--- a/src/share/sample/nio/server/Sendable.java
+++ b/src/share/sample/nio/server/Sendable.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
/**
diff --git a/src/share/sample/nio/server/Server.java b/src/share/sample/nio/server/Server.java
index f18fcc8f69..40d31cafd4 100644
--- a/src/share/sample/nio/server/Server.java
+++ b/src/share/sample/nio/server/Server.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.nio.channels.*;
diff --git a/src/share/sample/nio/server/StringContent.java b/src/share/sample/nio/server/StringContent.java
index a66b86424d..4fb5088eab 100644
--- a/src/share/sample/nio/server/StringContent.java
+++ b/src/share/sample/nio/server/StringContent.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.nio.*;
import java.nio.charset.*;
diff --git a/src/share/sample/nio/server/URLDumper.java b/src/share/sample/nio/server/URLDumper.java
index 481fe61ee1..b2864c7558 100644
--- a/src/share/sample/nio/server/URLDumper.java
+++ b/src/share/sample/nio/server/URLDumper.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
diff --git a/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java b/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java
index 5bb9376480..d5c154c3ae 100644
--- a/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java
+++ b/src/share/sample/scripting/scriptpad/src/com/sun/sample/scriptpad/Main.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
package com.sun.sample.scriptpad;
import javax.script.*;
diff --git a/src/share/sample/scripting/scriptpad/src/resources/Main.js b/src/share/sample/scripting/scriptpad/src/resources/Main.js
index 3674853a01..5c057a46fa 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/Main.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/Main.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script can be loaded in jrunscript to start scriptpad.
*
* jrunscript -f Main.js -f -
diff --git a/src/share/sample/scripting/scriptpad/src/resources/conc.js b/src/share/sample/scripting/scriptpad/src/resources/conc.js
index 92df812ab6..d9a241215f 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/conc.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/conc.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* Concurrency utilities for JavaScript. These are based on
* java.lang and java.util.concurrent API. The following functions
* provide a simpler API for scripts. Instead of directly using java.lang
diff --git a/src/share/sample/scripting/scriptpad/src/resources/gui.js b/src/share/sample/scripting/scriptpad/src/resources/gui.js
index 13e1020031..cdf69493bb 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/gui.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/gui.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* Few user interface utilities.
*/
diff --git a/src/share/sample/scripting/scriptpad/src/resources/mm.js b/src/share/sample/scripting/scriptpad/src/resources/mm.js
index 1558aff11b..7d7cfe4016 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/mm.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/mm.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This is a collection of utilities for Monitoring
* and management API.
*
diff --git a/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js b/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js
index 28c8ed5ee0..cdc9657d07 100644
--- a/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js
+++ b/src/share/sample/scripting/scriptpad/src/resources/scriptpad.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script creates a simple Notepad-like interface, which
* serves as a simple script editor, runner.
*
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/browse.js b/src/share/sample/scripting/scriptpad/src/scripts/browse.js
index cd03f904fc..3bbc457f5c 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/browse.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/browse.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This function uses new Swing Desktop API in JDK 6.
* To use this with scriptpad, open this in scriptpad
* and use "Tools->Run Script" menu.
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js b/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js
index 68d8602027..c57519a8ac 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/insertfile.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script adds "Insert File" mode menu item to "Tools" menu.
* When selected, this menu shows a file dialog box and inserts
* contents of the selected file into current document (at the
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js b/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js
index 66c4c74047..fcdbe8d134 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/linewrap.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script adds "Line Wrap" mode menu item to "Tools" menu.
* When selected, this menu toggles the current word wrap mode
* of the editor.
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/mail.js b/src/share/sample/scripting/scriptpad/src/scripts/mail.js
index 2a5db2a956..9f6cc54642 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/mail.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/mail.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This function uses new Swing Desktop API in JDK 6.
* To use this with scriptpad, open this in scriptpad
* and use "Tools->Run Script" menu.
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js b/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js
index 641314bd23..d1c286b561 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/memmonitor.js
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
// this checker function runs asynchronously
function memoryChecker(memoryBean, threshold, interval) {
while (true) {
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/memory.js b/src/share/sample/scripting/scriptpad/src/scripts/memory.js
index 9bd1989aa3..4bd1301b4e 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/memory.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/memory.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script serves as a simple "monitored application".
* Start this script using memory.bat or memory.sh in the
* current directory.
diff --git a/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js b/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js
index ae61327f7e..ff12ba7705 100644
--- a/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js
+++ b/src/share/sample/scripting/scriptpad/src/scripts/textcolor.js
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
* This script adds "Selected Text Color" menu item to "Tools" menu.
* When selected, this menu changes the "selected text" color.
*/
diff --git a/src/share/sample/vm/clr-jvm/invoked.java b/src/share/sample/vm/clr-jvm/invoked.java
index 747071597d..ec619c6207 100644
--- a/src/share/sample/vm/clr-jvm/invoked.java
+++ b/src/share/sample/vm/clr-jvm/invoked.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
public class invoked {
public static void main(String args[]) {
diff --git a/src/share/sample/vm/clr-jvm/jinvoker.cpp b/src/share/sample/vm/clr-jvm/jinvoker.cpp
index d4a333f969..5504b936f1 100644
--- a/src/share/sample/vm/clr-jvm/jinvoker.cpp
+++ b/src/share/sample/vm/clr-jvm/jinvoker.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <memory.h>
#include <stdlib.h>
#include "jinvokerExp.h"
diff --git a/src/share/sample/vm/clr-jvm/jinvokerExp.h b/src/share/sample/vm/clr-jvm/jinvokerExp.h
index 7cd878d1e6..7edf4dac91 100644
--- a/src/share/sample/vm/clr-jvm/jinvokerExp.h
+++ b/src/share/sample/vm/clr-jvm/jinvokerExp.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <windows.h>
#include <jni.h>
diff --git a/src/share/sample/vm/jvm-clr/invoker.cpp b/src/share/sample/vm/jvm-clr/invoker.cpp
index 633c579f0d..66a4dafffe 100644
--- a/src/share/sample/vm/jvm-clr/invoker.cpp
+++ b/src/share/sample/vm/jvm-clr/invoker.cpp
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#define _WIN32_WINNT 0x0400
#include "windows.h"
#include "Oleauto.h"
diff --git a/src/share/sample/vm/jvm-clr/invoker.h b/src/share/sample/vm/jvm-clr/invoker.h
index 7005df2dab..768e810c47 100644
--- a/src/share/sample/vm/jvm-clr/invoker.h
+++ b/src/share/sample/vm/jvm-clr/invoker.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class invoker */
diff --git a/src/share/sample/vm/jvm-clr/invoker.java b/src/share/sample/vm/jvm-clr/invoker.java
index a1c8309626..4d8154d6ab 100644
--- a/src/share/sample/vm/jvm-clr/invoker.java
+++ b/src/share/sample/vm/jvm-clr/invoker.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
public class invoker {
static {
diff --git a/src/share/sample/vm/jvm-clr/invokerExp.h b/src/share/sample/vm/jvm-clr/invokerExp.h
index cea8c94a50..3565d1df8a 100644
--- a/src/share/sample/vm/jvm-clr/invokerExp.h
+++ b/src/share/sample/vm/jvm-clr/invokerExp.h
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#ifndef _invoker_h
#define _invoker_h
diff --git a/src/solaris/demo/jni/Poller/Client.java b/src/solaris/demo/jni/Poller/Client.java
index f2e69be0df..759ae6207d 100644
--- a/src/solaris/demo/jni/Poller/Client.java
+++ b/src/solaris/demo/jni/Poller/Client.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.util.*;
import java.net.*;
import java.io.*;
diff --git a/src/solaris/demo/jni/Poller/LinkedQueue.java b/src/solaris/demo/jni/Poller/LinkedQueue.java
index 46d1586910..fcebf47787 100644
--- a/src/solaris/demo/jni/Poller/LinkedQueue.java
+++ b/src/solaris/demo/jni/Poller/LinkedQueue.java
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
File: SLQ.java
Originally: LinkedQueue.java
diff --git a/src/solaris/demo/jni/Poller/Poller.c b/src/solaris/demo/jni/Poller/Poller.c
index aa96db01cc..39a6ce462f 100644
--- a/src/solaris/demo/jni/Poller/Poller.c
+++ b/src/solaris/demo/jni/Poller/Poller.c
@@ -30,6 +30,15 @@
*/
/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
+/*
**********************************************************************
* Poller.c :
* JNI code for use with Poller.java, principally to take advantage
diff --git a/src/solaris/demo/jni/Poller/Poller.java b/src/solaris/demo/jni/Poller/Poller.java
index 71de5ded00..8b8d6af863 100644
--- a/src/solaris/demo/jni/Poller/Poller.java
+++ b/src/solaris/demo/jni/Poller/Poller.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.lang.reflect.*;
import java.io.*;
import java.net.*;
diff --git a/src/solaris/demo/jni/Poller/PollingServer.java b/src/solaris/demo/jni/Poller/PollingServer.java
index 82f7f4966c..095f3cc755 100644
--- a/src/solaris/demo/jni/Poller/PollingServer.java
+++ b/src/solaris/demo/jni/Poller/PollingServer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.lang.Byte;
diff --git a/src/solaris/demo/jni/Poller/SimpleServer.java b/src/solaris/demo/jni/Poller/SimpleServer.java
index 5b59565930..4658a2fd67 100644
--- a/src/solaris/demo/jni/Poller/SimpleServer.java
+++ b/src/solaris/demo/jni/Poller/SimpleServer.java
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
import java.io.*;
import java.net.*;
import java.lang.Byte;
diff --git a/src/solaris/demo/jvmti/hprof/hprof_md.c b/src/solaris/demo/jvmti/hprof/hprof_md.c
index 5a1b67cf65..d3b8484a6e 100644
--- a/src/solaris/demo/jvmti/hprof/hprof_md.c
+++ b/src/solaris/demo/jvmti/hprof/hprof_md.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/src/windows/demo/jvmti/hprof/hprof_md.c b/src/windows/demo/jvmti/hprof/hprof_md.c
index 073a946d2e..2f3ba24fc9 100644
--- a/src/windows/demo/jvmti/hprof/hprof_md.c
+++ b/src/windows/demo/jvmti/hprof/hprof_md.c
@@ -29,6 +29,15 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * This source code is provided to illustrate the usage of a given feature
+ * or technique and has been deliberately simplified. Additional steps
+ * required for a production-quality application, such as security checks,
+ * input validation and proper error handling, might not be present in
+ * this sample code.
+ */
+
+
// To ensure winsock2.h is used, it has to be included ahead of
// windows.h, which includes winsock.h by default.
#include <winsock2.h>