Browse Source

test for Bugzilla Bug 64262

 	ClassCastException at BcelRenderer.java:16
tags/for_ajdt1_1_12
acolyer 20 years ago
parent
commit
fdff68edb5

+ 5
- 0
tests/ajcTests.xml View File

@@ -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>

+ 15
- 0
tests/bugs/pr64262/PrimitiveCoercionInExactTypePatternMatching.java View File

@@ -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) {
}
}

Loading…
Cancel
Save