Change By: Ondrej Zizka (13/Jul/13 12:53 AM)
Description: IDE's generally support automatic links  made  of  stacktraces  stacktrace elements (click brings user to the source) .

This can be leveraged when reporting an  error in  unsatisfied dependency related to a  known  class  place in code .

For example this

{code}
Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [EmfProperties] with qualifiers [@QEmfProperties] at injection point [[field] @QEmfProperties @Inject private org.jboss.weld.environment.se.jpa.EntityManagerStoreImpl.emfProperties]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
{code}


could be improved to


{code}
WELD-001408 Unsatisfied dependencies for type 
    [EmfProperties] with qualifiers [@QEmfProperties] at injection point:
        at org.jboss.weld.environment.se.jpa.EntityManagerStoreImpl(EntityManagerStoreImpl:1)
    [field] @QEmfProperties @Inject private org.jboss.weld.environment.se.jpa.EntityManagerStoreImpl.emfProperties
Stacktrace:
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
{code}

Still better to have a file link without a line number than nothing.
But even the number could be obtained from class data. I assume there are not much performance requirements on Exceptions construction - what's important is to bring maximum usefulness for debugging.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to