<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/scannotation/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/scannotation/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/scannotation/bugs/</id><updated>2012-07-06T13:17:15Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Adding ignored packages does not work</title><link href="https://sourceforge.net/p/scannotation/bugs/9/" rel="alternate"/><published>2012-07-06T13:17:15Z</published><updated>2012-07-06T13:17:15Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net980315158367739186609ae07dd62964cf714548</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Adding ignored packages using the addIgnoredPackages() method does not actually add anything, as it doesn't update the array field.&lt;br /&gt;
Consider the current implementation of the method&lt;/p&gt;
&lt;p&gt;protected transient String[] ignoredPackages = {"javax", "java", "sun", "com.sun", "javassist"};&lt;/p&gt;
&lt;p&gt;public void addIgnoredPackages(String... ignored)&lt;br /&gt;
{&lt;br /&gt;
String[] tmp = new String[ignoredPackages.length + ignored.length];&lt;br /&gt;
int i = 0;&lt;br /&gt;
for (String ign : ignoredPackages) tmp[i++] = ign;&lt;br /&gt;
for (String ign : ignored) tmp[i++] = ign;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;It's clearly visible that the new packages are not added to the ignoredPackages.&lt;/p&gt;
&lt;p&gt;Cheers&lt;br /&gt;
Mladen&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch to fix 6 outstanding bugs and add white list API</title><link href="https://sourceforge.net/p/scannotation/bugs/8/" rel="alternate"/><published>2011-03-01T21:21:56Z</published><updated>2011-03-01T21:21:56Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net38f0ca6ad6abe4163da606f9abb7fe9f2111658c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Attached is a patch that fixes the following bugs:&lt;br /&gt;
ID: 3011026 - NPE when WEB-INF/lib does not exist &lt;br /&gt;
ID: 2864003 - packages not ignored when class files in a directory&lt;br /&gt;
ID: 2863974 - adding an ignored package might not work &lt;br /&gt;
ID: 2126527 - Scanning of classes not disable able&lt;br /&gt;
ID: 1922942 - org.scannotation.AnnotationDB class&lt;/p&gt;
&lt;p&gt;In addition it adds the following APIs to allow white-listing of scanned packages:&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
* Set explicit packages to scan.&lt;br /&gt;
* Set to null to enable ignore list.&lt;br /&gt;
*&lt;br /&gt;
* @param scanPackages packages to scan or null&lt;br /&gt;
*/&lt;br /&gt;
public void setScanPackages(String[] scanPackages)&lt;br /&gt;
public String[] getScanPackages()&lt;/p&gt;
&lt;p&gt;How about a 1.0.3 release Bill?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>FileProtocolIteratorFactory creates File from a URL wrong</title><link href="https://sourceforge.net/p/scannotation/bugs/7/" rel="alternate"/><published>2010-12-10T19:17:18Z</published><updated>2010-12-10T19:17:18Z</updated><author><name>Laird Nelson</name><uri>https://sourceforge.net/u/ljnelson/</uri></author><id>https://sourceforge.net744c83077239e22e7b956850c1fa2b53c766d00d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Line 17 of FileProtocolIteratorFactory.java creates a File from the output of URL#getPath().  If the URL in question has, for example, %20 in it, this will produce a File that is probably not what you want.&lt;/p&gt;
&lt;p&gt;Kohsuke Kawaguchi has an excellent article on this very problem: &lt;a href="http://weblogs.java.net/blog/2007/04/25/how-convert-javaneturl-javaiofile" rel="nofollow"&gt;http://weblogs.java.net/blog/2007/04/25/how-convert-javaneturl-javaiofile&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The attached patch against the trunk from the root applies this solution (as well as increments the POM version).&lt;/p&gt;
&lt;p&gt;Thanks for an excellent little library; it's saved my bacon several times.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>NPE when WEB-INF/lib does not exist</title><link href="https://sourceforge.net/p/scannotation/bugs/6/" rel="alternate"/><published>2010-06-03T13:47:27Z</published><updated>2010-06-03T13:47:27Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net927d995ba5db5e9d38f1b7df47b5f022370651e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Scannotation fails with NPE if a web archive does not contain the WEB-INF/lib folder (no libraries bundled with the app)&lt;/p&gt;
&lt;p&gt;org.scannotation.WarUrlFinder.findWebInfLibClasspaths(WarUrlFinder.java:27)&lt;/p&gt;
&lt;p&gt;Tested on scannotation 1.0.2 (RESTEasy 2.0-BETA3-SNAPSHOT)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>packages not ignored when class files in a directory</title><link href="https://sourceforge.net/p/scannotation/bugs/5/" rel="alternate"/><published>2009-09-22T03:49:56Z</published><updated>2009-09-22T03:49:56Z</updated><author><name>Renaud Borguet</name><uri>https://sourceforge.net/u/renaudborguet/</uri></author><id>https://sourceforge.net9e4d1a0f1040910f74142cc16b030a14c9bca220</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;AnnotationDB.ignoreScan(String intf)&lt;br /&gt;
when scanning files in a directory intf contains the class filepath, thus never starts with ignored packages.&lt;br /&gt;
As an example:&lt;br /&gt;
intf = "D:\Workspace\MyProject\bin\com\mypackage\MyClass.class"&lt;br /&gt;
ignored packages = {"org", "sun""}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>adding an ignored package might not work</title><link href="https://sourceforge.net/p/scannotation/bugs/4/" rel="alternate"/><published>2009-09-22T03:05:03Z</published><updated>2009-09-22T03:05:03Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.neta4721c13b7ee66c90ac5419a0ca3e1c6ba6e716e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;tmp is not written back to this.ignoredPackages &lt;br /&gt;
public void addIgnoredPackages(String... ignored)&lt;br /&gt;
84    {&lt;br /&gt;
85       String[] tmp = new String[ignoredPackages.length + ignored.length];&lt;br /&gt;
86       int i = 0;&lt;br /&gt;
87       for (String ign : ignoredPackages) tmp[i++] = ign;&lt;br /&gt;
88       for (String ign : ignored) tmp[i++] = ign;&lt;br /&gt;
89    }&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Scanning of classes not disable able</title><link href="https://sourceforge.net/p/scannotation/bugs/3/" rel="alternate"/><published>2008-09-24T14:30:56Z</published><updated>2008-09-24T14:30:56Z</updated><author><name>Ulrich David</name><uri>https://sourceforge.net/u/alexxismachine/</uri></author><id>https://sourceforge.net42aa380b2cc147d4931cdb89c1b4d183edd6b86a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In AnnotationDB the semicolon at the end of line 313 is too much so scanClass() is always called.&lt;/p&gt;
&lt;p&gt;312          classIndex.put(cf.getName(), new HashSet&amp;lt;String&amp;gt;());&lt;br /&gt;
313          if (scanClassAnnotations) ;&lt;br /&gt;
314          scanClass(cf);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with directory containing spaces</title><link href="https://sourceforge.net/p/scannotation/bugs/2/" rel="alternate"/><published>2008-07-28T15:06:32Z</published><updated>2008-07-28T15:06:32Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netd97da0bc36b0e3edcf472d47857c30f6b7532ef3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If the path contains spaces the FileProtocolIteratorFactory will not work because in new File(url.getPath()) the spaces get passed in as %20.&lt;/p&gt;
&lt;p&gt;Attached a possible fix.&lt;/p&gt;
&lt;p&gt;Jan&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>org.scannotation.AnnotationDB class</title><link href="https://sourceforge.net/p/scannotation/bugs/1/" rel="alternate"/><published>2008-03-22T10:49:51Z</published><updated>2008-03-22T10:49:51Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net589cd21d24aabd835b5fd0603799022cdcc45f59</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In "addIgnoredPackages(String... ignored)" method of "org.scannotation.AnnotationDB" class, isn't something like "this.ignoredPackages = tmp;" missing (line 89)?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>