Skip to content

Commit

Permalink
fix src.zip loading from modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Newland committed Aug 16, 2024
1 parent e232d26 commit 9a09f20
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,26 @@ else if (line.startsWith(S_BYTECODE_CLASSFILE))
classBytecode.setModuleName(moduleName);
}
}
else
{
String jrt = "jrt:/";

startIndex = line.indexOf(jrt);

if (startIndex != -1)
{
startIndex += jrt.length();

int endIndex = line.indexOf('/', startIndex);

if (endIndex != -1)
{
String moduleName = line.substring(startIndex, endIndex);

classBytecode.setModuleName(moduleName);
}
}
}
}
else if (line.startsWith(S_BYTECODE_SOURCE_FILE))
{
Expand Down

0 comments on commit 9a09f20

Please sign in to comment.