title: eclipse why cannot set breakpoint in static block code
body: <p>Maven project have a dependency jar -- <code>log4j-1.2.14.jar</code>,</p>
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;1.2.14&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>when executes junit test have below error info</p>
  <pre><code>java.io.FileNotFoundException: /Users/foo/Documents/logs/info.log (No such file or directory)
  ...
  at org.apache.log4j.LogManager.&lt;clinit&gt;(LogManager.java:122)
  at org.apache.log4j.Logger.getLogger(Logger.java:104)
  ...
  </code></pre>
  <p>I'd like to set breakpoint in <code>LogManager.java</code> 122 line, but it cannot.
  <a href="https://i.stack.imgur.com/yAU2q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yAU2q.png" alt="enter image description here" /></a></p>
  <p>It is strange that , I could successfully set a breakpoint in other part of the same class. Then I found 122 line is in a static block code.</p>
  <pre><code>static {...}
  </code></pre>
  <p>It seems if a line in static block code , it cannot enable breakpoint here.</p>
  <p>So why is this?</p>