Eclipse 3.5.1 - Java Editor shows method not defined

2,997 views
Skip to first unread message

Martin

unread,
Feb 1, 2010, 9:58:56 AM2/1/10
to Project Lombok
Just installed Lombok. This is what I was always looking forward to
see.

Installing to Eclipse was easy. Integration via maven was also quickly
accomplished.

The getters and setters show up when I annotate a bean with @Data.
But when I reference the getter from a different class Eclipse shows
me a Java Problem saying

"The method setName(String) is undefined for the type <Object>"

I assume this works for other Eclipse versions, right? Any ideas to
make this work with Eclipse 3.5.1?

Reinier Zwitserloot

unread,
Feb 1, 2010, 10:02:00 AM2/1/10
to Project Lombok
If you're getting type <Object>, then it seems like the problem is
that you've got some funky generics somewhere. Do other methods (ones
not generated by lombok) that are NOT in java.lang.Object work?

As far as we know lombok works fine in eclipse 3.5.1

Martin Kouba

unread,
Feb 1, 2010, 10:03:51 AM2/1/10
to project...@googlegroups.com
Well no I don't get <Object> in the Problem. I intended to use a
placeholder for my Objectname. Let's say

The method setName(String) is undefined for the type Foo

Martin Kouba

unread,
Feb 1, 2010, 10:35:50 AM2/1/10
to project...@googlegroups.com
Ok. Now I don't know why. But after I closed everything and restarted
Eclipse again it's working.

Sleek.

Am 01.02.2010 16:02, schrieb Reinier Zwitserloot:

Reinier Zwitserloot

unread,
Feb 1, 2010, 10:42:55 AM2/1/10
to project-lombok
Weird, but I'm glad restarting eclipse solved the problem.

--Reinier Zwitserloot




--
You received this message because you are subscribed to the Google
Groups group for http://projectlombok.org/

To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
project-lombo...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/project-lombok?hl=en

Reply all
Reply to author
Forward
0 new messages