From 58b51cd69fdf6573010f01eda0a4f2f6ad057f32 Mon Sep 17 00:00:00 2001 From: Thomas Leplus Date: Sat, 11 Jun 2016 23:22:34 -0700 Subject: [PATCH] Avoid ClassCastException (#239) --- .../governance/web/common/interceptor/RestfuleUrlRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java b/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java index 9810eae5153..c930d5830a2 100644 --- a/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java +++ b/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java @@ -101,7 +101,7 @@ public void postSubstitution(RewriteSubstitutionContext context) { return; } //兼容包含group的path - String[] split = (String[]) temp.toArray(); + String[] split = (String[]) temp.toArray(new String[temp.size()]); if(temp.size()>2&&temp.contains("services")){ List parts = new ArrayList();