aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-01 15:00:22 +0000
committeraclement <aclement>2005-12-01 15:00:22 +0000
commita75b7fa48b233e41ed7aeb7d50fbdd411eadd8e6 (patch)
treeca481a5628bc17f8fe11397bd8e38986b663e154
parent8ec833146a26d4952177d8dd7bc368da583b5c8b (diff)
downloadaspectj-a75b7fa48b233e41ed7aeb7d50fbdd411eadd8e6.tar.gz
aspectj-a75b7fa48b233e41ed7aeb7d50fbdd411eadd8e6.zip
test and fix for 118781
-rw-r--r--tests/bugs150/pr118781/MyAspect.java13
-rw-r--r--tests/bugs150/pr118781/MyClass.java21
-rw-r--r--tests/bugs150/pr118781/MyMain.java15
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml5
-rw-r--r--weaver/src/org/aspectj/weaver/World.java7
6 files changed, 60 insertions, 3 deletions
diff --git a/tests/bugs150/pr118781/MyAspect.java b/tests/bugs150/pr118781/MyAspect.java
new file mode 100644
index 000000000..9ba114ee3
--- /dev/null
+++ b/tests/bugs150/pr118781/MyAspect.java
@@ -0,0 +1,13 @@
+package blah;
+
+public aspect MyAspect {
+
+ pointcut callPointCut(): call(public * blah.MyClass+.*(..));
+
+ Object around() : callPointCut() {
+ System.out.println("start of around");
+ Object result = proceed();
+ System.out.println("end of around");
+ return result;
+ }
+}
diff --git a/tests/bugs150/pr118781/MyClass.java b/tests/bugs150/pr118781/MyClass.java
new file mode 100644
index 000000000..c29be0ca9
--- /dev/null
+++ b/tests/bugs150/pr118781/MyClass.java
@@ -0,0 +1,21 @@
+package blah;
+
+import java.util.Random;
+
+public class MyClass {
+ public Integer[] getRandomInt(String[][] param)
+ {
+ for (int i = 0; i < param.length; i++)
+ {
+ System.out.print("[" + i + "] = [");
+ for (int j = 0; j < param[i].length; j++)
+ {
+ System.out.print(param[i][j]);
+ if (j != param[i].length-1)
+ System.out.print(',');
+ }
+ System.out.println(']');
+ }
+ return new Integer[] { new Integer(new Random().nextInt())};
+ }
+}
diff --git a/tests/bugs150/pr118781/MyMain.java b/tests/bugs150/pr118781/MyMain.java
new file mode 100644
index 000000000..4618c48fb
--- /dev/null
+++ b/tests/bugs150/pr118781/MyMain.java
@@ -0,0 +1,15 @@
+package blah;
+
+/** */
+public class MyMain {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args)
+ {
+ MyClass mc = new MyClass();
+ mc.getRandomInt(new String[][]{{ "a", "b",
+"c"},{"x","y","z"}});
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 8e22e8ed3..c373bd9fe 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -50,9 +50,9 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
*/
public void testGeneratingCodeForAnOldRuntime_pr116679_1() { runTest("generating code for a 1.2.1 runtime - 1");}
public void testGeneratingCodeForAnOldRuntime_pr116679_2() { runTest("generating code for a 1.2.1 runtime - 2");}
-
public void testAmbiguousMethod_pr118599_1() { runTest("ambiguous method when binary weaving - 1");}
public void testAmbiguousMethod_pr118599_2() { runTest("ambiguous method when binary weaving - 2");}
+ public void testAroundAdviceArrayAdviceSigs_pr118781() { runTest("verify error with around advice array sigs");}
public void testAtDeclareParents_pr117681() { runTest("at declare parents");}
public void testPrivilegeProblem_pr87525() { runTest("privilege problem with switch");}
public void testGenericAspects_pr115237() { runTest("aspectOf and generic aspects");}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index bdad37215..c68ec595b 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -92,6 +92,11 @@
<compile files="Pr112756.aj" options="-warn:assertIdentifier -Xdev:Pinpoint"/>
</ajc-test>
+ <ajc-test dir="bugs150/pr118781" pr="118781" title="verify error with around advice array sigs">
+ <compile files="MyMain.java,MyAspect.java,MyClass.java" options="-XnoInline"/>
+ <run class="blah.MyMain"/>
+ </ajc-test>
+
<ajc-test dir="bugs150/pr117681" pr="117681" title="at declare parents">
<compile files="Test.java,TestAspect.java,Audit.java,AuditImpl.java" options="-1.5"/>
<run class="Test"/>
diff --git a/weaver/src/org/aspectj/weaver/World.java b/weaver/src/org/aspectj/weaver/World.java
index b353a7241..4a21711d4 100644
--- a/weaver/src/org/aspectj/weaver/World.java
+++ b/weaver/src/org/aspectj/weaver/World.java
@@ -209,8 +209,8 @@ public abstract class World implements Dump.INode {
// no existing resolved type, create one
if (ty.isArray()) {
ResolvedType componentType = resolve(ty.getComponentType(),allowMissing);
- String brackets = signature.substring(0,signature.lastIndexOf("[")+1);
- ret = new ResolvedType.Array(signature, brackets+componentType.getErasureSignature(),
+ //String brackets = signature.substring(0,signature.lastIndexOf("[")+1);
+ ret = new ResolvedType.Array(signature, "["+componentType.getErasureSignature(),
this,
componentType);
} else {
@@ -690,6 +690,9 @@ public abstract class World implements Dump.INode {
* method/ctor as opposed to those you see declared on a generic type.
*/
public ResolvedType put(String key, ResolvedType type) {
+ if (key.indexOf("String")!=-1) {
+ int stop=1;
+ }
if (type.isParameterizedType() && type.isParameterizedWithAMemberTypeVariable()) {
if (debug)
System.err.println("Not putting a parameterized type that utilises member declared type variables into the typemap: key="+key+" type="+type);
9'>backport/47928/stable29 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/l10n/he/files_sharing.po
blob: 6dbfdb0436e0a73d03959179ebecfcc29f59d58a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56