Skip to content

Fix ClassCastException when performing BFS#1657

Open
travisMiehm wants to merge 1 commit intoautonomousapps:mainfrom
travisMiehm:travis/classcastexception-fix
Open

Fix ClassCastException when performing BFS#1657
travisMiehm wants to merge 1 commit intoautonomousapps:mainfrom
travisMiehm:travis/classcastexception-fix

Conversation

@travisMiehm
Copy link

Uses manual BFS instead of Guava's Graphs.reachableNodes() / Traverser.forGraph() to avoid a ClassCastException. It is suspected that the exception is caued by Gradle 9's InstrumentingVisitableURLClassLoader, which instruments class bytecode in a way that breaks ImmutableGraph's cast to SuccessorsFunction inside Traverser..

Fixes #1656.

Verified by building and publishing a SNAPSHOT version locally, and pulling that SNAPSHOT version into my project and rerunning the :computeAdvice task on a project that previously failed.

Uses manual BFS instead of Guava's Graphs.reachableNodes() / Traverser.forGraph() to avoid a ClassCastException. It is suspected that the exception is caued by Gradle 9's InstrumentingVisitableURLClassLoader, which instruments class bytecode in a way that breaks ImmutableGraph's cast to SuccessorsFunction inside Traverser.<init>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ComputeAdviceTask throwing ClassCastException

1 participant