8

My specific question is: do compilers inline the Static Final Interface code within other compiled methods? I've been out of the loop for a while on this type of optimization, and wanted to know if this is still performed.

Lukas Bradley
  • 410
  • 3
  • 10

1 Answers1

1

javac will not inline anything - it does very little optimization anyway. The JIT might inline that indeed, depending on the fact if that method is hot enough and can be inlined and no threshold has been reached.

Eugene
  • 117,005
  • 15
  • 201
  • 306