Skip to content

Commit

Permalink
Update Reflects.java
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Jul 10, 2024
1 parent d22844c commit be58d89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rxlib/src/main/java/org/rx/core/Reflects.java
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,8 @@ public static <T> T changeType(Object value, Class<T> toType) {
throw new InvalidException("Value should be 0 or 1");
}
} else if (toType == Class.class && value instanceof String) {
value = loadClass(value.toString(), false);
//todo check
value = loadClass(value.toString(), true);
} else {
Linq<Method> methods = getMethodMap(toType).get(CHANGE_TYPE_METHOD);
if (methods == null || fromType.isEnum()) {
Expand Down

0 comments on commit be58d89

Please sign in to comment.