Skip to content

Commit 6fdfe04

Browse files
committedFeb 12, 2022
8281674: tools/javac/annotations/typeAnnotations/classfile/AnonymousExtendsTest.java fails with AssertionError
Reviewed-by: vromero
1 parent c3179a8 commit 6fdfe04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎test/langtools/tools/javac/annotations/typeAnnotations/classfile/AnonymousExtendsTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @bug 8146167
26+
* @bug 8146167 8281674
2727
* @summary Anonymous type declarations drop supertype type parameter annotations
2828
* @run main AnonymousExtendsTest
2929
*/
@@ -52,10 +52,10 @@ public class TestClass extends @TA(1) ArrayList<@TA(2) List<Number>> {
5252

5353
public void testIt() {
5454
checkAnnotations(TestClass.class.getAnnotatedSuperclass(),
55-
"[@AnonymousExtendsTest$TA(1)],[@AnonymousExtendsTest$TA(2)]");
55+
"[@AnonymousExtendsTest.TA(1)],[@AnonymousExtendsTest.TA(2)]");
5656
checkAnnotations(new @TA(3) ArrayList<@TA(4) List<Number>>() {
5757
}.getClass().getAnnotatedSuperclass(),
58-
"[@AnonymousExtendsTest$TA(3)],[@AnonymousExtendsTest$TA(4)]");
58+
"[@AnonymousExtendsTest.TA(3)],[@AnonymousExtendsTest.TA(4)]");
5959
}
6060

6161
public void checkAnnotations(AnnotatedType type, String expected) {

0 commit comments

Comments
 (0)
Please sign in to comment.