@Data annotation bug

28 views
Skip to first unread message

Typhoon Storm

unread,
Jul 28, 2015, 6:07:57 AM7/28/15
to Xtend Programming Language
Hi,
    The following code has error in generated Java code:

import DataAnnotationBug.Intf
import org.eclipse.xtend.lib.annotations.Data

@Data
class DataAnnotationBug {
    interface Intf {
        def void foo()
    }
    
    val x = new Intf() { // <---- Java problem: __DataAnnotationBug_1 cannot be resolved to a type
        override foo() {}
    }
}

Both old builtin and new version of @Data have this error.

Sven Efftinge

unread,
Jul 28, 2015, 7:28:13 AM7/28/15
to xtend...@googlegroups.com
Could you please file a bugzilla. Thanks.

--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Typhoon Storm

unread,
Jul 28, 2015, 8:52:13 PM7/28/15
to Xtend Programming Language, efft...@itemis.de
Reply all
Reply to author
Forward
0 new messages