Skip to content

Commit

Permalink
Merge pull request #257 from KristianKarl/master
Browse files Browse the repository at this point in the history
Fix issue #253  - hard coded file separator
  • Loading branch information
KristianKarl authored Feb 24, 2021
2 parents 33ade7c + e7579bf commit 82fdaee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private void configureContext(Context context) throws IOException {
} else {
for (Context examineContext : contexts) {
try {
if (Class.forName(path.getParent().toString().replace('/', '.') + "." + examineContext.getModel().getName()).isAssignableFrom(context.getClass())) {
if (Class.forName(path.getParent().toString().replace(File.separatorChar, '.') + "." + examineContext.getModel().getName()).isAssignableFrom(context.getClass())) {
context.setModel(examineContext.getModel());
context.setNextElement(examineContext.getNextElement());

Expand Down

0 comments on commit 82fdaee

Please sign in to comment.