8076344: serviceability/dcmd/vm/SetVMFlagTest.java test fails with "java.lang.Error: 'MaxHeapSize' flag is not available or immutable"
Reviewed-by: sla
8076236: VM permits illegal flags for class init method
Summary: Move check for multiple access flags so that it also covers instance initialization methods
Reviewed-by: ctornqvi, lfoltan