Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jamie Mansfield
asm
Commits
7ca1b9eb
Commit
7ca1b9eb
authored
Mar 28, 2006
by
ekuleshov
Browse files
fixed issue with SourceDebugExtension attribute
parent
837657f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/objectweb/asm/ClassWriter.java
View file @
7ca1b9eb
...
...
@@ -556,8 +556,7 @@ public class ClassWriter implements ClassVisitor {
sourceFile
=
newUTF8
(
file
);
}
if
(
debug
!=
null
)
{
sourceDebug
=
new
ByteVector
();
sourceDebug
.
putUTF8
(
debug
);
sourceDebug
=
new
ByteVector
().
putUTF8
(
debug
);
}
}
...
...
@@ -676,7 +675,7 @@ public class ClassWriter implements ClassVisitor {
}
if
(
sourceDebug
!=
null
)
{
++
attributeCount
;
size
+=
sourceDebug
.
length
;
size
+=
sourceDebug
.
length
+
4
;
newUTF8
(
"SourceDebugExtension"
);
}
if
(
enclosingMethodOwner
!=
0
)
{
...
...
@@ -758,9 +757,9 @@ public class ClassWriter implements ClassVisitor {
out
.
putShort
(
newUTF8
(
"SourceFile"
)).
putInt
(
2
).
putShort
(
sourceFile
);
}
if
(
sourceDebug
!=
null
)
{
int
len
=
sourceDebug
.
length
;
int
len
=
sourceDebug
.
length
-
2
;
out
.
putShort
(
newUTF8
(
"SourceDebugExtension"
)).
putInt
(
len
);
out
.
putByteArray
(
sourceDebug
.
data
,
0
,
len
);
out
.
putByteArray
(
sourceDebug
.
data
,
2
,
len
);
}
if
(
enclosingMethodOwner
!=
0
)
{
out
.
putShort
(
newUTF8
(
"EnclosingMethod"
)).
putInt
(
4
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment