diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsAnnotationDrivenConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsAnnotationDrivenConfiguration.java index 26ec7784c6..33eab5779b 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsAnnotationDrivenConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsAnnotationDrivenConfiguration.java @@ -57,7 +57,7 @@ class JmsAnnotationDrivenConfiguration { ConnectionFactory connectionFactory) { DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory(); factory.setConnectionFactory(connectionFactory); - factory.setPubSubDomain(properties.isPubSubDomain()); + factory.setPubSubDomain(this.properties.isPubSubDomain()); if (this.transactionManager != null) { factory.setTransactionManager(this.transactionManager); } diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/JmsAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/JmsAutoConfigurationTests.java index 09d2ff0606..64481f176a 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/JmsAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/JmsAutoConfigurationTests.java @@ -33,8 +33,8 @@ import org.springframework.jms.annotation.EnableJms; import org.springframework.jms.config.DefaultJmsListenerContainerFactory; import org.springframework.jms.config.JmsListenerConfigUtils; import org.springframework.jms.config.JmsListenerContainerFactory; -import org.springframework.jms.config.SimpleJmsListenerContainerFactory; import org.springframework.jms.config.JmsListenerEndpoint; +import org.springframework.jms.config.SimpleJmsListenerContainerFactory; import org.springframework.jms.core.JmsMessagingTemplate; import org.springframework.jms.core.JmsTemplate; import org.springframework.jms.listener.DefaultMessageListenerContainer; diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandException.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandException.java index 8f77fdadd1..b5d36a09f4 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandException.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandException.java @@ -62,6 +62,16 @@ public class CommandException extends RuntimeException { this.options = asEnumSet(options); } + /** + * Create a new {@link CommandException} with the specified options. + * @param cause the underlying cause + * @param options the exception options + */ + public CommandException(Throwable cause, Option... options) { + super(cause); + this.options = asEnumSet(options); + } + private EnumSet