Commit 3fac0f03 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish multi-release jar support to avoid possible StackOverflowError

See gh-12523
parent 56eebc93
......@@ -246,7 +246,7 @@ class JarFileEntries implements CentralDirectoryVisitor, Iterable<JarEntry> {
private <T extends FileHeader> T getEntry(CharSequence name, Class<T> type,
boolean cacheEntry) {
T entry = doGetEntry(name, type, cacheEntry, null);
if (isMultiReleaseJar() && !isMetaInfEntry(name)) {
if (!isMetaInfEntry(name) && isMultiReleaseJar()) {
int version = RUNTIME_VERSION;
AsciiBytes nameAlias = (entry instanceof JarEntry)
? ((JarEntry) entry).getAsciiBytesName()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment