Skip to content

Commit 7976c16

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 42167b9 + 7eab790 commit 7976c16

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ An XSD for SBE specs can be found
1414
For the latest version information and changes see the [Change Log](https://github.com/real-logic/simple-binary-encoding/wiki/Change-Log) with **downloads** at [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Csbe).
1515

1616
The Java and C++ SBE implementations are designed with work very efficiently with the
17-
[Aeron](https://github.com/real-logic/Aeron) messaging system for low-latency and
17+
[Aeron](https://github.com/real-logic/aeron) messaging system for low-latency and
1818
high-throughput communications. The Java SBE implementation has a dependency on
19-
[Agrona](https://github.com/real-logic/Agrona) for its buffer implementations.
19+
[Agrona](https://github.com/real-logic/agrona) for its buffer implementations.
2020

2121
License (See LICENSE file for full license)
2222
-------------------------------------------

sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/CompositeType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private Type processType(
364364
switch (nodeName)
365365
{
366366
case "type":
367-
type = addType(subTypeNode, subTypeName, new EncodedDataType(subTypeNode, givenName));
367+
type = addType(subTypeNode, subTypeName, new EncodedDataType(subTypeNode, givenName, referencedName));
368368
break;
369369

370370
case "enum":

sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/EncodedDataType.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,19 @@ public class EncodedDataType extends Type
5050
*/
5151
public EncodedDataType(final Node node)
5252
{
53-
this(node, null);
53+
this(node, null, null);
5454
}
5555

5656
/**
5757
* Construct a new encodedDataType from XML Schema.
5858
*
59-
* @param node from the XML Schema Parsing
60-
* @param givenName for this node.
59+
* @param node from the XML Schema Parsing
60+
* @param givenName for this node.
61+
* @param referencedName of the type when created from a ref in a composite.
6162
*/
62-
public EncodedDataType(final Node node, final String givenName)
63+
public EncodedDataType(final Node node, final String givenName, final String referencedName)
6364
{
64-
super(node, givenName, null);
65+
super(node, givenName, referencedName);
6566

6667
primitiveType = PrimitiveType.get(getAttributeValue(node, "primitiveType"));
6768
final String lengthAttr = getAttributeValueOrNull(node, "length");

0 commit comments

Comments
 (0)