GitLab will be shut down on June 25 to move to a new facility. https://www.eclipsestatus.io/incidents/5ffy27gwcbx7

Commit 69fce2b9 authored by Adam Knapp's avatar Adam Knapp Committed by Arpad Lovassy
Browse files

Optional field code generation bug fix see !813 and HQ51693



Enables to assign Optional<Type> to Type
Signed-off-by: Adam Knapp's avatarAdam Knapp <adam.knapp@ericsson.com>
parent a01a0b73
......@@ -686,7 +686,6 @@ public final class Referenced_Value extends Value {
final ExpressionStruct expression = new ExpressionStruct();
reference.generateConstRef(aData, expression);
generateCodeExpressionOptionalFieldReference(aData, expression, reference);
return expression.expression;
}
......
......@@ -254,6 +254,16 @@ public abstract class Base_Type {
*/
public abstract Base_Type operator_assign(final Base_Type otherValue);
/**
* Assigns the other optional value to this value.
*
* @param otherValue the other value to assign.
* @return the new value object.
*/
public Base_Type operator_assign(final Optional<?> otherValue) {
return operator_assign(otherValue.constGet());
}
/**
* Logs this value.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment