https://issues.apache.org/jira/browse/AMQ-6211 - synchronize creating of jmx composite types

This commit is contained in:
Dejan Bosanac 2016-03-14 17:10:13 +01:00
parent 946e62d702
commit a4c748883a
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public final class OpenTypeSupport {
private final List<String> itemDescriptionsList = new ArrayList<String>();
private final List<OpenType> itemTypesList = new ArrayList<OpenType>();
public CompositeType getCompositeType() throws OpenDataException {
public synchronized CompositeType getCompositeType() throws OpenDataException {
if (compositeType == null) {
init();
compositeType = createCompositeType();