This is an automated email from the ASF dual-hosted git repository.

sdedic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new e64c8de  [NETBEANS-5638] Insane should ignore stub classes in 
traversal.
     new 4fd403d  Merge pull request #2923 from sdedic/sdedic/insane-securityex
e64c8de is described below

commit e64c8de432ab7c367cfca6e548a508cbe0f83cd5
Author: Svata Dedic <svatopluk.de...@oracle.com>
AuthorDate: Thu Apr 29 13:38:25 2021 +0200

    [NETBEANS-5638] Insane should ignore stub classes in traversal.
---
 .../src/org/netbeans/insane/impl/InsaneEngine.java           | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/harness/o.n.insane/src/org/netbeans/insane/impl/InsaneEngine.java 
b/harness/o.n.insane/src/org/netbeans/insane/impl/InsaneEngine.java
index e1a1b5b..8b9fd36 100644
--- a/harness/o.n.insane/src/org/netbeans/insane/impl/InsaneEngine.java
+++ b/harness/o.n.insane/src/org/netbeans/insane/impl/InsaneEngine.java
@@ -83,7 +83,17 @@ public final class InsaneEngine {
         
         // dispatch the recognition
         if (o instanceof Class) {
-            recognizeClass((Class)o);
+            try {
+                recognizeClass((Class)o);
+            } catch (SecurityException ex) {
+                if (ex.getMessage() == null || 
!ex.getMessage().contains("java.lang")) {
+                    throw ex;
+                }
+                // just report: possibly an upwards-compatible method 
+                // not linkable on current runtime.
+                System.err.println("Failed analysing class " + 
((Class)o).getName() +
+                        " because of " + ex.getMessage());
+            }
         } else {
             recognizeObject(o);
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to