[openrtm-commit:01813] r567 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 3月 5日 (土) 18:45:55 JST
Author: ga
Date: 2016-03-05 18:45:55 +0900 (Sat, 05 Mar 2016)
New Revision: 567
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl
Log:
Modified Port Initialization #3448
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl 2016-03-05 09:43:02 UTC (rev 566)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl 2016-03-05 09:45:55 UTC (rev 567)
@@ -651,12 +651,7 @@
} else {
clazz = loader.loadClass(field.getType().getComponentType().getName());
}
- arrayValue = Array.newInstance(clazz, 1);
- if(clazz.isPrimitive()==false) {
- Object objArray = clazz.newInstance();
- initializeParam(objArray);
- Array.set(arrayValue, 0, objArray);
- }
+ arrayValue = Array.newInstance(clazz, 0);
field.set(target, arrayValue);
} else {
More information about the openrtm-commit
mailing list