| Summary: | Static constant not parsed correctly | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Mauro Molinari <mauromol> | ||||||
| Component: | jst.jsp | Assignee: | Nick Sandonato <nsand.dev> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Nick Sandonato <nsand.dev> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | thatnitind | ||||||
| Version: | 3.3.1 | ||||||||
| Target Milestone: | 3.3.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Mauro Molinari
Created attachment 207803 [details]
Project demonstrating the problem
I changed the summary, because it seems that even if you declare: public static final String CONSTANT = "test"; in MyClass and then you change the JSP so that: <fmt:message key="<%= MyClass.CONSTANT %>"></fmt:message> the same problem happens. F3 does not work in either MyClass and CONSTANT. It does work if you put the same in another place, for instance: <body> <%= MyClass.CONSTANT %> </body> Another information: if you try to rename MyClass to MyTestClass, the refactoring does not change the MyClass reference in: <fmt:message key="<%= MyClass.CONSTANT %>"></fmt:message> while it changes it in all the other places. Created attachment 207845 [details]
patch
Code released along with unit tests. Thanks, Mauro. |