jdk/src/share/classes/sun/nio/ch/Util.java
changeset 10419 12c063b39232
parent 10137 d92637d3d673
child 10882 7ddadf2b8b4c
equal deleted inserted replaced
10418:1d57022fdb6e 10419:12c063b39232
   371                         directByteBufferConstructor = ctor;
   371                         directByteBufferConstructor = ctor;
   372                     } catch (ClassNotFoundException   |
   372                     } catch (ClassNotFoundException   |
   373                              NoSuchMethodException    |
   373                              NoSuchMethodException    |
   374                              IllegalArgumentException |
   374                              IllegalArgumentException |
   375                              ClassCastException x) {
   375                              ClassCastException x) {
   376                         throw new InternalError();
   376                         throw new InternalError(x);
   377                     }
   377                     }
   378                     return null;
   378                     return null;
   379                 }});
   379                 }});
   380     }
   380     }
   381 
   381 
   393                              fd,
   393                              fd,
   394                              unmapper });
   394                              unmapper });
   395         } catch (InstantiationException |
   395         } catch (InstantiationException |
   396                  IllegalAccessException |
   396                  IllegalAccessException |
   397                  InvocationTargetException e) {
   397                  InvocationTargetException e) {
   398             throw new InternalError();
   398             throw new InternalError(e);
   399         }
   399         }
   400         return dbb;
   400         return dbb;
   401     }
   401     }
   402 
   402 
   403     private static volatile Constructor<?> directByteBufferRConstructor = null;
   403     private static volatile Constructor<?> directByteBufferRConstructor = null;
   416                         directByteBufferRConstructor = ctor;
   416                         directByteBufferRConstructor = ctor;
   417                     } catch (ClassNotFoundException |
   417                     } catch (ClassNotFoundException |
   418                              NoSuchMethodException |
   418                              NoSuchMethodException |
   419                              IllegalArgumentException |
   419                              IllegalArgumentException |
   420                              ClassCastException x) {
   420                              ClassCastException x) {
   421                         throw new InternalError();
   421                         throw new InternalError(x);
   422                     }
   422                     }
   423                     return null;
   423                     return null;
   424                 }});
   424                 }});
   425     }
   425     }
   426 
   426 
   438                              fd,
   438                              fd,
   439                              unmapper });
   439                              unmapper });
   440         } catch (InstantiationException |
   440         } catch (InstantiationException |
   441                  IllegalAccessException |
   441                  IllegalAccessException |
   442                  InvocationTargetException e) {
   442                  InvocationTargetException e) {
   443             throw new InternalError();
   443             throw new InternalError(e);
   444         }
   444         }
   445         return dbb;
   445         return dbb;
   446     }
   446     }
   447 
   447 
   448 
   448