feature: Updating memory length setting
diff --git a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/data/MessageData.java b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/data/MessageData.java index e027979..cdd65c8 100644 --- a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/data/MessageData.java +++ b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/data/MessageData.java
@@ -106,8 +106,8 @@ myDataSample = new DataSample(this); this.typeName = typeName; this.name = name; - this.defaultDataByteSize = mem.getLength(); - this.currentLength = mem.getLength(); + this.defaultDataByteSize = mem.getLength() + mem.getOffset(); + this.currentLength = defaultDataByteSize; this.physicalIoType = physicalIoType; this.logicalIoType = logicalIoType; GCHelper.getGCHelper().addRefWatch(this);
diff --git a/org.eclipse.ote.message.manager/src/org/eclipse/ote/message/manager/MessageCollection.java b/org.eclipse.ote.message.manager/src/org/eclipse/ote/message/manager/MessageCollection.java index 60ead02..1565f58 100644 --- a/org.eclipse.ote.message.manager/src/org/eclipse/ote/message/manager/MessageCollection.java +++ b/org.eclipse.ote.message.manager/src/org/eclipse/ote/message/manager/MessageCollection.java
@@ -23,6 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.logging.Level; + import org.eclipse.osee.framework.jdk.core.type.DoubleKeyHashMap; import org.eclipse.osee.framework.logging.OseeLog; import org.eclipse.osee.ote.core.GCHelper; @@ -81,7 +82,6 @@ cmdTracker.open(true); } - @SuppressWarnings("deprecation") public void init(TestEnvironmentInterface testEnv, NamespaceMapper nameSpaceMapper) { this.testEnv = new WeakReference<TestEnvironmentInterface>(testEnv); this.namespaceMapper = nameSpaceMapper;