Skip to content

Commit 51a9ad3

Browse files
committed
LDEV-6107 clear stale className when classloader flushes
https://luceeserver.atlassian.net/browse/LDEV-6107
1 parent fb471d9 commit 51a9ad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/lucee/runtime/PageSourceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ public Resource getResourceTranslated(PageContext pc) throws ExpressionException
10441044

10451045
public void clear() {
10461046
mapping.clear(pcn.className);
1047-
pcn.page = null;
1047+
pcn.reset();
10481048
}
10491049

10501050
/**
@@ -1055,7 +1055,7 @@ public void clear() {
10551055
public boolean clear(ClassLoader cl) {
10561056
Page page = pcn.page;
10571057
if (page != null && page.getClass().getClassLoader().equals(cl)) {
1058-
pcn.page = null;
1058+
pcn.reset();
10591059
return true;
10601060
}
10611061
return false;

0 commit comments

Comments
 (0)