
|
If you were logged in you would be able to see more operations.
|
|
|
castor
Created: 14/Sep/06 11:56 AM
Updated: 08/Nov/06 09:50 PM
|
|
| Component/s: |
XML code generator
|
| Affects Version/s: |
None
|
| Fix Version/s: |
None
|
|
|
Time Tracking:
|
|
Original Estimate:
|
6 hours
|
|
|
Remaining Estimate:
|
6 hours
|
|
|
Time Spent:
|
Not Specified
|
|
|
|
|
Java 5 requires Iterable to be able to use a collection in the new Java 5 for-loop. Easier, I think, than doing something to implement iterable would be to provide a method that returns the collection being used, wrapped in an Unmodifiable wrapper. A Java 5 collection would probably not return an enumerator, as that's a Java 1 collection method, but that could be left in place and deprecated, for backwards compatibility.
|
|
Description
|
Java 5 requires Iterable to be able to use a collection in the new Java 5 for-loop. Easier, I think, than doing something to implement iterable would be to provide a method that returns the collection being used, wrapped in an Unmodifiable wrapper. A Java 5 collection would probably not return an enumerator, as that's a Java 1 collection method, but that could be left in place and deprecated, for backwards compatibility. |
Show » |
| There are no comments yet on this issue.
|
|