]> source.dussan.org Git - aspectj.git/commit
Make BCEL classpath utility recognise Java 15, fixing many tests
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 13 Mar 2021 07:16:30 +0000 (14:16 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 13 Mar 2021 07:16:30 +0000 (14:16 +0700)
commit07af5d416e94791eb92ae1123e87394e8d22ad80
tree3ebcb45b6f5a159cc10bdc4bd9391b05ba6cbdc8
parent8ea523635a79807c9b9db79f0c90ff3e2d2d29aa
Make BCEL classpath utility recognise Java 15, fixing many tests

Inside org.aspectj.apache.bcel.util.ClassPath.getClassPath(), some JVM
version matching occurs which previously did not include Java 15.
Technically, AspectJ 1.9.6 does not support Java 15, but on GitHub
Actions there is a build job running on a JVM 15. This change should at
least make the weaver tests pass, making that test job more meaningful.

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