- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
  P4                     
     - 
    repo-valhalla
 
                    javac should issue an error for code like:
import jdk.internal.vm.annotation.NullRestricted;
import jdk.internal.vm.annotation.Strict;
class StrictNR {
static value class IValue {
int i = 0;
}
@Strict
@NullRestricted
IValue val;// = new IValue(); // no initialization
public static void main(String[] args) {
StrictNR s = new StrictNR();
}
}
as this code won't pass the verifier check
import jdk.internal.vm.annotation.NullRestricted;
import jdk.internal.vm.annotation.Strict;
class StrictNR {
static value class IValue {
int i = 0;
}
@Strict
@NullRestricted
IValue val;// = new IValue(); // no initialization
public static void main(String[] args) {
StrictNR s = new StrictNR();
}
}
as this code won't pass the verifier check
- relates to
 - 
                    
JDK-8352068 [lworld] test StrictFinalInstanceFieldsTest.java needs to be updated after fix for JDK-8351951
-         
     - Resolved
 
 -         
 
- links to
 - 
                    
        
        Commit(lworld)
        openjdk/valhalla/6488ace9
    
 - 
                    
        
        Review(lworld)
        openjdk/valhalla/1398