Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8046424

TypeAnnotationPosition.getTypePathFromBinary/fromBinary use Assert.check

XMLWordPrintable

      c.s.t.javac.code.TypeAnnotationPosition.getTypePathFromBinary/fromBinary use Assert.check (and Assert.error) - that is not completely appropriate, as these methods are processing data that are read from an external source (classfile), while the Assert.check is usually used to assert javac internal invariants. It would be better if these would use ClassReader.badClassFile to mark the classfile as bad.

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: