eclipse why cannot set breakpoint in static block code -


maven project have dependency jar -- log4j-1.2.14.jar,

<dependency>         <groupid>log4j</groupid>         <artifactid>log4j</artifactid>         <version>1.2.14</version> </dependency> 

when executes junit test have below error info

java.io.filenotfoundexception: /users/foo/documents/logs/info.log (no such file or directory) ... @ org.apache.log4j.logmanager.<clinit>(logmanager.java:122) @ org.apache.log4j.logger.getlogger(logger.java:104) ... 

i'd set breakpoint in logmanager.java 122 line, cannot. enter image description here

it strange , set breakpoint in other part of same class. found 122 line in static block code.

static {...} 

it seems if line in static block code , cannot enable breakpoint here.

so why this?


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -