src/share/classes/com/sun/tools/javac/jvm/Gen.java

changeset 1555
762d0af062f5
parent 1521
71f35e4b93a5
child 1670
29c6984a1673
equal deleted inserted replaced
1554:5125b9854d07 1555:762d0af062f5
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);

mercurial