Don't attempt to display source if no line number
-------------------------------------------------
Key: TAPESTRY-372
URL: http://issues.apache.org/jira/browse/TAPESTRY-372
Project: Tapestry
Type: Bug
Components: Framework
Versions: 4.0
Reporter: Howard M. Lewis Ship
Priority: Minor
Fix For: 4.0
With the trickiness of annotation locations (which can't identify a line
number), we can have locations for errors that don't have line numbers. The
RenderableAdaptor for Location should be aware of this.
Here's an example, caused by "breaking" an @Asset annotation.
org.apache.hivemind.ApplicationRuntimeException
Unable to locate asset 'images/xtab-active-left.gif' relative to context:/.
location: Annotation
@org.apache.tapestry.annotations.Asset(value=images/xtab-active-left.gif) of
public abstract org.apache.tapestry.IAsset
org.apache.tapestry.workbench.components.Border.getActiveLeft()
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright 2004, 2005 The Apache Software Foundation
4
5 Licensed under the Apache License, Version 2.0 (the "License");
Stack Trace:
*
org.apache.tapestry.asset.ContextAssetFactory.createAsset(ContextAssetFactory.java:52)
* $AssetFactory_104d9c08195.createAsset($AssetFactory_104d9c08195.java)
* $AssetFactory_104d9c08194.createAsset($AssetFactory_104d9c08194.java)
* $AssetFactory_104d9c0819a.createAsset($AssetFactory_104d9c0819a.java)
* $AssetFactory_104d9c08090.createAsset($AssetFactory_104d9c08090.java)
* $AssetFactory_104d9c0808f.createAsset($AssetFactory_104d9c0808f.java)
*
org.apache.tapestry.asset.AssetSourceImpl.findAsset(AssetSourceImpl.java:65)
* $AssetSource_104d9c0812f.findAsset($AssetSource_104d9c0812f.java)
* $AssetSource_104d9c0812e.findAsset($AssetSource_104d9c0812e.java)
* org.apache.tapestry.pageload.PageLoader.convertAsset(PageLoader.java:719)
* org.apache.tapestry.pageload.PageLoader.addAssets(PageLoader.java:703)
*
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:468)
*
org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.ja
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]