Skip to content

Commit

Permalink
Fix test ClassLoader issue
Browse files Browse the repository at this point in the history
This prevents the base runtime CL from
loading deployment classes.

Fixes quarkusio#16810
Fixes quarkusio#16804
  • Loading branch information
stuartwdouglas committed Apr 27, 2021
1 parent 6c26085 commit dc00274
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ public synchronized QuarkusClassLoader getBaseRuntimeClassLoader() {
for (Path root : quarkusBootstrap.getApplicationRoot()) {
builder.addElement(ClassPathElement.fromPath(root));
}
} else {
for (Path root : quarkusBootstrap.getApplicationRoot()) {
builder.addBannedElement(ClassPathElement.fromPath(root));
}
}

//additional user class path elements first
Expand All @@ -228,6 +232,7 @@ public synchronized QuarkusClassLoader getBaseRuntimeClassLoader() {
} else {
for (Path root : i.getArchivePath()) {
hotReloadPaths.add(root);
builder.addBannedElement(ClassPathElement.fromPath(root));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ quarkus.log.category.\"org.apache.kafka\".level=WARN
quarkus.log.category.\"org.apache.zookeeper\".level=WARN

# enable health check
quarkus.kafka.health.enabled=true

# TODO: this should not be needed, but Avro does not seem to use the correct CL
# This will also cause dev mode issues
quarkus.test.flat-class-path=true
quarkus.kafka.health.enabled=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ quarkus.log.category.\"org.apache.kafka\".level=WARN
quarkus.log.category.\"org.apache.zookeeper\".level=WARN

# enable health check
quarkus.kafka.health.enabled=true

# TODO: this should not be needed, but Avro does not seem to use the correct CL
# This will also cause dev mode issues
quarkus.test.flat-class-path=true
quarkus.kafka.health.enabled=true

0 comments on commit dc00274

Please sign in to comment.