Permalink
Browse files

(temp) fix for java target

  • Loading branch information...
1 parent cf72f23 commit 4c1ca9aa2c0559b4dcbd2deb27f1968bbc66f11e tong committed Jul 23, 2012
Showing with 10 additions and 4 deletions.
  1. +6 −4 xmpp/Register.hx
  2. +4 −0 xmpp/dataform/FieldType.hx
View
@@ -85,10 +85,12 @@ class Register {
return x;
}
- function createElement( x : Xml, id : String ) {
- if( Reflect.hasField( this, id ) )
- return x.addChild( XMLUtil.createElement( id, Reflect.field( this, id ) ) );
- else return null;
+ function createElement( x : Xml, id : String ) : Xml {
+ if( Reflect.hasField( this, id ) ) {
+ x.addChild( XMLUtil.createElement( id, Reflect.field( this, id ) ) );
+ return x;
+ }
+ return null;
}
public static function parse( x : Xml ) : xmpp.Register {
@@ -27,7 +27,11 @@ enum FieldType {
The field enables an entity to gather or provide an either-or choice between two options.
The default value is "false".
*/
+ #if java
+ _boolean; //TODO: hxjava bug, should be prefixed
+ #else
boolean;
+ #end
/**
The field is intended for data description (e.g., human-readable text such as "section" headers) rather than data gathering or provision.

0 comments on commit 4c1ca9a

Please sign in to comment.