Skip to content

Commit

Permalink
修复无法匹配内部类的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmanpushcart committed Feb 27, 2018
1 parent 1bdefaa commit 3e719f1
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 23 deletions.
5 changes: 4 additions & 1 deletion bin/set-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ while getopts "sr" ARG
[[ ${OP_RELEASE} ]] && NEW_VERSION=${1}

echo "set project to new version: ${NEW_VERSION}"
mvn -f ../pom.xml versions:set -DoldVersion=* -DnewVersion=${NEW_VERSION} -DprocessAllModules=true -DallowSnapshots=true
cat ../pom.xml\
| sed "s/<sandbox.version>[^<]*<\/sandbox.version>/<sandbox.version>${NEW_VERSION}<\/sandbox.version>/1" > ../pom.xml.newVersion\
&& mv ../pom.xml.newVersion ../pom.xml\
&& mvn -f ../pom.xml versions:set -DoldVersion=* -DnewVersion=${NEW_VERSION} -DprocessAllModules=true -DallowSnapshots=true
6 changes: 3 additions & 3 deletions pom.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
<packaging>pom</packaging>

<name>sandbox ${sandbox.version}</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sandbox.version>1.0.13</sandbox.version>
<sandbox.version>1.0.14</sandbox.version>
</properties>

<build>
Expand Down Expand Up @@ -281,4 +281,4 @@
</scm>


</project>
</project>
2 changes: 1 addition & 1 deletion sandbox-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-agent</artifactId>
<name>sandbox-agent ${sandbox.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-api</artifactId>
<name>sandbox-api ${sandbox.version}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ public class GaStringUtils {
* @return Class类名
*/
public static String getJavaClassName(final Class<?> clazz) {
final String canonicalName = clazz.getCanonicalName();
return isEmpty(canonicalName)
? clazz.getName()
: canonicalName;
return clazz.isArray()
? clazz.getCanonicalName()
: clazz.getName();
// final String canonicalName = clazz.getCanonicalName();
// return isEmpty(canonicalName)
// ? clazz.getName()
// : canonicalName;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion sandbox-common-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-common-api</artifactId>
<name>sandbox-common-api ${sandbox.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-core</artifactId>
<name>sandbox-core ${sandbox.version}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,15 @@ public String getJavaClassName() {
if (null != javaClassName) {
return javaClassName;
}
final String canonicalName = clazz.getCanonicalName();
return javaClassName = StringUtils.isEmpty(canonicalName)
? clazz.getName()
: canonicalName;

return javaClassName = clazz.isArray()
? clazz.getCanonicalName()
: clazz.getName();

// final String canonicalName = clazz.getCanonicalName();
// return javaClassName = StringUtils.isEmpty(canonicalName)
// ? clazz.getName()
// : canonicalName;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0.4
0.1.0.5
2 changes: 1 addition & 1 deletion sandbox-debug-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox-module-starter</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
<relativePath>../sandbox-module-starter/pom.xml</relativePath>
</parent>
<artifactId>sandbox-debug-module</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-mgr-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-mgr-module</artifactId>
<name>sandbox-mgr-module ${sandbox.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-mgr-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-mgr-provider</artifactId>
<name>sandbox-mgr-provider ${sandbox.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-module-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-module-starter</artifactId>
<name>sandbox-module-starter ${sandbox.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-provider-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>com.alibaba.jvm.sandbox</groupId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-provider-api</artifactId>
<name>sandbox-provider-api ${sandbox.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion sandbox-spy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox</artifactId>
<version>1.0.13</version>
<version>1.0.14</version>
</parent>
<artifactId>sandbox-spy</artifactId>
<name>sandbox-spy ${sandbox.version}</name>
Expand Down

0 comments on commit 3e719f1

Please sign in to comment.