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 3989 Details for
Bug 33885
packages with javax in their name don't import properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case generator
GenerateTestCase33885.java (text/plain), 2.66 KB, created by
Olivier Thomann
on 2003-03-11 11:16:09 EST
(
hide
)
Description:
Test case generator
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2003-03-11 11:16:09 EST
Size:
2.66 KB
patch
obsolete
>import java.io.File; >import java.io.FileWriter; >import java.io.IOException; > >public class GenerateTestCase33885 { > > static final String LINE_SEPARATOR = System.getProperty("line.separator"); > > static String packageName = "com.infostructuresys.edge.core.javax"; > > public static void main(String[] args) { > File root = new File("d:/temp/src"); > if (!root.mkdirs()) { > System.out.println("Error creating d:/tem/src"); > return; > } > root = new File("d:/temp/src/" + packageName.replace('.', '/')); > if (!root.mkdirs()) { > System.out.println("Error creating " + "d:/temp/src/" + packageName.replace('.', '/')); > return; > } > for (int i = 0; i < 2500; i++) { > try { > File f = new File(root, "A" + i + ".java"); > StringBuffer buffer = new StringBuffer("package " + packageName + ";" + LINE_SEPARATOR); > buffer.append("public class A" + i + " { }"); > FileWriter writer = new FileWriter(f); > writer.write(buffer.toString()); > writer.flush(); > writer.close(); > } catch (IOException e) { > e.printStackTrace(); > } > } > packageName = "com.infostructuresys.edge.javax.p1"; > root = new File("d:/temp/src/" + packageName.replace('.', '/')); > if (!root.mkdirs()) { > System.out.println("Error creating " + "d:/temp/src/" + packageName.replace('.', '/')); > return; > } > for (int i = 0; i < 1500; i++) { > try { > File f = new File(root, "B" + i + ".java"); > StringBuffer buffer = new StringBuffer("package " + packageName + ";" + LINE_SEPARATOR); > buffer.append("public interface B" + i + " { }" + LINE_SEPARATOR); > FileWriter writer = new FileWriter(f); > writer.write(buffer.toString()); > writer.flush(); > writer.close(); > } catch (IOException e) { > e.printStackTrace(); > } > } > packageName = "p1.p2"; > root = new File("d:/temp/src/" + packageName.replace('.', '/')); > if (!root.mkdirs()) { > System.out.println("Error creating " + "d:/temp/src/" + packageName.replace('.', '/')); > return; > } > for (int i = 0; i < 100; i++) { > try { > File f = new File(root, "C" + i + ".java"); > StringBuffer buffer = new StringBuffer("package " + packageName + ";" + LINE_SEPARATOR); > buffer.append("import com.infostructuresys.edge.javax.p1.*;" + LINE_SEPARATOR); > buffer.append("import com.infostructuresys.edge.core.javax.*;" + LINE_SEPARATOR); > buffer.append("public class C" + i + " extends A" + i + " implements B" + i + " { }" + LINE_SEPARATOR); > FileWriter writer = new FileWriter(f); > writer.write(buffer.toString()); > writer.flush(); > writer.close(); > } catch (IOException e) { > e.printStackTrace(); > } > } > System.out.println("DONE"); > } >}
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 33885
:
3922
| 3989