Skip to content

Commit

Permalink
solve compatible issue with dubbo 2.5.9, 2.5.10 (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjoo2010 authored and diecui1202 committed Aug 3, 2018
1 parent 5d8048b commit 44b9139
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public final class Version {
private static final Logger logger = LoggerFactory.getLogger(Version.class);

// Dubbo RPC protocol version, for compatibility, it must not be between 2.0.10 ~ 2.6.2
public static final String DEFAULT_DUBBO_PROTOCOL_VERSION = "2.0.1";
public static final String DEFAULT_DUBBO_PROTOCOL_VERSION = "2.0.2";
// Dubbo implementation version, usually is jar version.
private static final String VERSION = getVersion(Version.class, "");

/**
* For protocol compatibility purpose.
* Because {@link #isSupportResponseAttatchment} is checked for every call, int compare expect to has higher performance than string.
*/
private static final int LOWEST_VERSION_FOR_RESPONSE_ATTATCHMENT = 20001; // 2.0.1
private static final int LOWEST_VERSION_FOR_RESPONSE_ATTATCHMENT = 20002; // 2.0.2
private static final Map<String, Integer> VERSION2INT = new HashMap<String, Integer>();

static {
Expand Down Expand Up @@ -202,4 +202,4 @@ public static void checkDuplicate(String path, boolean failOnError) {
}
}

}
}

0 comments on commit 44b9139

Please sign in to comment.