You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/09/25 15:15:47 UTC

[GitHub] SuperDubbo opened a new issue #2557: org.apache.dubbo.common.utils.ConfigUtils#loadProperties(java.lang.String, boolean, boolean) miss windows scene

SuperDubbo opened a new issue #2557: org.apache.dubbo.common.utils.ConfigUtils#loadProperties(java.lang.String, boolean, boolean) miss windows scene
URL: https://github.com/apache/incubator-dubbo/issues/2557
 
 
   
   ### Environment
   
   * Dubbo version: dubbo-2.6.4
   * Operating System version: windows 10
   * Java version: JDK1.8
   
   When run the testcase(com.alibaba.dubbo.config.AbstractInterfaceConfigTest#checkApplication1) in windows environment,It will be wrong. 
   
   So It should add scene judgement in windows environment(org.apache.dubbo.common.utils.ConfigUtils#loadProperties(java.lang.String, boolean, boolean),Line 220).
   
   ```java
   if (fileName.startsWith("/")) {
   ````
   change to
   ```java
   if (fileName.startsWith("/")||fileName.matches("^[A-z]:\\\\\\S+$")) {
   ````
   the testcase (com.alibaba.dubbo.config.AbstractInterfaceConfigTest#checkApplication1) will go well.
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org