Skip to content

Commit

Permalink
check for file to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 18, 2024
1 parent 1fb9145 commit 048428f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ protected Class<?> findClass(String name) throws ClassNotFoundException {

synchronized (SystemUtil.createToken("pcl", name)) {
Resource res = directory.getRealResource(name.replace('.', '/').concat(".class"));
if (!res.isFile()) throw new ClassNotFoundException("Class [" + name + "] is invalid or doesn't exist");

ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.2.0.115-SNAPSHOT"/>
<property name="version" value="6.2.0.116-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.2.0.115-SNAPSHOT</version>
<version>6.2.0.116-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit 048428f

Please sign in to comment.