summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src2/Test.java
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-10-15 18:56:39 (GMT)
committerGitHub <noreply@github.com>2018-10-15 18:56:39 (GMT)
commite422f8fa002b9cbe6fb5785c301cfc63d8843a99 (patch)
treea987fed537a6a8ac1bb6cc4fc09def0dc8830e47 /test/Java/java_version_image/src2/Test.java
parent55c4cebac66372da7a27c7b1e00d435dc2abe27c (diff)
parentcd1971093ec238e57770e72998caa3055e7af449 (diff)
downloadSCons-e422f8fa002b9cbe6fb5785c301cfc63d8843a99.zip
SCons-e422f8fa002b9cbe6fb5785c301cfc63d8843a99.tar.gz
SCons-e422f8fa002b9cbe6fb5785c301cfc63d8843a99.tar.bz2
Merge pull request #3206 from bdbaddog/fix_java_tests_path_with_spaces
Revamp Java tools to search in reasonable paths.
Diffstat (limited to 'test/Java/java_version_image/src2/Test.java')
-rw-r--r--test/Java/java_version_image/src2/Test.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/test/Java/java_version_image/src2/Test.java b/test/Java/java_version_image/src2/Test.java
new file mode 100644
index 0000000..6f224b0
--- /dev/null
+++ b/test/Java/java_version_image/src2/Test.java
@@ -0,0 +1,55 @@
+class Empty {
+}
+
+interface Listener {
+ public void execute();
+}
+
+public
+class
+Test {
+ class Inner {
+ void go() {
+ use(new Listener() {
+ public void execute() {
+ System.out.println("In Inner");
+ }
+ });
+ }
+ String s1 = "class A";
+ String s2 = "new Listener() { }";
+ /* class B */
+ /* new Listener() { } */
+ }
+
+ public static void main(String[] args) {
+ new Test().run();
+ }
+
+ void run() {
+ use(new Listener() {
+ public void execute() {
+ use(new Listener( ) {
+ public void execute() {
+ System.out.println("Inside execute()");
+ }
+ });
+ }
+ });
+
+ new Inner().go();
+ }
+
+ void use(Listener l) {
+ l.execute();
+ }
+}
+
+class Private {
+ void run() {
+ new Listener() {
+ public void execute() {
+ }
+ };
+ }
+}