aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-07-29 10:32:54 +0000
committeracolyer <acolyer>2004-07-29 10:32:54 +0000
commitfdff68edb5e7e5ec93b7a71ee11b9fe635c88bc8 (patch)
treec6f8779ecf0fd05e9c98b56357fb4c0dcc75b79b
parentb383dfb6458c3871fa09ac71768899e9c1683822 (diff)
downloadaspectj-fdff68edb5e7e5ec93b7a71ee11b9fe635c88bc8.tar.gz
aspectj-fdff68edb5e7e5ec93b7a71ee11b9fe635c88bc8.zip
test for Bugzilla Bug 64262
ClassCastException at BcelRenderer.java:16
-rw-r--r--tests/ajcTests.xml5
-rw-r--r--tests/bugs/pr64262/PrimitiveCoercionInExactTypePatternMatching.java15
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index 96bdd14c5..024bc1d1e 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -7813,5 +7813,10 @@
<message kind="error" line="1" text="must implement abstract inter-type declaration: void A.foo()"/>
</compile>
</ajc-test>
+
+ <ajc-test dir="bugs/pr64262"
+ title="ClassCastException at BcelRenderer.java:169" pr="64262">
+ <compile files="PrimitiveCoercionInExactTypePatternMatching.java"/>
+ </ajc-test>
</suite>
diff --git a/tests/bugs/pr64262/PrimitiveCoercionInExactTypePatternMatching.java b/tests/bugs/pr64262/PrimitiveCoercionInExactTypePatternMatching.java
new file mode 100644
index 000000000..54bcee33d
--- /dev/null
+++ b/tests/bugs/pr64262/PrimitiveCoercionInExactTypePatternMatching.java
@@ -0,0 +1,15 @@
+
+
+public class PrimitiveCoercionInExactTypePatternMatching {
+ double foo(double x) {
+ return x;
+ }
+}
+
+aspect Aspect {
+
+ pointcut foo(int b): args(b);
+
+ before(int i) : foo(i) {
+ }
+} \ No newline at end of file