Skip to content

Commit ae67e8b

Browse files
committed
JIRA WDT-47 Added comments regarding TypeUtils.convertToType()
1 parent 22c7280 commit ae67e8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/oracle/weblogic/deploy/util/CustomBeanUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ private static Object convertSingleValue(Object value, Class<?> dataType) {
135135
}
136136
}
137137

138+
// This block of code is similar to the conversion in TypeUtils.convertToType(), but with some differences.
139+
// Custom MBeans only allow a subset of the data types of full alias conversion, and the Java types have to
140+
// be strictly maintained to be passed the the reflected set methods. In addition, convertToType() does not
141+
// convert arrays to the proper data type, so that is handled at a more granular level in this class.
142+
138143
Object result;
139144

140145
try {

0 commit comments

Comments
 (0)