From 4eea52f36b327218e921b3bba79fd392d5d16e41 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 1 Nov 2009 23:13:07 +0100 Subject: the static constructor generated by @Data wasn't public when compiling with javac (but it was with eclipse). Fixes issue #63 --- src/lombok/javac/handlers/HandleData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lombok') diff --git a/src/lombok/javac/handlers/HandleData.java b/src/lombok/javac/handlers/HandleData.java index f1b395e1..eef7f78d 100644 --- a/src/lombok/javac/handlers/HandleData.java +++ b/src/lombok/javac/handlers/HandleData.java @@ -137,7 +137,7 @@ public class HandleData implements JavacAnnotationHandler { TreeMaker maker = typeNode.getTreeMaker(); JCClassDecl type = (JCClassDecl) typeNode.get(); - JCModifiers mods = maker.Modifiers(Flags.STATIC); + JCModifiers mods = maker.Modifiers(Flags.STATIC | Flags.PUBLIC); JCExpression returnType, constructorType; -- cgit