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
{{ message }}
This repository was archived by the owner on Aug 17, 2020. It is now read-only.
Currently i'm creating a modell with modello which contains a name of a class Name which results in the following code generation (Xpp3Reader):
privateNameparseName( XmlPullParserparser, booleanstrict )
throwsIOException, XmlPullParserException
{
StringtagName = parser.getName();
Namename = newName();
for ( inti = parser.getAttributeCount() - 1; i >= 0; i-- )
{
Stringname = parser.getAttributeName( i );
Stringvalue = parser.getAttributeValue( i );
if ( name.indexOf( ':' ) >= 0 )
{
// just ignore attributes with non-default namespace (for example: xmlns:xsi)
}
elseif ( "id".equals( name ) )
{
name.setId( interpolatedTrimmed( value, "id" ) );
}
else
{
checkUnknownAttribute( parser, name, tagName, strict );
}
}
The problem is the name for name which is used. This will produce a clash with the attribute name. I would suggest to change the code generation to use attributeName instead of name which will reduce the possibility of a name clash. Maybe the name before the for loop schould be changed into something like className = new XYZ() ?
Currently i'm creating a modell with modello which contains a name of a class
Namewhich results in the following code generation (Xpp3Reader):The problem is the name for
namewhich is used. This will produce a clash with the attribute name. I would suggest to change the code generation to useattributeNameinstead ofnamewhich will reduce the possibility of a name clash. Maybe the name before theforloop schould be changed into something likeclassName = new XYZ()?Here the culprit model: