File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
processors/src/main/java/com/axellience/vuegwt/processors/utils Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -185,12 +185,14 @@ public static boolean isMethodVisibleInJS(ExecutableElement method) {
185185 * Optional}
186186 */
187187 public static Optional <TypeElement > getSuperComponentType (TypeElement component ) {
188- // If super type is vue component, don't return it
189- if (TypeName .get (Object .class ).equals (TypeName .get (component .getSuperclass ()))) {
188+ // If super type is Object or "none" ignore it
189+ TypeMirror mirror = component .getSuperclass ();
190+ if ( mirror .getKind () == TypeKind .NONE
191+ || TypeName .get (Object .class ).equals (TypeName .get (mirror ))) {
190192 return Optional .empty ();
191193 }
192194
193- return Optional .of ((TypeElement ) ((DeclaredType ) component . getSuperclass () ).asElement ());
195+ return Optional .of ((TypeElement ) ((DeclaredType ) mirror ).asElement ());
194196 }
195197
196198 /**
You can’t perform that action at this time.
0 commit comments