src/share/classes/com/sun/tools/javac/comp/Annotate.java
Print this page
@@ -297,11 +297,20 @@
t.type = result;
}
if (typeAnnotation) {
if (a.attribute == null || !(a.attribute instanceof Attribute.TypeCompound)) {
// Create a new TypeCompound
- Attribute.TypeCompound tc = new Attribute.TypeCompound(a.type, buf.toList(), new TypeAnnotationPosition());
+
+ // Eventually, we will get rid of this use of unknown,
+ // because we'll get a position from MemberEnter (task
+ // 8027262).
+ Attribute.TypeCompound tc =
+ new Attribute.TypeCompound(a.type, buf.toList(),
+ // Eventually, we will get rid of this use of unknown,
+ // because we'll get a position from MemberEnter (task
+ // 8027262).
+ TypeAnnotationPosition.unknown);
a.attribute = tc;
return tc;
} else {
// Use an existing TypeCompound
return a.attribute;