aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildScripts/ivysettings.xml2
-rw-r--r--src/core/lombok/javac/handlers/HandleVal.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/buildScripts/ivysettings.xml b/buildScripts/ivysettings.xml
index 72494f72..17919ea2 100644
--- a/buildScripts/ivysettings.xml
+++ b/buildScripts/ivysettings.xml
@@ -7,6 +7,6 @@
<ibiblio name="maven-repo2" m2compatible="true" root="http://repo2.maven.org/maven2" />
</chain>
</resolvers>
- <settings defaultResolver="projectRepos" />
+ <settings defaultResolver="projectRepos" validate="false" />
<caches defaultCacheDir="${ivy.basedir}/ivyCache" />
</ivysettings>
diff --git a/src/core/lombok/javac/handlers/HandleVal.java b/src/core/lombok/javac/handlers/HandleVal.java
index d7a31708..9cd8400e 100644
--- a/src/core/lombok/javac/handlers/HandleVal.java
+++ b/src/core/lombok/javac/handlers/HandleVal.java
@@ -95,7 +95,12 @@ public class HandleVal extends JavacASTAdapter {
if (rhsOfEnhancedForLoop == null) {
if (local.init.type == null) {
JavacResolution resolver = new JavacResolution(localNode.getContext());
- type = ((JCExpression) resolver.resolveMethodMember(localNode).get(local.init)).type;
+ try {
+ type = ((JCExpression) resolver.resolveMethodMember(localNode).get(local.init)).type;
+ } catch (RuntimeException e) {
+ System.err.println("Exception while resolving: " + localNode);
+ throw e;
+ }
} else {
type = local.init.type;
}