In our product there are a few jdk 1.6.0._17 compiled java source files. They are not giving the line numbers whenever there is an exception in any one of them.
I used javap to find out more about the jdk 1.6.0._17 compiled classes. javap output doesn't have any LineNumberTable which is reason why line numbers are not displayed in the exception stacktrace.
My question: My javac command doesn't use any flags related to debug(like -g:lines,vars,source). So the class file should atleast contain the source & line number information by default. Am not disabling generation of debug info by using -g:none either.
So what could be other reasons for which the LineNumberTable is not getting generated in the .class file?
Any help regarding this is greatly appreciated.
Regards, VK