diff options
author | Yohann Roussel <yroussel@google.com> | 2014-09-03 11:27:59 +0200 |
---|---|---|
committer | Yohann Roussel <yroussel@google.com> | 2014-09-05 16:31:45 +0200 |
commit | 75e905c8fc89926cdb63f8940df0a8cbb974f156 (patch) | |
tree | 4323ea552c9fde631da4b136dfe47e7c058de973 /jack-tests/tests/com/android/jack | |
parent | ef1a0c231e0fe4892fd241ca9bf8a0474ab5889c (diff) | |
download | toolchain_jack-75e905c8fc89926cdb63f8940df0a8cbb974f156.zip toolchain_jack-75e905c8fc89926cdb63f8940df0a8cbb974f156.tar.gz toolchain_jack-75e905c8fc89926cdb63f8940df0a8cbb974f156.tar.bz2 |
JArrrayLiteral should always be given a modifiable List.
Bug: 17364025
Change-Id: Ifb326f703f3dc860d85ef36df0c0f8f68b57835b
Diffstat (limited to 'jack-tests/tests/com/android/jack')
3 files changed, 44 insertions, 0 deletions
diff --git a/jack-tests/tests/com/android/jack/jarjar/test003/jack/Annotated.java b/jack-tests/tests/com/android/jack/jarjar/test003/jack/Annotated.java new file mode 100644 index 0000000..6692254 --- /dev/null +++ b/jack-tests/tests/com/android/jack/jarjar/test003/jack/Annotated.java @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.jack.jarjar.test003.jack; + +@AnnotationWithStringArray("com.android.jack.jarjar.test003.jack.B") +public class Annotated { + +} diff --git a/jack-tests/tests/com/android/jack/jarjar/test003/jack/AnnotationWithStringArray.java b/jack-tests/tests/com/android/jack/jarjar/test003/jack/AnnotationWithStringArray.java new file mode 100644 index 0000000..36944e6 --- /dev/null +++ b/jack-tests/tests/com/android/jack/jarjar/test003/jack/AnnotationWithStringArray.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.jack.jarjar.test003.jack; + +public @interface AnnotationWithStringArray { + String[] value() default {}; +} diff --git a/jack-tests/tests/com/android/jack/jarjar/test003/jack/B.java b/jack-tests/tests/com/android/jack/jarjar/test003/jack/B.java index 780bf7f..bdc6e1b 100644 --- a/jack-tests/tests/com/android/jack/jarjar/test003/jack/B.java +++ b/jack-tests/tests/com/android/jack/jarjar/test003/jack/B.java @@ -16,6 +16,7 @@ package com.android.jack.jarjar.test003.jack; +@AnnotationWithStringArray("com.android.jack.jarjar.test003.jack.B") public class B { public B(String arg) { |