aboutsummaryrefslogtreecommitdiffstats
path: root/ajde/testdata/bug-36071
diff options
context:
space:
mode:
authormkersten <mkersten>2003-08-06 21:17:57 +0000
committermkersten <mkersten>2003-08-06 21:17:57 +0000
commit5edccbfaeb8bb4dc5b34d553267365ae3c7eda41 (patch)
tree7fe52f8582e5a0240443801f2003b09117b419de /ajde/testdata/bug-36071
parent3b729301c726c44f028906ec53e518e2d3081e83 (diff)
downloadaspectj-5edccbfaeb8bb4dc5b34d553267365ae3c7eda41.tar.gz
aspectj-5edccbfaeb8bb4dc5b34d553267365ae3c7eda41.zip
Fixed bugs:
40943: Binary weaving should copy non-Java resources from "-inja... 36071: 1.1 rc1 should copy resources similar to java compiler 40826: ajbrowser does not report errors properly 40774: task list icons don't show in ajbrowser
Diffstat (limited to 'ajde/testdata/bug-36071')
-rw-r--r--ajde/testdata/bug-36071/bin/test/test.props1
-rw-r--r--ajde/testdata/bug-36071/config.lst2
-rw-r--r--ajde/testdata/bug-36071/src/Main.java22
-rw-r--r--ajde/testdata/bug-36071/src/aspects/Logging.java27
-rw-r--r--ajde/testdata/bug-36071/src/test/TestProperties.java29
-rw-r--r--ajde/testdata/bug-36071/src/test/test.props1
6 files changed, 82 insertions, 0 deletions
diff --git a/ajde/testdata/bug-36071/bin/test/test.props b/ajde/testdata/bug-36071/bin/test/test.props
new file mode 100644
index 000000000..51e670ac7
--- /dev/null
+++ b/ajde/testdata/bug-36071/bin/test/test.props
@@ -0,0 +1 @@
+test=test \ No newline at end of file
diff --git a/ajde/testdata/bug-36071/config.lst b/ajde/testdata/bug-36071/config.lst
new file mode 100644
index 000000000..4fbccffce
--- /dev/null
+++ b/ajde/testdata/bug-36071/config.lst
@@ -0,0 +1,2 @@
+Main.java
+test/TestProperties.java
diff --git a/ajde/testdata/bug-36071/src/Main.java b/ajde/testdata/bug-36071/src/Main.java
new file mode 100644
index 000000000..417fc6809
--- /dev/null
+++ b/ajde/testdata/bug-36071/src/Main.java
@@ -0,0 +1,22 @@
+import java.io.IOException;
+
+/*
+ * Created on 30-Jul-03
+ *
+ * To change this generated comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+
+/**
+ * @author websterm
+ *
+ * To change this generated comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+public class Main {
+
+ public static void main(String[] args) throws IOException {
+ String propsName = (args.length > 0)? args[0] : "test.props";
+ new test.TestProperties().load(propsName);
+ }
+}
diff --git a/ajde/testdata/bug-36071/src/aspects/Logging.java b/ajde/testdata/bug-36071/src/aspects/Logging.java
new file mode 100644
index 000000000..2e8ba485a
--- /dev/null
+++ b/ajde/testdata/bug-36071/src/aspects/Logging.java
@@ -0,0 +1,27 @@
+/*
+ * Created on 30-Jul-03
+ *
+ * To change this generated comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+package aspects;
+
+/**
+ * @author websterm
+ *
+ * To change this generated comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+public aspect Logging {
+
+ pointcut methods () :
+ execution(* *..*(..)) && !within(Logging);
+
+ before () : methods () {
+ System.err.println("> " + thisJoinPoint.getSignature().toLongString());
+ }
+
+ after () : methods () {
+ System.err.println("< " + thisJoinPoint.getSignature().toLongString());
+ }
+}
diff --git a/ajde/testdata/bug-36071/src/test/TestProperties.java b/ajde/testdata/bug-36071/src/test/TestProperties.java
new file mode 100644
index 000000000..18139e035
--- /dev/null
+++ b/ajde/testdata/bug-36071/src/test/TestProperties.java
@@ -0,0 +1,29 @@
+/*
+ * Created on 30-Jul-03
+ *
+ * To change this generated comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+package test;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+/**
+ * @author websterm
+ *
+ * To change this generated comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+public class TestProperties {
+
+ public void load (String name) throws IOException {
+ InputStream in = getClass().getResourceAsStream(name);
+// System.out.println("? load() in=" + in);
+ Properties props = new Properties();
+ props.load(in);
+ in.close();
+ props.list(System.out);
+ }
+}
diff --git a/ajde/testdata/bug-36071/src/test/test.props b/ajde/testdata/bug-36071/src/test/test.props
new file mode 100644
index 000000000..51e670ac7
--- /dev/null
+++ b/ajde/testdata/bug-36071/src/test/test.props
@@ -0,0 +1 @@
+test=test \ No newline at end of file