ClassCastException when using Summernote event handling (Key Up event)

18 views
Skip to first unread message

Hannes

unread,
May 18, 2017, 12:29:28 AM5/18/17
to GwtBootstrap3
Hi,

I try to handle a Summernote Keyup event with this:

myEditor.addSummernoteKeyUpHandler(new SummernoteKeyUpHandler() {

@Override
public void onSummernoteKeyUp(final SummernoteKeyUpEvent event) {
// TODO Auto-generated method stub
log.fine("hello");
}

});


I get a UmbrellaException which is IMHO a classcast exception.

This is the callstack



I identified the following spot where te cast failes:

 @HasNoSideEffects
  static native boolean canCast(Object src, JavaScriptObject dstId) /*-{
    if (@com.google.gwt.lang.Cast::instanceOfString(*)(src)) {
      return !!@com.google.gwt.lang.Cast::stringCastMap[dstId];
    } else if (src.@java.lang.Object::castableTypeMap) {
      return !!src.@java.lang.Object::castableTypeMap[dstId];
    } else if (@com.google.gwt.lang.Cast::instanceOfDouble(*)(src)) {
      return !!@com.google.gwt.lang.Cast::doubleCastMap[dstId];
    } else if (@com.google.gwt.lang.Cast::instanceOfBoolean(*)(src)) {
      return !!@com.google.gwt.lang.Cast::booleanCastMap[dstId];
    }
    return false;
  }-*/;

dstId contains: 




Do you have any idea whats wrong here?

Best regards
Hannes

Reply all
Reply to author
Forward
0 new messages