[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:
Родитель
63cac28afe
Коммит
eb8276ece4
|
@ -491,7 +491,7 @@ public class #{typeNameWithParams declName declParams}#{maybe interface baseClas
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final String getQualifiedName() {
|
public final String getQualifiedName() {
|
||||||
return "#{qualifiedDeclaredTypeName java s}";
|
return "#{qualifiedDeclaredTypeName idl s}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -531,6 +531,7 @@ public class #{typeNameWithParams declName declParams}#{maybe interface baseClas
|
||||||
}
|
}
|
||||||
}|]
|
}|]
|
||||||
where
|
where
|
||||||
|
idl = MappingContext idlTypeMapping [] [] []
|
||||||
interface = [lt| implements org.bondlib.BondSerializable|]
|
interface = [lt| implements org.bondlib.BondSerializable|]
|
||||||
baseClass x = [lt| extends #{javaType x}|]
|
baseClass x = [lt| extends #{javaType x}|]
|
||||||
publicFieldDecl Field {..} = [lt|public #{javaType fieldType} #{fieldName};|]
|
publicFieldDecl Field {..} = [lt|public #{javaType fieldType} #{fieldName};|]
|
||||||
|
|
|
@ -81,7 +81,7 @@ public class BasicTypes implements org.bondlib.BondSerializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final String getQualifiedName() {
|
public final String getQualifiedName() {
|
||||||
return "nsmapped.BasicTypes";
|
return "tests.BasicTypes";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Загрузка…
Ссылка в новой задаче