Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v7]

2024-11-13 Thread Maurizio Cimadamore
On Wed, 13 Nov 2024 15:31:59 GMT, Vicente Romero wrote: >> Javac is not issuing a mandated unchecked cast warning for code like: >> >> >> import java.lang.invoke.VarHandle; >> >> class VarHandleCast { >> VarHandle vh; >> V method(Object obj) { >> return (V)vh.getAndSet(this,

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v7]

2024-11-13 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v6]

2024-11-13 Thread Maurizio Cimadamore
On Tue, 12 Nov 2024 16:15:31 GMT, Vicente Romero wrote: >> Javac is not issuing a mandated unchecked cast warning for code like: >> >> >> import java.lang.invoke.VarHandle; >> >> class VarHandleCast { >> VarHandle vh; >> V method(Object obj) { >> return (V)vh.getAndSet(this,

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v6]

2024-11-12 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v5]

2024-11-12 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v4]

2024-11-12 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v3]

2024-11-07 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v2]

2024-11-07 Thread Maurizio Cimadamore
On Wed, 6 Nov 2024 20:08:54 GMT, Vicente Romero wrote: >> Javac is not issuing a mandated unchecked cast warning for code like: >> >> >> import java.lang.invoke.VarHandle; >> >> class VarHandleCast { >> VarHandle vh; >> V method(Object obj) { >> return (V)vh.getAndSet(this,

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v2]

2024-11-07 Thread Vicente Romero
On Thu, 7 Nov 2024 13:59:03 GMT, Maurizio Cimadamore wrote: > Changes look good. The extra suppress warnings seem to indicate that the > logic is now working as intended :-) thanks for the review. As suggested above I created a CSR, could you please review it too? Thanks! - PR C

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call

2024-11-06 Thread Joe Darcy
On Tue, 5 Nov 2024 19:51:04 GMT, Vicente Romero wrote: > Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); >

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v2]

2024-11-06 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

RFR: 8343286: Missing unchecked cast warning in polymorphic method call

2024-11-05 Thread Vicente Romero
Javac is not issuing a mandated unchecked cast warning for code like: import java.lang.invoke.VarHandle; class VarHandleCast { VarHandle vh; V method(Object obj) { return (V)vh.getAndSet(this, obj); } } according to the spec the return type inferred for this method poly