aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2019-02-19 01:47:49 +0100
committerRoel Spilker <r.spilker@gmail.com>2019-02-19 01:47:49 +0100
commit8479edb4262a7eb8cb76baba138f0ea5aae841c5 (patch)
tree06be11d07b5b216f8a5d422b00a4f800391ceeb3 /src/eclipseAgent/lombok/eclipse/agent
parentfd9045dac2a3d9b26125b8ccc865b23d8f7cd8d4 (diff)
downloadlombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.tar.gz
lombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.tar.bz2
lombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.zip
var/val in Eclipse can now handle intersection types, fixes #1986
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchVal.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
index 8d581819..12f4ad3d 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2018 The Project Lombok Authors.
+ * Copyright (C) 2010-2019 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -265,8 +265,9 @@ public class PatchVal {
if (resolved != null) {
try {
replacement = makeType(resolved, local.type, false);
+ if (!decomponent) init.resolvedType = replacement.resolveType(scope);
} catch (Exception e) {
- // Some type thing failed. It might be an IntersectionType
+ // Some type thing failed.
}
}
}