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

3
src/codegen/gen_java_Message.ysl2

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

Loading…
Cancel
Save