Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Support JDK9
Browse files Browse the repository at this point in the history
Fixes #12.
  • Loading branch information
rschmitt committed Sep 30, 2017
1 parent 60f46a0 commit dc8f860
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jmh-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ THE POSSIBILITY OF SUCH DAMAGE.

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jmh.version>1.6.1</jmh.version>
<jmh.version>1.19</jmh.version>
<javac.target>1.8</javac.target>
<uberjar.name>benchmarks</uberjar.name>
</properties>
Expand Down
10 changes: 5 additions & 5 deletions lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>3.0.0-M1</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -136,18 +136,18 @@
<!-- Pull in asm-util and etc for tests and ad-hoc debugging convenience -->
<groupId>org.ow2.asm</groupId>
<artifactId>asm-all</artifactId>
<version>5.0.3</version>
<version>6.0_BETA</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>5.0.3</version>
<version>6.0_BETA</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<artifactId>mockito-core</artifactId>
<version>2.10.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,11 @@ private static void emitMethod(
int access = ACC_PROTECTED;
ConcreteMethodTracker concreteMethodTracker = new ConcreteMethodTracker();

boolean isInterface = true;
for (Method m : contributors) {
concreteMethodTracker.add(m);

isInterface &= m.getDeclaringClass().isInterface();
if (Modifier.PUBLIC == (m.getModifiers() & Modifier.PUBLIC)) {
access = ACC_PUBLIC;
}
Expand Down Expand Up @@ -472,7 +474,8 @@ private static void emitMethod(
H_INVOKESPECIAL,
Type.getInternalName(superMethod.getDeclaringClass()),
superMethod.getName(),
Type.getMethodDescriptor(superMethod)
Type.getMethodDescriptor(superMethod),
isInterface
);
}

Expand Down

0 comments on commit dc8f860

Please sign in to comment.