already had ported in z testing stuff, so dropping that side project.
authorChris Koeritz <fred@gruntose.com>
Sat, 2 Mar 2013 21:12:39 +0000 (16:12 -0500)
committerChris Koeritz <fred@gruntose.com>
Sat, 2 Mar 2013 21:12:39 +0000 (16:12 -0500)
kona/.classpath
kona/src/test/java/semantics/behavior_of_finally_when_exception_in_catch.java [new file with mode: 0644]
kona/src/test/java/semantics/instance_of.java
kona/z-testing/.classpath [deleted file]
kona/z-testing/.project [deleted file]
kona/z-testing/.settings/org.eclipse.jdt.core.prefs [deleted file]
kona/z-testing/src/test/java/semantics/behavior_of_finally_when_exception_in_catch.java [deleted file]
kona/z-testing/src/test/java/semantics/instance_of.java [deleted file]

index 12d4c4aae8eea9ccc0a9476609c0b10523617f9b..18bf7466743f666fc2eb13c48231df8c1dbde2e8 100644 (file)
@@ -10,5 +10,5 @@
        <classpathentry kind="lib" path="lib/commons-logging-tests.jar"/>
        <classpathentry kind="lib" path="lib/log4j-1.2.16.jar"/>
        <classpathentry kind="lib" path="lib/junit-4.5.jar"/>
-       <classpathentry kind="output" path="bin"/>
+       <classpathentry kind="output" path="bin-eclipse"/>
 </classpath>
diff --git a/kona/src/test/java/semantics/behavior_of_finally_when_exception_in_catch.java b/kona/src/test/java/semantics/behavior_of_finally_when_exception_in_catch.java
new file mode 100644 (file)
index 0000000..e722b13
--- /dev/null
@@ -0,0 +1,52 @@
+package test.java.semantics;
+
+import java.io.FileNotFoundException;
+
+class finally_behavior_test
+{
+    int calibrador = 17;
+
+    public finally_behavior_test()
+    {
+    }
+
+    public int funkyTown() throws FileNotFoundException
+    {
+        if (calibrador < 3) {
+            // we should never get here.  it should always raise an exception.
+            System.out.println("where did you put it?");
+        } else {
+            throw new FileNotFoundException("is it larger than a breadbox?");
+        }
+        return 25;
+    }
+
+    public void runTest() throws Throwable
+    {
+        try {
+            int zooty = funkyTown();
+            System.out.println("zooty is " + zooty + " but how did we get here???");
+        } catch (Throwable cause) {
+            System.out.println("caught exception, now will rethrow.");
+            throw cause;
+        } finally {
+            System.out.println("still got to finally, our assumptions are safe.");
+        }
+    }
+
+    public static void main(String s[]) throws Exception
+    {
+        // we are asserting that the finally clause of an exception handler will still
+        // fire when an exception is raised in the catch clause. otherwise, all our
+        // assumptions about being able to use finally properly are thrown out the window.
+        finally_behavior_test tony = new finally_behavior_test();
+        try {
+            tony.runTest();
+        } catch (Throwable cause) {
+            //yawn.
+        }
+        System.out.println("Hey, did the finally clause say it ran above?");
+        System.out.println("If so, great.  If not, we've got problems.");
+    }
+
+}
index 3900856608dec7fbfae8d314f62348c67847fe7d..2a5f2b0fb0532d20468e94d6eb83ec3ec4b9822c 100644 (file)
@@ -1,5 +1,3 @@
-
-
 package test.java.semantics;
 
 import java.util.List;
@@ -25,5 +23,4 @@ class instance_of
         }
         
     }
-
 }
\ No newline at end of file
diff --git a/kona/z-testing/.classpath b/kona/z-testing/.classpath
deleted file mode 100644 (file)
index fb565a5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-       <classpathentry kind="src" path="src"/>
-       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
-       <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/kona/z-testing/.project b/kona/z-testing/.project
deleted file mode 100644 (file)
index 5f0583e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-       <name>z-testing</name>
-       <comment></comment>
-       <projects>
-       </projects>
-       <buildSpec>
-               <buildCommand>
-                       <name>org.eclipse.jdt.core.javabuilder</name>
-                       <arguments>
-                       </arguments>
-               </buildCommand>
-       </buildSpec>
-       <natures>
-               <nature>org.eclipse.jdt.core.javanature</nature>
-       </natures>
-</projectDescription>
diff --git a/kona/z-testing/.settings/org.eclipse.jdt.core.prefs b/kona/z-testing/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644 (file)
index e9210e9..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#Mon Sep 10 12:59:04 EDT 2012
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/kona/z-testing/src/test/java/semantics/behavior_of_finally_when_exception_in_catch.java b/kona/z-testing/src/test/java/semantics/behavior_of_finally_when_exception_in_catch.java
deleted file mode 100644 (file)
index cbccf0a..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-package test.java.semantics;
-
-import java.io.FileNotFoundException;
-
-//import java.util.List;
-
-class finally_behavior_test
-{
-    int calibrador = 17;
-
-    public finally_behavior_test()
-    {
-    }
-
-    public int funkyTown() throws FileNotFoundException
-    {
-        if (calibrador < 3) {
-            // we should never get here.  it should always raise an exception.
-            System.out.println("where did you put it?");
-        } else {
-            throw new FileNotFoundException("is it larger than a breadbox?");
-        }
-        return 25;
-    }
-
-    public void runTest() throws Throwable
-    {
-        try {
-            int zooty = funkyTown();
-            System.out.println("zooty is " + zooty + " but how did we get here???");
-        } catch (Throwable cause) {
-            System.out.println("caught exception, now will rethrow.");
-            throw cause;
-        } finally {
-            System.out.println("still got to finally, our assumptions are safe.");
-        }
-    }
-
-    public static void main(String s[]) throws Exception
-    {
-        // we are asserting that the finally clause of an exception handler will still
-        // fire when an exception is raised in the catch clause. otherwise, all our
-        // assumptions about being able to use finally properly are thrown out the window.
-        finally_behavior_test tony = new finally_behavior_test();
-        try {
-            tony.runTest();
-        } catch (Throwable cause) {
-            //yawn.
-        }
-        System.out.println("Hey, did the finally clause say it ran above?");
-        System.out.println("If so, great.  If not, we've got problems.");
-    }
-
-}
diff --git a/kona/z-testing/src/test/java/semantics/instance_of.java b/kona/z-testing/src/test/java/semantics/instance_of.java
deleted file mode 100644 (file)
index 3900856..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-package test.java.semantics;
-
-import java.util.List;
-
-class instance_of
-{
-    public instance_of() {}
-    
-    public Object cogitate() {
-        return null;
-    }
-
-    public static void main(String s[]) throws Exception
-    {
-        // we are just asserting that it is safe to do instanceof on an object that is null.
-        // let's test that theory.
-        instance_of tony = new instance_of();
-        Object fred = tony.cogitate();  // will produce null.
-        if (fred instanceof List<?>) {
-            throw new Exception("that should not have happened!");
-        } else {
-            System.out.println("told us null is not an instance of List, which is correct.");
-        }
-        
-    }
-
-}
\ No newline at end of file