murat8505 / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 1 forks source link

Having a variable named "org" will make @Log unusable #555

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
    1. Use any @Log annotation an a class with a field named "org"

What is the expected output? What do you see instead?

    No error if the Logger class is imported and used without lombok.

    Compiler error when using lombok because it uses fully qualified name that starts with org.* 

What version of the product are you using? On what operating system?
    0.12  Tested on multiple systems

Original issue reported on code.google.com by djs.as...@gmail.com on 7 Aug 2013 at 12:03

GoogleCodeExporter commented 9 years ago
It's not really a bug with the annotation, but we create code that just might 
not compile.

You can craft code that fails in the same way without Lombok - just try to run 
QualifierExample through javac.

Original comment by askon...@gmail.com on 7 Aug 2013 at 9:36

Attachments:

GoogleCodeExporter commented 9 years ago
Discussed with Roel. We're not going to fix this since it's not a bug in 
Lombok, and this isn't common or boilerplate enough. You can get around it by 
creating the Logger yourself using a non-fully qualified name.

Original comment by askon...@gmail.com on 7 Aug 2013 at 10:45