소스 검색

@testcase no such constructor for proceed argument (error)

(compiler throwing NPE)
tags/V_1_1_b5
wisberg 21 년 전
부모
커밋
6e6e48e258
2개의 변경된 파일34개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      tests/ajcTestsFailing.xml
  2. 27
    0
      tests/binding/UnfoundConstructor.java

+ 7
- 0
tests/ajcTestsFailing.xml 파일 보기

@@ -52,4 +52,11 @@
</compile>
</ajc-test>

<ajc-test dir="binding"
title="no such constructor for proceed argument (error)">
<compile files="UnfoundConstructor.java">
<message kind="error" line="25"/>
</compile>
</ajc-test>

</suite>

+ 27
- 0
tests/binding/UnfoundConstructor.java 파일 보기

@@ -0,0 +1,27 @@


import org.aspectj.testing.Tester;

/** @testcase no such constructor for proceed argument (error) */
public class UnfoundConstructor {
public static void main (String[] args) {
I i = new B();
String s = i.toString();
}
}


interface I { }

class B implements I { }

class Mock implements I {
Mock(B toMock) { }
}

aspect A {
Object around(I targ) :
target(targ) && target(B) && call(* *(..)) {
return proceed(new Mock(targ)); // CE 25: no such constructor
}
}

Loading…
취소
저장