[code-reflection] RFR: Bitwise complement op
    Adam Sotona 
    asotona at openjdk.org
       
    Thu Aug 15 17:22:02 UTC 2024
    
    
  
On Thu, 15 Aug 2024 16:46:57 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/reflect/code/bytecode/BytecodeGenerator.java line 586:
>> 
>>> 584:                         processFirstOperand(op);
>>> 585:                         switch (rvt) {
>>> 586:                             case IntType, BooleanType, ByteType, ShortType, CharType -> {
>> 
>> Do we intend to support boolean even though JLS doesn't allow complement `~` on boolean values?
>
> I observed that too, but decided to copy the same pattern as used else where. @asotona will know more.
Well, JVMS doesn't make a difference anyway, so why not?
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/216#discussion_r1718740057
    
    
More information about the babylon-dev
mailing list