Skip to content

Commit 02f3b7b

Browse files
authored
update_3.14.1 and fix refrencefactory getObjectType (#1011)
1 parent 6f2075f commit 02f3b7b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<description>SOFABoot Build</description>
3838

3939
<properties>
40-
<revision>3.14.0</revision>
40+
<revision>3.14.1-SNAPSHOT</revision>
4141
<sofa.boot.version>${revision}</sofa.boot.version>
4242
<!--maven plugin-->
4343
<maven.staging.plugin>1.6.7</maven.staging.plugin>

sofa-boot-project/sofa-boot-core/runtime-sofa-boot/src/main/java/com/alipay/sofa/runtime/spring/factory/ReferenceFactoryBean.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ public Object getObject() throws Exception {
7979

8080
@Override
8181
public Class<?> getObjectType() {
82-
return getInterfaceClass();
82+
try {
83+
Class<?> type = getInterfaceClass();
84+
return type != null ? type : ReferenceFactoryBean.class;
85+
} catch (Throwable t) {
86+
// Class not found
87+
return ReferenceFactoryBean.class;
88+
}
8389
}
8490

8591
@Override

0 commit comments

Comments
 (0)