Browse Source

Polish contribution

See gh-24321
pull/24332/head
Sam Brannen 6 years ago
parent
commit
e8ef93c508
  1. 6
      spring-aop/src/main/java/org/springframework/aop/framework/AopContext.java

6
spring-aop/src/main/java/org/springframework/aop/framework/AopContext.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2018 the original author or authors. * Copyright 2002-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -67,8 +67,8 @@ public final class AopContext {
Object proxy = currentProxy.get(); Object proxy = currentProxy.get();
if (proxy == null) { if (proxy == null) {
throw new IllegalStateException( throw new IllegalStateException(
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available. " + "Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available, and " +
"Also Check AopContext.currentProxy() invoke in the origin thread."); "ensure that AopContext.currentProxy() is invoked in the same thread as the AOP invocation context.");
} }
return proxy; return proxy;
} }

Loading…
Cancel
Save