nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/TypeConverterFactory.java
changeset 33333 0bad500ce4e0
parent 33330 35531ae624ef
child 33335 a46c85103868
equal deleted inserted replaced
33332:f180be6368d8 33333:0bad500ce4e0
   380         for(int i = factories.length; i-- > 0;) {
   380         for(int i = factories.length; i-- > 0;) {
   381             final GuardedTypeConversion next = factories[i].convertToType(sourceType, targetType);
   381             final GuardedTypeConversion next = factories[i].convertToType(sourceType, targetType);
   382             if(next != null) {
   382             if(next != null) {
   383                 cacheable = cacheable && next.isCacheable();
   383                 cacheable = cacheable && next.isCacheable();
   384                 final GuardedInvocation conversionInvocation = next.getConversionInvocation();
   384                 final GuardedInvocation conversionInvocation = next.getConversionInvocation();
   385                 conversionInvocation.assertType(type);
       
   386                 last = conversionInvocation.compose(last);
   385                 last = conversionInvocation.compose(last);
   387             }
   386             }
   388         }
   387         }
   389         if(last == identity) {
   388         if(last == identity) {
   390             return IDENTITY_CONVERSION;
   389             return IDENTITY_CONVERSION;