aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-11-09 00:15:35 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-09 00:15:35 +0100
commit98d8a9f63b3183005174abb7691a1692347b9a2e (patch)
tree3820e99c17f7b532ab8c7e75b90728107a514a7d /src/core/lombok
parent956165cc8a25ef66dac19010cca32f065a8679f7 (diff)
downloadlombok-98d8a9f63b3183005174abb7691a1692347b9a2e.tar.gz
lombok-98d8a9f63b3183005174abb7691a1692347b9a2e.tar.bz2
lombok-98d8a9f63b3183005174abb7691a1692347b9a2e.zip
'val' didn't work on ecj/eclipse when referring to types in the default package. fixed.
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/eclipse/Eclipse.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/Eclipse.java b/src/core/lombok/eclipse/Eclipse.java
index 4a1a6c7a..f5b80552 100644
--- a/src/core/lombok/eclipse/Eclipse.java
+++ b/src/core/lombok/eclipse/Eclipse.java
@@ -410,6 +410,7 @@ public class Eclipse {
} else {
String[] pkg = new String(binding.qualifiedPackageName()).split("\\.");
String[] name = new String(binding.qualifiedSourceName()).split("\\.");
+ if (pkg.length == 1 && pkg[0].isEmpty()) pkg = new String[0];
parts = new char[pkg.length + name.length][];
int ptr;
for (ptr = 0; ptr < pkg.length; ptr++) parts[ptr] = pkg[ptr].toCharArray();