8000 Fixed classpath issues with RoboGuice by WonderCsabo · Pull Request #1158 · androidannotations/androidannotations · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Conversation

@WonderCsabo
Copy link
Member

Related to #1116.

Some classes of RoboGuice are referencing the android.support package.
This is problematic, since it is not always in the classpath. In that
case, generated code cannot be compiled if support classes are
indirectly referenced, also validation can go wrong.
This commit fixes that issue by removing all indirect reference to the
support package.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you catch any RuntimeException in a single catch ?
It would enable us to remove the method propagateRuntimeException.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like catching any exceptions, and it is a very bad design, since that means just consuming all RuntimeExceptions, for example NPE, too. The current code is ugly, but would be much nicer if we would use Java 7, because we could just catchReflectiveOperationException.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Java 6 Supported or are we building for 7? Then you could go with Multi catch.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use Java 6, see the newest issue.

@WonderCsabo
Copy link
Member Author

@yDelouis can we merge this or do you have further comments?

WonderCsabo added a commit that referenced this pull request Oct 12, 2014
…roblem

Fixed classpath issues with RoboGuice
@WonderCsabo WonderCsabo merged commit 45c0413 into androidannotations:develop Oct 12, 2014
@WonderCsabo WonderCsabo added this to the 3.2 milestone Oct 12, 2014
@WonderCsabo WonderCsabo deleted the 1116_fixRoboGuiceSupportV4Problem branch October 12, 2014 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0