> I just tested your example. THIS compiles and works but when trying to
add a default (or static) i get the said errors. maybe the requestfactory
apt processor is not correctly updated to the new features?
fixed missing words:
I just tested your example. THIS compiles and works but when trying to add
a default (or static) to a requestfactory proxy i get the said errors.
maybe the requestfactory apt processor is not correctly updated to the new
features?
e.g. this inteface:
@ProxyFor(value = Test.class)
public interface TextProxy extends ValueProxy {
default String getTest() {
return "";
}
static String getTest2() {
return "";
}
}
generates the following errors:
Could not find domain method similar to java.lang.String getTest()
Could not find domain method similar to java.lang.String getTest2()
when removing the "get" ( having "test()" and "test2()") it has those
errros:
Could not find domain method similar to java.lang.String test()
Could not find domain method similar to java.lang.String test2()
Only getters and setters allowed
Only getters and setters allowed
Am Donnerstag, 11. August 2016 08:46:01 UTC+2 schrieb Kay-Uwe Janssen:
>
> I just tested your example. THIS compiles and works but when trying to add
> a default (or static) i get the said errors. maybe the requestfactory apt
> processor is not correctly updated to the new features?
>
> I have checked that I have all gwt-* dependencies (including
> requestfactory-apt and requestfactory-server) with version 2.8-rc1.
>
> Am Mittwoch, 10. August 2016 18:25:05 UTC+2 schrieb Colin Alworth:
>>
>> Kay, can you offer a reproducible example of this, and confirm that you
>> have no older copy of GWT (like gwt-user/gwt-dev from 2.8.0-beta1) on your
>> classpath? To test this, I just built some quick autobeans in a simple
>> project (so that I didn't need a full server to back it):
>>
>> public DefaultMethodInGeneratorTest implements EntryPoint {
>> @Override
>> public void onModuleLoad() {
>> ABF abf = GWT.create(ABF.class);
>> abf.bean().as().buildName();
>> }
>>
>> public interface ABF extends AutoBeanFactory {
>> AutoBean<SampleBean> bean();
>> }
>>
>>
>> public interface SampleBean {
>> String getFirstName();
>> String getLastName();
>> default String buildName() {
>> return getLastName() + ", " + getFirstName();
>> }
>> }
>> }
>>
>> This compiles correctly (for me, with 2.8.0-RC1), even though in prior
>> GWT versions you would need to list buildName() as a @Category.
>>
>> On Wed, Aug 10, 2016 at 3:13 AM Jens <[email protected]> wrote:
>>
>>>
>>> If you feel strongly that something should make RC2 please raise this on
>>>> this thread. I will be cutting RC2 tomorrow PST time.
>>>>
>>>
>>> To avoid incorrect warnings:
>>> https://gwt-review.googlesource.com/#/c/16540/
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Contributors" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected]
>>> .
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/0f8eca73-e432-4074-bb26-019f12b724a3%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/0f8eca73-e432-4074-bb26-019f12b724a3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
--
You received this message because you are subscribed to the Google Groups "GWT
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-web-toolkit-contributors/527e2c57-afdc-4601-aef6-bb17a04b1a6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.