]> source.dussan.org Git - aspectj.git/commitdiff
test for Bugzilla Bug 64262
authoracolyer <acolyer>
Thu, 29 Jul 2004 10:32:54 +0000 (10:32 +0000)
committeracolyer <acolyer>
Thu, 29 Jul 2004 10:32:54 +0000 (10:32 +0000)
  ClassCastException at BcelRenderer.java:16

tests/ajcTests.xml
tests/bugs/pr64262/PrimitiveCoercionInExactTypePatternMatching.java [new file with mode: 0644]

index 96bdd14c586282256a570799727c230d85f500bf..024bc1d1ea7c2ddeb834397564317fa489fedd4f 100644 (file)
           <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 (file)
index 0000000..54bcee3
--- /dev/null
@@ -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