< prev index next >

src/jdk.rmic/share/classes/sun/tools/javac/SourceMember.java

Print this page




 377         if (abstractSource == null)
 378             return super.getDefiningClassDeclaration();
 379         else
 380             return abstractSource.getDefiningClassDeclaration();
 381     }
 382 
 383     /**
 384      * A source field never reports deprecation, since the compiler
 385      * allows access to deprecated features that are being compiled
 386      * in the same job.
 387      */
 388     public boolean reportDeprecated(Environment env) {
 389         return false;
 390     }
 391 
 392     /**
 393      * Check this field.
 394      * <p>
 395      * This is the method which requests checking.
 396      * The real work is done by
 397      * <tt>Vset check(Environment, Context, Vset)</tt>.
 398      */
 399     public void check(Environment env) throws ClassNotFound {
 400         if (tracing) env.dtEnter("SourceMember.check: " +
 401                                  getName() + ", status = " + status);
 402         // rely on the class to check all fields in the proper order
 403         if (status == PARSED) {
 404             if (isSynthetic() && getValue() == null) {
 405                 // break a big cycle for small synthetic variables
 406                 status = CHECKED;
 407                 if (tracing)
 408                     env.dtExit("SourceMember.check: BREAKING CYCLE");
 409                 return;
 410             }
 411             if (tracing) env.dtEvent("SourceMember.check: CHECKING CLASS");
 412             clazz.check(env);
 413             if (status == PARSED) {
 414                 if (getClassDefinition().getError()) {
 415                     status = ERROR;
 416                 } else {
 417                     if (tracing)




 377         if (abstractSource == null)
 378             return super.getDefiningClassDeclaration();
 379         else
 380             return abstractSource.getDefiningClassDeclaration();
 381     }
 382 
 383     /**
 384      * A source field never reports deprecation, since the compiler
 385      * allows access to deprecated features that are being compiled
 386      * in the same job.
 387      */
 388     public boolean reportDeprecated(Environment env) {
 389         return false;
 390     }
 391 
 392     /**
 393      * Check this field.
 394      * <p>
 395      * This is the method which requests checking.
 396      * The real work is done by
 397      * {@code Vset check(Environment, Context, Vset)}.
 398      */
 399     public void check(Environment env) throws ClassNotFound {
 400         if (tracing) env.dtEnter("SourceMember.check: " +
 401                                  getName() + ", status = " + status);
 402         // rely on the class to check all fields in the proper order
 403         if (status == PARSED) {
 404             if (isSynthetic() && getValue() == null) {
 405                 // break a big cycle for small synthetic variables
 406                 status = CHECKED;
 407                 if (tracing)
 408                     env.dtExit("SourceMember.check: BREAKING CYCLE");
 409                 return;
 410             }
 411             if (tracing) env.dtEvent("SourceMember.check: CHECKING CLASS");
 412             clazz.check(env);
 413             if (status == PARSED) {
 414                 if (getClassDefinition().getError()) {
 415                     status = ERROR;
 416                 } else {
 417                     if (tracing)


< prev index next >