Skip to content

Commit

Permalink
local patch for Java 10/11 support (ASM is way too slow)
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Mar 4, 2018
1 parent 8685ca8 commit c698e64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org.jacoco.build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<argLine>${jvm.args}</argLine>

<!-- Dependencies versions -->
<asm.version>6.0</asm.version>
<asm.version>6.1-beta2</asm.version>
<ant.version>1.7.1</ant.version>
<args4j.version>2.0.28</args4j.version>
<junit.version>4.8.2</junit.version>
Expand Down Expand Up @@ -666,7 +666,7 @@
</Export-Package>
<Import-Package>
org.jacoco.*;version="${range;[===,==+);${Bundle-Version}}",
org.objectweb.asm.*;version="${range;[===,=+);${asm.version}}"
org.objectweb.asm.*;version="${range;[===,=+);6.1}"
</Import-Package>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
<Eclipse-SourceReferences>scm:git:git://github.com/jacoco/jacoco.git;path="${project.artifactId}";commitId=${buildNumber}</Eclipse-SourceReferences>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public class ContentTypeDetector {

private final int type;

private static final int V11 = 0 << 16 | 55;

/**
* Creates a new detector based on the given input. To process the complete
* original input afterwards use the stream returned by
Expand Down Expand Up @@ -83,6 +85,8 @@ private static int determineType(final InputStream in) throws IOException {
case Opcodes.V1_7:
case Opcodes.V1_8:
case Opcodes.V9:
case Opcodes.V10:
case V11:
return CLASSFILE;
}
}
Expand Down

0 comments on commit c698e64

Please sign in to comment.