forked from bytemanproject/byteman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BMUnit resource-based script lookup
The original lookup logic involved function `normalize` which is intended for file-system path manipulation. On Windows this means that all path components are separated by a backslash; however such paths are not usable in `Classloader.getResource()`. The logic was fixed to use `/` for resource path construction. In addition, it appears that methods `getLoadDirectory` and `getResourceLoadDirectory` in `org.jboss.byteman.contrib.bmunit.BMUnitConfigState` did incorrectly determine whether to do a chained lookup, contradicting associated comments and possibly causing NullPointerException. The respective conditions were fixed.
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters