[Java] Fix SchemaDef struct full name in Java

Make the full name use the IDL namespace (as in C++ and C#). Previous
attempt [https://github.com/Microsoft/bond/pull/567] was broken during CR.
This commit is contained in:
Chad Walters 2017-08-24 15:28:29 -07:00 коммит произвёл Simon Gansky
Родитель 63cac28afe
Коммит eb8276ece4
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -491,7 +491,7 @@ public class #{typeNameWithParams declName declParams}#{maybe interface baseClas
@Override
public final String getQualifiedName() {
return "#{qualifiedDeclaredTypeName java s}";
return "#{qualifiedDeclaredTypeName idl s}";
}
@Override
@ -531,6 +531,7 @@ public class #{typeNameWithParams declName declParams}#{maybe interface baseClas
}
}|]
where
idl = MappingContext idlTypeMapping [] [] []
interface = [lt| implements org.bondlib.BondSerializable|]
baseClass x = [lt| extends #{javaType x}|]
publicFieldDecl Field {..} = [lt|public #{javaType fieldType} #{fieldName};|]

Просмотреть файл

@ -81,7 +81,7 @@ public class BasicTypes implements org.bondlib.BondSerializable {
@Override
public final String getQualifiedName() {
return "nsmapped.BasicTypes";
return "tests.BasicTypes";
}
@Override