Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tao chen
asm
Commits
fc93bd35
Commit
fc93bd35
authored
May 18, 2021
by
Сергей Цыпанов
Browse files
Merge branch 'upstream_master'
parents
c7ba3763
85d788f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fc93bd35
...
...
@@ -18,4 +18,4 @@ build:
-
$GRADLE test jacocoTestCoverageVerification
-
if [ $NEXUS_USER_NAME ]; then $GRADLE publish; fi
-
if [ !$NEXUS_USER_NAME ]; then $GRADLE publishToMavenLocal; fi
-
'
$GRADLE
jacocoTestReport
sonarqube
-Dsonar.host.url=$SONAR'
-
'
$GRADLE
jacocoTestReport
sonarqube
-Dsonar.host.url=$SONAR
-Dsonar.login=${SONAR_LOGIN}
'
asm-util/src/main/java/org/objectweb/asm/util/CheckClassAdapter.java
View file @
fc93bd35
...
...
@@ -1114,7 +1114,11 @@ public class CheckClassAdapter extends ClassVisitor {
if
(
name
.
charAt
(
endIndex
-
1
)
==
';'
)
{
endIndex
--;
}
return
name
.
substring
(
lastSlashIndex
+
1
,
endIndex
);
int
lastBracketIndex
=
name
.
lastIndexOf
(
'['
);
if
(
lastBracketIndex
==
-
1
)
{
return
name
.
substring
(
lastSlashIndex
+
1
,
endIndex
);
}
return
name
.
substring
(
0
,
lastBracketIndex
+
1
)
+
name
.
substring
(
lastSlashIndex
+
1
,
endIndex
);
}
}
}
asm-util/src/test/java/org/objectweb/asm/util/CheckClassAdapterTest.java
View file @
fc93bd35
...
...
@@ -549,6 +549,7 @@ public class CheckClassAdapterTest extends AsmTest implements Opcodes {
String
log
=
logger
.
toString
();
assertFalse
(
log
.
startsWith
(
AnalyzerException
.
class
.
getName
()
+
": Error at instruction"
));
assertTrue
(
log
.
contains
(
"00000 CheckClassAdapterTest : : ALOAD 0"
));
assertTrue
(
log
.
contains
(
"00001 CheckClassAdapterTest [Object : [Object : ARETURN"
));
}
@Test
...
...
@@ -578,4 +579,8 @@ public class CheckClassAdapterTest extends AsmTest implements Opcodes {
private
static
Attribute
[]
attributes
()
{
return
new
Attribute
[]
{
new
Comment
(),
new
CodeComment
()};
}
Object
methodWithObjectArrayArgument
(
final
Object
[]
arg
)
{
return
arg
;
}
}
build.gradle
View file @
fc93bd35
...
...
@@ -209,7 +209,7 @@ subprojects {
// and uploaded to Maven with a POM, sources and Javadoc.
configure
(
subprojects
.
findAll
{
it
.
provides
})
{
// Code coverage configuration.
jacoco
.
toolVersion
=
'0.8.
6
'
jacoco
.
toolVersion
=
'0.8.
7
'
jacocoTestReport
{
reports
{
xml
.
enabled
true
}
classDirectories
.
setFrom
(
sourceSets
.
main
.
output
.
classesDirs
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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