< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotModifiers.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.
--- 1,7 ---
  /*
!  * Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 30,10 ***
--- 30,11 ---
  import static java.lang.reflect.Modifier.PROTECTED;
  import static java.lang.reflect.Modifier.PUBLIC;
  import static java.lang.reflect.Modifier.STATIC;
  import static java.lang.reflect.Modifier.STRICT;
  import static java.lang.reflect.Modifier.SYNCHRONIZED;
+ import static java.lang.reflect.Modifier.PERMITS_VALUE;
  import static java.lang.reflect.Modifier.TRANSIENT;
  import static java.lang.reflect.Modifier.VOLATILE;
  import static jdk.vm.ci.hotspot.HotSpotVMConfig.config;
  
  import java.lang.reflect.Modifier;

*** 51,11 ***
      public static final int BRIDGE     = config().jvmAccBridge;
      public static final int SYNTHETIC  = config().jvmAccSynthetic;
      // @formatter:on
  
      public static int jvmClassModifiers() {
!         return PUBLIC | FINAL | INTERFACE | ABSTRACT | ANNOTATION | ENUM | SYNTHETIC;
      }
  
      public static int jvmMethodModifiers() {
          return PUBLIC | PRIVATE | PROTECTED | STATIC | FINAL | SYNCHRONIZED | BRIDGE | VARARGS | NATIVE | ABSTRACT | STRICT | SYNTHETIC;
      }
--- 52,11 ---
      public static final int BRIDGE     = config().jvmAccBridge;
      public static final int SYNTHETIC  = config().jvmAccSynthetic;
      // @formatter:on
  
      public static int jvmClassModifiers() {
!         return PUBLIC | FINAL | INTERFACE | ABSTRACT | ANNOTATION | ENUM | SYNTHETIC | PERMITS_VALUE;
      }
  
      public static int jvmMethodModifiers() {
          return PUBLIC | PRIVATE | PROTECTED | STATIC | FINAL | SYNCHRONIZED | BRIDGE | VARARGS | NATIVE | ABSTRACT | STRICT | SYNTHETIC;
      }
< prev index next >