< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TypeEnter.java

Print this page

        

@@ -912,10 +912,12 @@
                         }
                         thrown = superConstrType.getThrownTypes();
                     }
                 }
                 if (addConstructor) {
+                    // Lint check here
+                    chk.checkDefaultConstructor(sym);
                     MethodSymbol basedConstructor = nc != null ?
                             (MethodSymbol)nc.constructor : null;
                     JCTree constrDef = DefaultConstructor(make.at(tree.pos), sym,
                                                         basedConstructor,
                                                         typarams, argtypes, thrown,
< prev index next >