Browse Source

JNI-129 - JNI-129 - Message.getSent calls getSent() instead of _getSent()

JNI-130
heck 4 years ago
parent
commit
4fdcb1e1ac
  1. 8
      src/codegen/gen_cpp_Message.ysl2
  2. 3
      src/codegen/gen_java_Message.ysl2

8
src/codegen/gen_cpp_Message.ysl2

@ -117,14 +117,8 @@ tstylesheet {
param "type";
param "name";
param "classname" call "CamelCase" with "text", "../@name";
const "convert", "$type != 'timestamp'";
choose {
when "$convert"
> «concat('Java_foundation_pEp_jniadapter_', $classname, '__1', str:replace($name, '_', '_1'))»
otherwise
> «concat('Java_foundation_pEp_jniadapter_', $classname, '_', str:replace($name, '_', '_1'))»
}
> «concat('Java_foundation_pEp_jniadapter_', $classname, '__1', str:replace($name, '_', '_1'))»
}
template "*", mode=entry {

3
src/codegen/gen_java_Message.ysl2

@ -288,6 +288,7 @@ tstylesheet {
return «$type».getByInt(_get«$name»());
}
private native int _get«$name»();
public void set«$name»(«$type» value) {
if(value != null)
_set«$name»(value.value);
@ -303,7 +304,7 @@ tstylesheet {
||
// Property type: no intermediate type [java: «$type», intermediate: «$itype», ctype: «$ctype»]
public «$type» get«$name»() {
return get«$name»();
return _get«$name»();
}
private native «$type» _get«$name»();

Loading…
Cancel
Save