oxsean opened a new pull request, #13791:
URL: https://github.com/apache/dubbo/pull/13791

   ## What is the purpose of the change
   Fix compilation error of: no suitable method found for 
loadAs(String,Class<CAP#1>)
   ```
   [ERROR] 
dubbo\dubbo-remoting\dubbo-remoting-http12\src\main\java\org\apache\dubbo\remoting\http12\message\codec\YamlCodec.java:[64,41]
 error: no suitable method found for loadAs(String,Class<CAP#1>)
   [ERROR]     method Yaml.<T#1>loadAs(Reader,Class<? super T#1>) is not 
applicable
   [ERROR]       (cannot infer type-variable(s) T#1
   [ERROR]         (argument mismatch; String cannot be converted to Reader))
   [ERROR]     method Yaml.<T#2>loadAs(String,Class<? super T#2>) is not 
applicable
   [ERROR]       (cannot infer type-variable(s) T#2
   [ERROR]         (argument mismatch; Class<CAP#1> cannot be converted to 
Class<? super T#2>))
   [ERROR]     method Yaml.<T#3>loadAs(InputStream,Class<? super T#3>) is not 
applicable
   [ERROR]       (cannot infer type-variable(s) T#3
   [ERROR]         (argument mismatch; String cannot be converted to 
InputStream))
   [ERROR]   where T#1,T#2,T#3 are type-variables:
   [ERROR]     T#1 extends Object declared in method <T#1>loadAs(Reader,Class<? 
super T#1>)
   [ERROR]     T#2 extends Object declared in method <T#2>loadAs(String,Class<? 
super T#2>)
   [ERROR]     T#3 extends Object declared in method 
<T#3>loadAs(InputStream,Class<? super T#3>)
   [ERROR]   where CAP#1 is a fresh type-variable:
   [ERROR]     CAP#1 extends Object from capture of ?
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to