groovyfx-project / groovyfx

A library for writing JavaFX 8 applications in the Groovy language.
http://groovyfx.org
Apache License 2.0
199 stars 48 forks source link

@FXBindable & @CompileStatic & static inner class #37

Open acmi opened 8 years ago

acmi commented 8 years ago

For example:

import groovy.transform.CompileStatic
import groovyx.javafx.beans.FXBindable

@CompileStatic
class Foo {
    static class Bar {
        @FXBindable
        Object baz
    }
}

Decompiled:

public class Foo implements GroovyObject {
    ...
    public static class Bar implements GroovyObject {
        private ObjectProperty bazProp;
        ...
        public final Object getBaz() {
            return ((ObjectProperty)this).getValue();
        }

        public final void setBaz(Object value) {
            this.setValue(value);
        }
        ...
    }
    ...
}

So getter/setter not work :(