You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not accept double typealiases with the same value.
Change-Id: I2affb15f6faf83cd0292a7310febbad8ae657513
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Copy file name to clipboardExpand all lines: ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/event/metadata/DeclarationScope.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ public void registerType(String name, IDeclaration declaration)
Copy file name to clipboardExpand all lines: ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/internal/ctf/core/event/metadata/tsdl/TypeAliasParser.java
+37-20Lines changed: 37 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -141,50 +141,64 @@ public IDeclaration parse(ICTFMetadataNode typealias, ICommonTreeParserParameter
141
141
}
142
142
}
143
143
if (fieldClass != null) {
144
-
if (type.isEmpty()) {
145
-
if (fieldClass.isJsonObject()) {
146
-
type = fieldClass.get(JsonMetadataStrings.TYPE).getAsString();
147
-
}
144
+
if (type.isEmpty() && fieldClass.isJsonObject()) {
145
+
type = fieldClass.get(JsonMetadataStrings.TYPE).getAsString();
148
146
}
149
-
if (JsonMetadataStrings.FIXED_UNSIGNED_INTEGER_FIELD.equals(type)) {
Copy file name to clipboardExpand all lines: ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/internal/ctf/core/event/metadata/tsdl/struct/StructDeclarationParser.java
0 commit comments