[jbosstools-issues] [JBoss JIRA] (ERT-193) TypeHierarchy.getSuperclass() returns null [EBZ#493474]

Friendly Jira Robot (JIRA) issues at jboss.org
Wed May 11 22:26:00 EDT 2016


Friendly Jira Robot created ERT-193:
---------------------------------------

             Summary: TypeHierarchy.getSuperclass() returns null [EBZ#493474]
                 Key: ERT-193
                 URL: https://issues.jboss.org/browse/ERT-193
             Project: Eclipse Release Train
          Issue Type: Task
          Components: JSDT
            Reporter: Friendly Jira Robot


Moving from org.eclipse.wst.jsdt.core_1.3.401 to org.eclipse.wst.jsdt.core_2.0.0, TypeHierarchy.getSuperclass() returns null now.

Here my usage code snippet

...
String[] baseTypeNames = new String[]{"dijit._WidgetBase", "dijit._Widget"}; //$NON-NLS-1$ //$NON-NLS-2$
SubMonitor sub = SubMonitor.convert(monitor, baseTypeNames.length);
for (String baseTypeName : baseTypeNames) {
        SubMonitor typeMonitor = sub.newChild(1);
        IType[] baseTypes = jsproject.findTypes(baseTypeName);
        ITypeHierarchy hierarchy = baseTypes[0].newTypeHierarchy(jsproject, typeMonitor);
        IType type = hierarchy.getSuperclass(baseTypes[0]);
        //type.... ->NPE
...
}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list