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

Commit

Permalink
Support JDK11
Browse files Browse the repository at this point in the history
Fixes #12.
  • Loading branch information
rschmitt committed Aug 10, 2019
1 parent e590a7a commit 1ff1b14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
13 changes: 3 additions & 10 deletions lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,15 @@
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- 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>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>5.0.3</version>
<version>7.1</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<artifactId>mockito-core</artifactId>
<version>2.7.9</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 1ff1b14

Please sign in to comment.