Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 431 Details for
Bug 10698
DOM/AST: exception when creating AST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case for bug in clear() implementation
J9Bug.java (text/plain), 838 bytes, created by
Olivier Thomann
on 2002-03-06 13:55:37 EST
(
hide
)
Description:
Test case for bug in clear() implementation
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2002-03-06 13:55:37 EST
Size:
838 bytes
patch
obsolete
>import java.util.AbstractList; >import java.util.ArrayList; > >public class J9Bug { > > static class MyList extends AbstractList { > ArrayList arrayList; > > MyList() { > this.arrayList = new ArrayList(); > } > > /* > * @see List#get(int) > */ > public Object get(int index) { > return this.arrayList.get(index); > } > > public boolean add(Object o) { > return this.arrayList.add(o); > } > > public Object remove(int i) { > return this.arrayList.remove(i); > } > > /* > * @see Collection#size() > */ > public int size() { > return this.arrayList.size(); > } > } > > public static void main(String[] args) { > MyList list = new MyList(); > list.add(new Object()); > list.add(new Object()); > list.add(new Object()); > list.add(new Object()); > list.add(new Object()); > list.clear(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10698
: 431