[jdk18] RFR: 8278373: JavacTypes.searchMethod finds incorrect match

2022-01-04 Thread Jan Lahoda
Currently, when javac encounters a javadoc reference, like `@see PrintStream#println(int)`, will first try to find a method `println` in `PrintStream` using subtyping on the argument types, which may find another overload of the method with an argument that is a subtype of `int` - like `println

Re: [jdk18] RFR: 8278373: JavacTypes.searchMethod finds incorrect match

2022-01-04 Thread Vicente Romero
On Tue, 4 Jan 2022 17:19:44 GMT, Jan Lahoda wrote: > Currently, when javac encounters a javadoc reference, like `@see > PrintStream#println(int)`, will first try to find a method `println` in > `PrintStream` using subtyping on the argument types, which may find another > overload of the method

Re: [jdk18] RFR: 8278373: JavacTypes.searchMethod finds incorrect match

2022-01-04 Thread Jonathan Gibbons
On Tue, 4 Jan 2022 17:19:44 GMT, Jan Lahoda wrote: > Currently, when javac encounters a javadoc reference, like `@see > PrintStream#println(int)`, will first try to find a method `println` in > `PrintStream` using subtyping on the argument types, which may find another > overload of the method

Re: [jdk18] RFR: 8278373: JavacTypes.searchMethod finds incorrect match

2022-01-04 Thread Jonathan Gibbons
On Tue, 4 Jan 2022 17:19:44 GMT, Jan Lahoda wrote: > Currently, when javac encounters a javadoc reference, like `@see > PrintStream#println(int)`, will first try to find a method `println` in > `PrintStream` using subtyping on the argument types, which may find another > overload of the method