Need source code w/ lots of generics

I

Ian Pilcher

I am working on updating the Java syntax highlighting rules in NEdit
(http://www.nedit.org) to handle generics, and I need some code to
really torture it.

Any pointers to one or two source files that really push generics to
their limits (multiple types, nesting, extends, super, comments in
unorthodox places, etc.) would be appreciated.

Thanks!
 
P

Peter Sestoft

Ian Pilcher said:
I am working on updating the Java syntax highlighting rules in NEdit
(http://www.nedit.org) to handle generics, and I need some code to
really torture it.

I recommend Examples 105 through 139 from my book Java Precisely. You
can get the example as a jar or zip file from

http://www.dina.kvl.dk/~sestoft/javaprecisely/

Especially Examples 138 and 139 should exercise your highlighter, and
there is a good selection of wildcard examples too.

Peter Sestoft
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top