Skip to content

Commit 58b51cd

Browse files
thomasleplusbeiwei30
authored andcommitted
Avoid ClassCastException (apache#239)
1 parent 2c266b8 commit 58b51cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void postSubstitution(RewriteSubstitutionContext context) {
101101
return;
102102
}
103103
//兼容包含group的path
104-
String[] split = (String[]) temp.toArray();
104+
String[] split = (String[]) temp.toArray(new String[temp.size()]);
105105

106106
if(temp.size()>2&&temp.contains("services")){
107107
List<String> parts = new ArrayList<String>();

0 commit comments

Comments
 (0)