Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declaredConstructors.exists does not find parameterless (default) ctors #110

Open
Buggaboo opened this issue Feb 11, 2016 · 0 comments
Open

Comments

@Buggaboo
Copy link
Contributor

./Xtendroid/src//org/xtendroid/annotations/AndroidDialogFragment.xtend:33:      if (!clazz.declaredConstructors.exists[ctor|ctor.parameters.empty]) {
./Xtendroid/src//org/xtendroid/annotations/AndroidFragment.xtend:43:      if (!clazz.declaredConstructors.exists[ctor|ctor.parameters.empty]) {
./Xtendroid/src//org/xtendroid/db/AndroidDatabase.xtend:52:      clazz.declaredConstructors.forEach[c|
./Xtendroid/src//org/xtendroid/parcel/ParcelableProperty.xtend:282://       clazz.declaredConstructors.forEach[ /*body === null &&*/ clazz.addWarning(String.format('%s: %b', simpleName, parameters.empty)) ] // debug
./Xtendroid/src//org/xtendroid/parcel/ParcelableProperty.xtend:283:     val isEmptyCtorProvidedByUser = clazz.declaredConstructors.exists[ /*body === null &&*/ parameters.empty ]

For some reason, none of these are correctly detecting the default ctor at transpile time.

This general problem is related to issue #97.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant