You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by belkaram <gi...@git.apache.org> on 2016/01/14 09:38:33 UTC
[GitHub] groovy pull request: GROOVY-7105 Add try/catch for NoClassDefFound...
GitHub user belkaram opened a pull request:
https://github.com/apache/groovy/pull/239
GROOVY-7105 Add try/catch for NoClassDefFoundError
SAM method resolution can cause loading of classes used in method
arguments (or as a return type).
When such a class is not present on a CLASSPATH, it causes a
NoClassDefFoundError even though the class may actually not be needed
for program execution.
This is the naive sollution, but I think it may work. It suppresses the NoClassDefFoundError when resolving SAM method, but in the case when the class is really needed for execution, it will throw the exception then.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/belkaram/groovy GROOVY_2_3_X
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/239.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #239
----
commit 030b54c8b2151ea21a0505dfe860475ed49835fa
Author: belkaram <ra...@gmail.com>
Date: 2016-01-13T16:03:45Z
GROOVY-7105 Add try/catch for NoClassDefFoundError
SAM method resolution can cause loading of classes used in method
arguments (or as a return type).
When such a class is not present on a CLASSPATH, it causes a
NoClassDefFoundError even though the class may actually not be needed
for program execution.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---