511 } |
511 } |
512 // If there are class initializers, create a <clinit> method |
512 // If there are class initializers, create a <clinit> method |
513 // that contains them as its body. |
513 // that contains them as its body. |
514 if (clinitCode.length() != 0) { |
514 if (clinitCode.length() != 0) { |
515 MethodSymbol clinit = new MethodSymbol( |
515 MethodSymbol clinit = new MethodSymbol( |
516 STATIC, names.clinit, |
516 STATIC | (c.flags() & STRICTFP), |
|
517 names.clinit, |
517 new MethodType( |
518 new MethodType( |
518 List.<Type>nil(), syms.voidType, |
519 List.<Type>nil(), syms.voidType, |
519 List.<Type>nil(), syms.methodClass), |
520 List.<Type>nil(), syms.methodClass), |
520 c); |
521 c); |
521 c.members().enter(clinit); |
522 c.members().enter(clinit); |