You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by sd...@apache.org on 2021/05/04 06:55:02 UTC
[netbeans] branch master updated: [NETBEANS-5638] Insane should
ignore stub classes in traversal.
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 <sv...@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists