I am getting an error on app engine:

java.lang.SecurityException: java.lang.IllegalAccessException:
Reflection is not allowed on private static final int
java.util.BitSet.ADDRESS_BITS_PER_WORD

>From what I understand this relates to app engine's support of
reflection? I was wondering if their is a workaround available or if
there are any plans to allow for this in future app engine releases?
Thanks!

For now I wrote my own serializer that spits out a null:

public class BitSetSerializer implements JsonSerializer<BitSet> {

        private static final Logger log =
Logger.getLogger(BitSetSerializer.class.getName());

        @Override
        public JsonElement serialize(BitSet src, Type arg1,
JsonSerializationContext arg2) {
                log.info("---------BitSetSerializer start----------------");
                log.info("DateSerializer::BitSetSerializer::src" + src);
                log.info("---------BitSetSerializer end----------------");
                return null;
        }

}

Not sure this is really going to work, but worth a try. Thanks!

Shaun

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to