You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2017/06/15 00:48:18 UTC
incubator-juneau git commit: JUNEAU-57 seamless serialization and
parsing of string fields to/from enum
Repository: incubator-juneau
Updated Branches:
refs/heads/master 9d086440e -> 609f80226
JUNEAU-57 seamless serialization and parsing of string fields to/from
enum
Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/609f8022
Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/609f8022
Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/609f8022
Branch: refs/heads/master
Commit: 609f802264e82f18e3d70bb1639e1edb1b9e39eb
Parents: 9d08644
Author: JamesBognar <ja...@apache.org>
Authored: Wed Jun 14 20:48:16 2017 -0400
Committer: JamesBognar <ja...@apache.org>
Committed: Wed Jun 14 20:48:16 2017 -0400
----------------------------------------------------------------------
juneau-core/src/main/java/org/apache/juneau/ClassMeta.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/609f8022/juneau-core/src/main/java/org/apache/juneau/ClassMeta.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/ClassMeta.java b/juneau-core/src/main/java/org/apache/juneau/ClassMeta.java
index 0dcb8cc..786d60a 100644
--- a/juneau-core/src/main/java/org/apache/juneau/ClassMeta.java
+++ b/juneau-core/src/main/java/org/apache/juneau/ClassMeta.java
@@ -420,7 +420,7 @@ public final class ClassMeta<T> implements Type {
// valueOf() is used by enums.
// parse() is used by the java logging Level class.
// forName() is used by Class and Charset
- for (String methodName : new String[]{"fromString","valueOf","parse","parseString","forName","forString"}) {
+ for (String methodName : new String[]{"fromString","fromValue","valueOf","parse","parseString","forName","forString"}) {
if (fromStringMethod == null) {
for (Method m : c.getMethods()) {
if (isStatic(m) && isPublic(m) && isNotDeprecated(m)) {