You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2009/01/12 18:10:05 UTC
[jira] Created: (SLING-825) impossible to debug servlet code due to
incorrect sourceFile atribute of generated class file
impossible to debug servlet code due to incorrect sourceFile atribute of generated class file
---------------------------------------------------------------------------------------------
Key: SLING-825
URL: https://issues.apache.org/jira/browse/SLING-825
Project: Sling
Issue Type: Bug
Components: Scripting Java
Reporter: Stefan Guggisberg
assume the following servlet source file in content:
/apps/foo/bar.png.java
this resource declares the java class "bar_png.java" in the package "foo".
the resulting class file's sourceFile attribute returns ".foo.bar_png.java",
i.e. it is prefixed by a dot and the package. furthermore all but the last
dot in the resource name are replaced by underscores.
in order for java debuggers being able to debug such classes the sourceFile
attribute should just return the name of the compilation unit, i.e. "bar.png.java".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SLING-825) impossible to debug servlet code due
to incorrect sourceFile atribute of generated class file
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665051#action_12665051 ]
Carsten Ziegeler commented on SLING-825:
----------------------------------------
Hi Stefan,
I've committed a patch in revision: 735621, could you please test this?
> impossible to debug servlet code due to incorrect sourceFile atribute of generated class file
> ---------------------------------------------------------------------------------------------
>
> Key: SLING-825
> URL: https://issues.apache.org/jira/browse/SLING-825
> Project: Sling
> Issue Type: Bug
> Components: Scripting Java
> Reporter: Stefan Guggisberg
> Assignee: Carsten Ziegeler
> Fix For: Scripting Java 2.0.0
>
>
> assume the following servlet source file in content:
> /apps/foo/bar.png.java
> this resource declares the java class "bar_png.java" in the package "foo".
> the resulting class file's sourceFile attribute returns ".foo.bar_png.java",
> i.e. it is prefixed by a dot and the package. furthermore all but the last
> dot in the resource name are replaced by underscores.
> in order for java debuggers being able to debug such classes the sourceFile
> attribute should just return the name of the compilation unit, i.e. "bar.png.java".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (SLING-825) impossible to debug servlet code due to
incorrect sourceFile atribute of generated class file
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed SLING-825.
----------------------------------
Resolution: Fixed
Stefan confirmed that the patch works.
> impossible to debug servlet code due to incorrect sourceFile atribute of generated class file
> ---------------------------------------------------------------------------------------------
>
> Key: SLING-825
> URL: https://issues.apache.org/jira/browse/SLING-825
> Project: Sling
> Issue Type: Bug
> Components: Scripting Java
> Reporter: Stefan Guggisberg
> Assignee: Carsten Ziegeler
> Fix For: Scripting Java 2.0.0
>
>
> assume the following servlet source file in content:
> /apps/foo/bar.png.java
> this resource declares the java class "bar_png.java" in the package "foo".
> the resulting class file's sourceFile attribute returns ".foo.bar_png.java",
> i.e. it is prefixed by a dot and the package. furthermore all but the last
> dot in the resource name are replaced by underscores.
> in order for java debuggers being able to debug such classes the sourceFile
> attribute should just return the name of the compilation unit, i.e. "bar.png.java".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-825) impossible to debug servlet code due to
incorrect sourceFile atribute of generated class file
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated SLING-825:
-----------------------------------
Fix Version/s: Scripting Java 2.0.0
Assignee: Carsten Ziegeler
> impossible to debug servlet code due to incorrect sourceFile atribute of generated class file
> ---------------------------------------------------------------------------------------------
>
> Key: SLING-825
> URL: https://issues.apache.org/jira/browse/SLING-825
> Project: Sling
> Issue Type: Bug
> Components: Scripting Java
> Reporter: Stefan Guggisberg
> Assignee: Carsten Ziegeler
> Fix For: Scripting Java 2.0.0
>
>
> assume the following servlet source file in content:
> /apps/foo/bar.png.java
> this resource declares the java class "bar_png.java" in the package "foo".
> the resulting class file's sourceFile attribute returns ".foo.bar_png.java",
> i.e. it is prefixed by a dot and the package. furthermore all but the last
> dot in the resource name are replaced by underscores.
> in order for java debuggers being able to debug such classes the sourceFile
> attribute should just return the name of the compilation unit, i.e. "bar.png.java".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.