
| Key: |
STS-290
|
| Type: |
Improvement
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Tim Fennell
|
| Reporter: |
Andy
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
In Stripes 1.4.1, DefaultFormatterFactory doesn't recognize enums of the following format:
enum Xxx {
Aaa { public int Mmm() { return 1; } },
Bbb { public int Mmm() { return 2; } };
public abstract int Mmm();
}
The following patch to DefaultFormatterFactory should fix it.
- else if (clazz.isEnum()) {
+ else if (Enum.class.isAssignableFrom(clazz)) {
|
|
Description
|
In Stripes 1.4.1, DefaultFormatterFactory doesn't recognize enums of the following format:
enum Xxx {
Aaa { public int Mmm() { return 1; } },
Bbb { public int Mmm() { return 2; } };
public abstract int Mmm();
}
The following patch to DefaultFormatterFactory should fix it.
- else if (clazz.isEnum()) {
+ else if (Enum.class.isAssignableFrom(clazz)) { |
Show » |
|
|