[hg] main-silver: all bootclasspath packages need to be exclude...

  • From: Milos Kleint < >
  • To: ,
  • Subject: [hg] main-silver: all bootclasspath packages need to be exclude...
  • Date: Fri, 01 Feb 2013 13:38:03 -0800

changeset 2719208009d4 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/2719208009d4
description:
        all bootclasspath packages need to be  excluded from result, 
otherwise yet more false positives appear

diffstat:

 
maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
 |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (20 lines):

diff --git 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
--- 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenWhiteListQueryImpl.java
@@ -280,6 +280,16 @@
             }
         }
         
+        //now remove all packages from bootclasspath that clash with 
private/transitive packages..
+        // happens for javax.swing for example which is part of the 
tabcontrol module
+        ClassPath boot = 
project.getLookup().lookup(ProjectSourcesClassPathProvider.class).getProjectSourcesClassPath(ClassPath.BOOT);
+        Set<String> bootCP = new HashSet<String>();
+        for (FileObject fo : boot.getRoots()) {
+            bootCP.addAll(getAllPackages(fo));
+        }
+        transitivePackages.removeAll(bootCP);
+        privatePackages.removeAll(bootCP);
+        
         //remove all duplicates. only keep the privates we are 100% positive 
about..
         transitivePackages.removeAll(nonTransitivePackages);
         privatePackages.removeAll(nonPrivatePackages);

[hg] main-silver: all bootclasspath packages need to be exclude...

Milos Kleint 02/01/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close