In some languages, you can get the row column number on the stack, but in Java we only have row numbers.
To give you an example, in another language we can:
Error at <anonymous>:2:2 at Object.InjectedScript._evaluateOn (<anonymous>:641:39) at Object.InjectedScript._evaluateAndWrap (<anonymous>:580:52) at Object.InjectedScript.evaluate (<anonymous>:495:21)"
Although this may not be a good example, as I am causing an error from the browser console, you can see the column numbers that are really useful in resolving errors.
To give you an example in Java (yes, the names have been changed):
Caused by: java.lang.IllegalArgumentException: path was null at org.jboss.resteasy.specimpl.ResteasyUriBuilder.path(ResteasyUriBuilder.java:362) at enterprise.money.service(AbstractSomething.java:88)
This results in line 88 containing
URI uri = uriInfo.getBaseUriBuilder().path(objectA).path(objectB).build();
Using stacktrace I have, I cannot check which .path call raised an exception. So my question is: are there any solutions allowing me to get a link to a column?
(To protect ourselves from possible alternative answers, we need a solution to get the column numbers, other answers, for example, how to get through the debugger or refactoring each builder template, etc., will not answer the question)
source share