aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-30 16:32:07 +0100
committerAlexander Kriegisch <Alexander@Kriegisch.name>2024-04-12 14:19:06 +0200
commitcb13d8bf4c77d9100ce7cd1674ba3b5e4eb0ff55 (patch)
treeb28d3e7e6e7452a90ea51136bec5dbb7bd02441f /tests/java5
parent59fef88ca15bf9b90758067dee2e3b1e321645f2 (diff)
downloadaspectj-cb13d8bf4c77d9100ce7cd1674ba3b5e4eb0ff55.tar.gz
aspectj-cb13d8bf4c77d9100ce7cd1674ba3b5e4eb0ff55.zip
Fix test after node traversal was improved
Due to the latest improvements, an error which was previously not thrown unexpectedly according to a source code comment in test aspect ParameterizedTypesInAnnotationPatterns.aj is now thrown for this kind of pointcut: staticinitialization(@(Foo || List<String>) String) Now the compiler correctly says: no static initialization join points for parameterized types, use raw type instead Relates to #221. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj b/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj
index 6f8b25c4f..b3ecc2456 100644
--- a/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj
+++ b/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj
@@ -3,10 +3,9 @@ import java.util.List;
public aspect ParameterizedTypesInAnnotationPatterns {
// CE - not an annotation type
pointcut simple() : staticinitialization(@List<String> String);
-
- // no CE, good enough for now? may improve error reporting for this later
+
+ // CE - no static initialization join points for parameterized types, use raw type instead
pointcut combined() : staticinitialization(@(Foo || List<String>) String);
-
}
-@interface Foo {} \ No newline at end of file
+@interface Foo {}