osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (FLINK-9810) JarListHandler does not close opened jars


Chesnay Schepler created FLINK-9810:
---------------------------------------

             Summary: JarListHandler does not close opened jars
                 Key: FLINK-9810
                 URL: https://issues.apache.org/jira/browse/FLINK-9810
             Project: Flink
          Issue Type: Bug
          Components: REST, Webfrontend
    Affects Versions: 1.4.2, 1.5.0, 1.6.0
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.4.3, 1.5.1, 1.6.0


{code}
try {
	JarFile jar = new JarFile(f);
	Manifest manifest = jar.getManifest();
	String assemblerClass = null;

	if (manifest != null) {
		assemblerClass = manifest.getMainAttributes().getValue(PackagedProgram.MANIFEST_ATTRIBUTE_ASSEMBLER_CLASS);
		if (assemblerClass == null) {
			assemblerClass = manifest.getMainAttributes().getValue(PackagedProgram.MANIFEST_ATTRIBUTE_MAIN_CLASS);
		}
	}
	if (assemblerClass != null) {
		classes = assemblerClass.split(",");
	}
}
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)