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 18761 Details for
Bug 87900
Error 'Requesting Java AST from selection': Bug in the Java AST parser
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case ready to compile
X.java (text/plain), 1.14 KB, created by
Olivier Thomann
on 2005-03-14 09:16:49 EST
(
hide
)
Description:
Test case ready to compile
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-03-14 09:16:49 EST
Size:
1.14 KB
patch
obsolete
>import java.io.File; >import java.io.FileNotFoundException; >import java.io.IOException; >import java.io.InputStream; >import java.util.zip.ZipFile; > >public class X >{ > private String fXLocation; > private boolean fXLocationIsZip; > private transient > > private X() > { > //intentionally left blank > } > > public static X makeX(String pXLocation) > throws IOException > { > X lNew = new X(); > File lFile; > > lNew.fXLocation = pXLocation; > lFile = new File(lNew.fXLocation); > > if ( !lFile.exists() ) { > throw new FileNotFoundException( > "X '" + pXLocation + "' not found."); > } > > lNew.fXLocationIsZip = !lFile.isDirectory(); > > return lNew; > } > > public static void setTempDirectory(String pTemp) > { > sTempDirectory = pTemp; > } > > private InputStream getResource(String pResourceName) > throws IOException > { > if ( fXLocationIsZip ) { > return getResourceFromZip(pResourceName); > } else { > return getResourceFromDir(pResourceName); > } > } > > private InputStream getResourceFromZip(String pResourceName) > throws IOException > { > ZipFile lZipFile; > > lZipFile = new ZipFile(fXLocation); > } >}
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 87900
:
18757
|
18758
| 18761