src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54846 e4049522b074
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
  2061             return v.visitMethodSymbol(this, p);
  2061             return v.visitMethodSymbol(this, p);
  2062         }
  2062         }
  2063 
  2063 
  2064         @DefinedBy(Api.LANGUAGE_MODEL)
  2064         @DefinedBy(Api.LANGUAGE_MODEL)
  2065         public Type getReceiverType() {
  2065         public Type getReceiverType() {
  2066             return asType().getReceiverType();
  2066             Type result = asType().getReceiverType();
       
  2067             return (result == null) ? Type.noType : result;
  2067         }
  2068         }
  2068 
  2069 
  2069         @DefinedBy(Api.LANGUAGE_MODEL)
  2070         @DefinedBy(Api.LANGUAGE_MODEL)
  2070         public Type getReturnType() {
  2071         public Type getReturnType() {
  2071             return asType().getReturnType();
  2072             return asType().getReturnType();
  2342         }
  2343         }
  2343     }
  2344     }
  2344 
  2345 
  2345     public static class CompletionFailure extends RuntimeException {
  2346     public static class CompletionFailure extends RuntimeException {
  2346         private static final long serialVersionUID = 0;
  2347         private static final long serialVersionUID = 0;
  2347         public final DeferredCompletionFailureHandler dcfh;
  2348         public final transient DeferredCompletionFailureHandler dcfh;
  2348         public Symbol sym;
  2349         public transient Symbol sym;
  2349 
  2350 
  2350         /** A diagnostic object describing the failure
  2351         /** A diagnostic object describing the failure
  2351          */
  2352          */
  2352         private JCDiagnostic diag;
  2353         private transient JCDiagnostic diag;
  2353 
  2354 
  2354         private Supplier<JCDiagnostic> diagSupplier;
  2355         private transient Supplier<JCDiagnostic> diagSupplier;
  2355 
  2356 
  2356         public CompletionFailure(Symbol sym, Supplier<JCDiagnostic> diagSupplier, DeferredCompletionFailureHandler dcfh) {
  2357         public CompletionFailure(Symbol sym, Supplier<JCDiagnostic> diagSupplier, DeferredCompletionFailureHandler dcfh) {
  2357             this.dcfh = dcfh;
  2358             this.dcfh = dcfh;
  2358             this.sym = sym;
  2359             this.sym = sym;
  2359             this.diagSupplier = diagSupplier;
  2360             this.diagSupplier = diagSupplier;