-
JEP
-
Resolution: Delivered
-
P3
-
shurailine
-
Feature
-
Open
-
JDK
-
-
M
-
L
-
298
Summary
Remove the outdated and unmaintained demos and samples.
Non-Goals
It is not a goal to create new or replacement demos and samples.
Motivation
Most of the existing demos and samples in jdk/src/demo and
jdk/src/sample are out of date and unmaintained, and thus no longer
useful either to developers working on the JDK itself or to the broader
Java community. Their source code no longer represents state-of-the-art
usage of the Java programming language and the Java SE Platform, and
there are no plans to update them. Better sample code is available from
many other sources, for example in the many articles, books, and
presentations published in the broader community.
Description
A few demos are used for testing, and thus will be moved to an
appropriate location in the test hierarchy of the jdk repository:
demo/share/appletsdemo/share/java2ddemo/share/jfc
The remaining demos and samples will be removed from the jdk
repository:
demo/share/jvmtidemo/share/managementdemo/share/nbprojectdemo/share/scriptingdemo/solaris/jnisample/share/annotationssample/share/forkjoinsample/share/jmxsample/share/lambdasample/share/niosample/share/scriptingsample/share/try-with-resourcessample/share/vmsample/solaris/dtrace
Corresponding makefile changes will be made. Built JDK images will no
longer contain demo or sample directories.
Alternatives
If there is strong demand then the source to be removed could be
published in a separate repository outside of any JDK Release Project,
though in any case it will always be available in the Mercurial history
of the jdk repository.
- relates to
-
JDK-8179852 Remove references to demo tests from TEST.groups
-
- Resolved
-
-
JDK-8178910 Problemlist sample tests
-
- Resolved
-
-
JDK-8179457 Remove demo/jvmti tests
-
- Resolved
-
-
JDK-8163836 Move sample/forkjoin as test
-
- Closed
-
-
JDK-8066476 Move demo, sample, and man content into source modules
-
- Resolved
-