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 40226 Details for
Bug 137235
AJC can't resolve non-jar classpath entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Util module patch
bug137235.util.patch.txt (text/plain), 2.51 KB, created by
Ron Bodkin
on 2006-05-03 11:41:50 EDT
(
hide
)
Description:
Util module patch
Filename:
MIME Type:
Creator:
Ron Bodkin
Created:
2006-05-03 11:41:50 EDT
Size:
2.51 KB
patch
obsolete
>Index: src/org/aspectj/util/Reflection.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/util/src/org/aspectj/util/Reflection.java,v >retrieving revision 1.3 >diff -u -r1.3 Reflection.java >--- src/org/aspectj/util/Reflection.java 23 Jan 2004 12:23:09 -0000 1.3 >+++ src/org/aspectj/util/Reflection.java 3 May 2006 15:40:37 -0000 >@@ -136,7 +136,7 @@ > // if (!file.canRead()) { > // throw new IllegalArgumentException("cannot read " + file); > // } >- if (FileUtil.hasZipSuffix(file)) { >+ if (FileUtil.isZipFile(file)) { > libs.add(file); > } else if (file.isDirectory()) { > dirs.add(file); >Index: src/org/aspectj/util/FileUtil.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/util/src/org/aspectj/util/FileUtil.java,v >retrieving revision 1.20 >diff -u -r1.20 FileUtil.java >--- src/org/aspectj/util/FileUtil.java 8 Jun 2005 23:33:01 -0000 1.20 >+++ src/org/aspectj/util/FileUtil.java 3 May 2006 15:40:37 -0000 >@@ -17,7 +17,6 @@ > import java.net.*; > import java.util.*; > import java.util.zip.*; >-import java.util.zip.ZipFile; > > > /** >@@ -33,7 +32,7 @@ > > public static final FileFilter ZIP_FILTER = new FileFilter() { > public boolean accept(File file) { >- return hasZipSuffix(file); >+ return isZipFile(file); > } > public String toString() { > return "ZIP_FILTER"; >@@ -70,15 +69,19 @@ > PERMIT_CVS = LangUtil.getBoolean(name, false); > } > >- /** @return true if file path has a zip/jar suffix */ >- public static boolean hasZipSuffix(File file) { >- return ((null != file) && hasZipSuffix(file.getPath())); >+ /** @return true if file exists and is a zip file */ >+ public static boolean isZipFile(File file) { >+ try { >+ return (null != file) && new ZipFile(file) != null; >+ } catch (IOException e) { >+ return false; >+ } > } > > /** @return true if path ends with .zip or .jar */ >- public static boolean hasZipSuffix(String path) { >- return ((null != path) && (0 != zipSuffixLength(path))); >- } >+// public static boolean hasZipSuffix(String path) { >+// return ((null != path) && (0 != zipSuffixLength(path))); >+// } > > /** @return 0 if file has no zip/jar suffix or 4 otherwise */ > public static int zipSuffixLength(File file) {
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 Diff
View Attachment As Raw
Flags:
aclement
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 137235
:
38800
|
40157
|
40158
|
40225
| 40226 |
40227
|
40228
|
40229
|
40230
|
40231
|
40233