]> source.dussan.org Git - aspectj.git/commit
Make BCEL classpath utility recognise Java 16-19, fixing many tests
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 21 Mar 2021 13:08:15 +0000 (20:08 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 21 Mar 2021 13:08:15 +0000 (20:08 +0700)
commitcf72b628c50fb296b38e559eff744bd829b61865
tree4a025ff06cf537b4846da989ad2f2c87e72ef57e
parent72a092fcd925ccbcd5579a168a690ca44236eb12
Make BCEL classpath utility recognise Java 16-19, fixing many tests

This is a follow-up commit on @07af5d41:
Inside org.aspectj.apache.bcel.util.ClassPath.getClassPath(), some JVM
version matching occurs which previously did not include Java 16 (I also
added 17-19 to the regex matcher). This fixes test errors like:

java.lang.ClassCastException:
  class org.aspectj.weaver.MissingResolvedTypeWithKnownSignature
  cannot be cast to class
  org.aspectj.weaver.ReferenceType
  (org.aspectj.weaver.MissingResolvedTypeWithKnownSignature and
  org.aspectj.weaver.ReferenceType are in unnamed module
  of loader 'app')

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
bcel-builder/src/main/java/org/aspectj/apache/bcel/util/ClassPath.java