File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
compiler/src/dotty/tools/dotc/core/classfile Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -699,14 +699,13 @@ class ClassfileParser(
699
699
sym.addAnnotation(Annotation (defn.AnnotationDefaultAnnot , Nil ))
700
700
701
701
// Java annotations on classes / methods / fields with RetentionPolicy.RUNTIME
702
- case tpnme.RuntimeVisibleAnnotationATTR
703
- | tpnme.RuntimeInvisibleAnnotationATTR =>
702
+ case tpnme.RuntimeVisibleAnnotationATTR =>
704
703
parseAnnotations(attrLen)
705
704
706
705
// TODO 1: parse runtime visible annotations on parameters
707
706
// case tpnme.RuntimeParamAnnotationATTR
708
707
709
- // TODO 2: also parse RuntimeInvisibleParamAnnotation
708
+ // TODO 2: also parse RuntimeInvisibleAnnotationATTR / RuntimeInvisibleParamAnnotation
710
709
// i.e. java annotations with RetentionPolicy.CLASS?
711
710
712
711
case tpnme.ExceptionsATTR =>
@@ -938,7 +937,7 @@ class ClassfileParser(
938
937
// attribute isn't, this classfile is a compilation artifact.
939
938
return Some (NoEmbedded )
940
939
941
- if (scan(tpnme.RuntimeVisibleAnnotationATTR ) || scan(tpnme. RuntimeInvisibleAnnotationATTR ) ) {
940
+ if (scan(tpnme.RuntimeVisibleAnnotationATTR )) {
942
941
val attrLen = in.nextInt
943
942
val nAnnots = in.nextChar
944
943
var i = 0
You can’t perform that action at this time.
0 commit comments