[hg] main-silver: Issue #240206 - NoSuchMethodException: com.atl...

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: Issue #240206 - NoSuchMethodException: com.atl...
  • Date: Fri, 10 Jan 2014 21:52:36 +0000

changeset acf9b4dc0d0a in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/acf9b4dc0d0a
description:
        Issue #240206 - NoSuchMethodException: 
com.atlassian.connector.eclipse.internal.jira.core.model.filter.FilterDefinition.setAssignedToFilter
 [interface org.netbeans.modules.jira.client.spi.UserFilter]

diffstat:

 jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java |  
13 +++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (30 lines):

diff --git 
a/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java 
b/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java
--- a/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java
+++ b/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java
@@ -291,7 +291,7 @@
                             boolean allTypes = true;
                             for (int i = 0; i < pts.length; i++) {
                                 Class<?> pt = pts[i];
-                                if(args[i] != null && 
!pt.getSimpleName().equals(args[i].getClass().getSimpleName())) {
+                                if(args[i] != null && !sameTypeName(pt, 
args[i].getClass())) {
                                     // XXX hack!!! we kind of relly on the 
type names being unique over all packages
                                     allTypes = false;
                                     break;
@@ -325,6 +325,17 @@
             }
         }
 
+        public boolean sameTypeName(Class<?> c1, Class<?> c2) {
+            if(c1.getSimpleName().equals(c2.getSimpleName())) {
+                return true;
+            }
+            c2 = c2.getSuperclass();
+            if(c2 == Object.class) {
+                return false;
+            }
+            return sameTypeName(c1, c2);
+        }
+
         private Object toDelegate(Object obj) {
             if(obj instanceof Proxy) {
                 return getDelegate((Proxy) obj);

[hg] main-silver: Issue #240206 - NoSuchMethodException: com.atl...

Tomas Stupka 01/10/2014

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 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