@@ -434,46 +434,6 @@ private static synchronized void initialize(TypeDataBase db) {
434
434
}
435
435
}
436
436
437
- // refer to compute_modifier_flags in VM code.
438
- public long computeModifierFlags () {
439
- long access = getAccessFlags ();
440
- // But check if it happens to be member class.
441
- U2Array innerClassList = getInnerClasses ();
442
- int length = (innerClassList == null )? 0 : innerClassList .length ();
443
- if (length > 0 ) {
444
- if (Assert .ASSERTS_ENABLED ) {
445
- Assert .that (length % InnerClassAttributeOffset .innerClassNextOffset == 0 ||
446
- length % InnerClassAttributeOffset .innerClassNextOffset == EnclosingMethodAttributeOffset .enclosingMethodAttributeSize ,
447
- "just checking" );
448
- }
449
- for (int i = 0 ; i < length ; i += InnerClassAttributeOffset .innerClassNextOffset ) {
450
- if (i == length - EnclosingMethodAttributeOffset .enclosingMethodAttributeSize ) {
451
- break ;
452
- }
453
- int ioff = innerClassList .at (i +
454
- InnerClassAttributeOffset .innerClassInnerClassInfoOffset );
455
- // 'ioff' can be zero.
456
- // refer to JVM spec. section 4.7.5.
457
- if (ioff != 0 ) {
458
- // only look at classes that are already loaded
459
- // since we are looking for the flags for our self.
460
- Symbol name = getConstants ().getKlassNameAt (ioff );
461
-
462
- if (name .equals (getName ())) {
463
- // This is really a member class
464
- access = innerClassList .at (i +
465
- InnerClassAttributeOffset .innerClassAccessFlagsOffset );
466
- break ;
467
- }
468
- }
469
- } // for inner classes
470
- }
471
-
472
- // Remember to strip ACC_SUPER bit
473
- return (access & (~JVM_ACC_SUPER )) & JVM_ACC_WRITTEN_FLAGS ;
474
- }
475
-
476
-
477
437
// whether given Symbol is name of an inner/nested Klass of this Klass?
478
438
// anonymous and local classes are excluded.
479
439
public boolean isInnerClassName (Symbol sym ) {
0 commit comments