소스 검색

363979

tags/preJava7Merge
aclement 12 년 전
부모
커밋
c683091ce2
2개의 변경된 파일20개의 추가작업 그리고 11개의 파일을 삭제
  1. 17
    8
      tests/bugs170/pr363979/Example2.java
  2. 3
    3
      tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java

+ 17
- 8
tests/bugs170/pr363979/Example2.java 파일 보기

@@ -2,15 +2,15 @@
import java.lang.annotation.*;

aspect X {
declare parents:
@SomeAnnotation(a = @Foo(value="123")) * implements java.io.Serializable;
declare parents: @Bar(value = "123") * implements java.io.Serializable;
}

@SomeAnnotation(a = @Foo(value="123"))
public class Example {
@Bar(value="123")
@NamedQuery(name = "Department.findAll",query = "select d from Department d order by d.name ASC",hints = {@QueryHint(name = "org.hibernate.cacheable",value = "true")})
public class Example2 {

public static void main(String []argv) {
Example e = new Example();
Example2 e = new Example2();
if (e instanceof java.io.Serializable) {
System.out.println("yes");
} else {
@@ -21,12 +21,21 @@ declare parents:
}

@Retention(RetentionPolicy.RUNTIME)
@interface Foo {
@interface QueryHint {
String name();
String value();
}

@Retention(RetentionPolicy.RUNTIME)
@interface SomeAnnotation {
Foo a();
@interface NamedQuery {
String name();
String query();
QueryHint[] hints();
}

@Retention(RetentionPolicy.RUNTIME)
@interface Bar {
String value();
}



+ 3
- 3
tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java 파일 보기

@@ -25,9 +25,9 @@ public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("missing impl");
}

// public void testMissingImpl_363979_2() {
// runTest("missing impl 2");
// }
public void testMissingImpl_363979_2() {
runTest("missing impl 2");
}

// ---


Loading…
취소
저장