mjanicek / rembulan

Rembulan, an implementation of Lua 5.3 for the Java Virtual Machine
Apache License 2.0
163 stars 28 forks source link

InvalidPathException when requiring invalid path #16

Open Adrodoc opened 7 years ago

Adrodoc commented 7 years ago

When I require a string that contains an illegal path character an InvalidPathException is thrown. This is a problem because I want to require an URL wich contains ':'. This require would be processed by a custom searcher that has been installed into the environment at the end of package.searchers similar to here. However this code throws an InvalidPathException before my searcher is even called. In my opinion this exception should be caught and handled just like when the file is not readable.