aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-09-17 17:19:05 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-09-17 17:19:05 +0200
commit7ada401b6d613d88d72500c89f0a268eb470ace3 (patch)
tree9e485bbf9d0918fcf8ac865867febdf8211a371a /src
parent9bc421ecdc6c23884b731543737c10458cbf016a (diff)
downloadlombok-7ada401b6d613d88d72500c89f0a268eb470ace3.tar.gz
lombok-7ada401b6d613d88d72500c89f0a268eb470ace3.tar.bz2
lombok-7ada401b6d613d88d72500c89f0a268eb470ace3.zip
If val errors out, now at least you see where it happened.
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/javac/handlers/HandleVal.java7
1 files changed, 6 insertions, 1 deletions
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;
}