File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ crate::classes::field_module! {
7171 ///
7272 /// Expected type: char
7373 @FIELD modifiers: FieldType :: Character ,
74+ /// `java.lang.Class#classFileAccessFlags` field offset
75+ ///
76+ /// Expected type: char
77+ @FIELD classFileAccessFlags: FieldType :: Character ,
7478 /// `java.lang.Class#primitive` field offset
7579 ///
7680 /// Expected type: boolean
Original file line number Diff line number Diff line change @@ -592,10 +592,3 @@ pub fn getClassFileVersion0(
592592) -> jint {
593593 unimplemented ! ( "Class#getClassFileVersion0" ) ;
594594}
595-
596- pub fn getClassAccessFlagsRaw0 (
597- _env : JniEnv ,
598- _this : Reference , // java.lang.Class
599- ) -> jint {
600- unimplemented ! ( "Class#getClassAccessFlagsRaw0" ) ;
601- }
Original file line number Diff line number Diff line change @@ -66,6 +66,4 @@ public class Class {
6666 private native Class<?>[] getPermittedSubclasses0();
6767
6868 private native int getClassFileVersion0();
69-
70- private native int getClassAccessFlagsRaw0();
7169}
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ impl MirrorInstanceRef {
7575 classes:: java:: lang:: Class :: modifiers_field_index ( ) ,
7676 Operand :: Int ( jint:: from ( modifiers) ) ,
7777 ) ;
78+ ret. put_field_value0 (
79+ classes:: java:: lang:: Class :: classFileAccessFlags_field_index ( ) ,
80+ Operand :: Int ( jint:: from ( target_class. access_flags . as_u2 ( ) ) ) ,
81+ ) ;
7882 ret. put_field_value0 (
7983 classes:: java:: lang:: Class :: primitive_field_index ( ) ,
8084 Operand :: Int ( jint:: from ( is_primitive) ) ,
Original file line number Diff line number Diff line change @@ -411,6 +411,7 @@ vm_symbols::define_symbols! {
411411 parameterTypes,
412412 exceptionTypes,
413413 modifiers,
414+ classFileAccessFlags,
414415 trustedFinal,
415416 signature,
416417 annotations,
You can’t perform that action at this time.
0 commit comments