Bug in InputStream org.hibernate.util.ConfigHelper.getResourceAsStream(String resource)

Description

Class org.hibernate.util.ConfigHelper starting at line 137:
if (classLoader!=null) {
stream = classLoader.getResourceAsStream( stripped );
}
if ( stream == null ) {
Environment.class.getResourceAsStream( resource );
}
if ( stream == null ) {
stream = Environment.class.getClassLoader().getResourceAsStream( stripped );
}

Shouldn't the Environment.class.getResourceAsStream() return value be also assigned?

Environment

None

Assignee

Emmanuel Bernard

Reporter

Ondřej Světlík

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure