- 
    Type:
Bug
 - 
    Resolution: Fixed
 - 
    Priority:
  P4                     
     - 
    Affects Version/s: 21, 23, 24
 - 
    Component/s: core-libs
 
- 
        b08
 
                    Only zero values of stable fields are not constant-folded and can be used as the "unset" value. However, LambdaForm$Name.index uses -1 as the unset value, which can be constant-folded. The index field should store the actual arg index with an offset of 1 to leave the 0 value, and the access should all happen through the getter. Discovered in JDK-8333791.
            
- links to
 - 
                    
        
        Commit(master)
        openjdk/jdk/aabec4a9
    
 - 
                    
        
        Review(master)
        openjdk/jdk/20178