Erroneous sym type: com.vaadin.data.Binder.BindingBuilder.bind

Hi Guys,

Im Binding a combobox inside a grid and I have no idea what’s the problem with my code.

private void bindColumnsToEditor() {
    ComboBox<String> policy = new ComboBox<>();
    policy.setDataProvider(new ListDataProvider<>(Arrays.asList(CommonStaticValue.TIMEKEEPING_POLICY)));

     Binder<Time> binder = this.getEditor().getBinder();

     this.addColumn(Time::getDate).setCaption("DATE");

     Binding<Time, String> policyBinding = binder.forField(policy).bind(Time::getPolicy, Time::setPolicy);
      this.addColumn(Time::getPolicy).setCaption("Policy").setWidth(150).setEditorBinding(policyBinding);
}

Error: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: com.vaadin.data.Binder.BindingBuilder.bind
the error refers to the line: this.addColumn(Time::getPolicy).setCaption("Policy").setWidth(150).setEditorBinding(policyBinding);

Im using Vaadin 8.3 and Netbeans 8.2

It may be issue with Netbeans, check these

https://stackoverflow.com/questions/2333285/java-lang-runtimeexception-uncompilable-source-code-what-can-cause-this

https://stackoverflow.com/questions/35114025/uncompilable-source-code-erroneous-sym-type

Both suggest the following:

try to uncheck “Compile on save” setting in the project properties (Build → Compiling). This is the only thing which helped me in a similar situation.

Hi Tatu,

It works… I was actually trying to replicate your code from your GridFastNav addon. hehehe

Thank you very much.