FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1516 : Local inner class variable with generic parameter fails compile
Last modified: 2010-03-17 12:47
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
heuermh
Assigned To:
MrFeinberg
Attachment
Type
Created
Size
Actions
Description
: Opened: 2010-03-16 12:43
version:
processing-0180
error:
Syntax error on token(s), misplaced construct(s)
source:
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;
import java.util.Comparator;
void setup()
{
List<String> list = new ArrayList<String>();
list.add("foo");
list.add("bar");
list.add("baz");
Comparator<String> comparator = new Comparator<String>()
{
public int compare(final String value0, final String value1)
{
return value0.compareTo(value1);
}
};
Collections.sort(list, comparator);
}
Additional Comment
#1 From MrFeinberg 2010-03-16 12:50
Fixed; please verify.