akshattandon / projectlombok

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

When using a var that starts with a single lowercase name, the created getters/setters do not match what JSTL EL expecs #773

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please discuss feature requests first on
https://groups.google.com/forum/#!forum/project-lombok

What steps will reproduce the problem?
1. Create a class with variables that start with a single lowercase, then 
uppercase name (e.g. String vVar = "aaa")
2. Use Lombok to generate getters and setters. (Will create getVVar and setVVar)
3. Reference the said variables in JSP page via EL. (expects getvVar and 
setvVar)

What is the expected output? What do you see instead?
Expected output is value of the variable ("aaa")
Results are "Error: failed to compile JSP page"

What version of the product are you using? On what operating system?
Lombok 1.14.8, Eclipse Kepler (4.3.2) with Windows 7

Please provide any additional information below.
Workaround the issue by giving 2 lowercase instead of 1 (e.g vvVar instead of 
vVar)

Original issue reported on code.google.com by arbiter....@gmail.com on 26 Jan 2015 at 2:09

GoogleCodeExporter commented 9 years ago
Got a reply from the devs on twitter, not a bug, intended.

Original comment by arbiter....@gmail.com on 27 Jan 2015 at 3:41

GoogleCodeExporter commented 9 years ago

Original comment by reini...@gmail.com on 31 Jan 2015 at 3:55