Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1fd8b1

Browse files
aslakhellesoybrasmusson
authored andcommitted
Attribution. Closes cucumber#912, closes cucumber#914.
1 parent 4d914ac commit c1fd8b1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

History.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## [1.2.5-SNAPSHOT](https://github.com/cucumber/cucumber-jvm/compare/v1.2.4...master) (In Git)
22

3+
* [Java8] Fix IllegalArgumentException on JDK 1.8.0_60 ([#912](https://github.com/cucumber/cucumber-jvm/issues/912), [#914](https://github.com/cucumber/cucumber-jvm/pull/914) Michael Wilkerson)
34
* [Core] Double-check for directory exists in the ensureParentDirExists(File) ([#978](https://github.com/cucumber/cucumber-jvm/pull/978) Pavel Ordenko)
45
* [picocontainer] Picocontainer lifecycle support([#994](https://github.com/cucumber/cucumber-jvm/pull/994), [#993](https://github.com/cucumber/cucumber-jvm/issues/993), [#992](https://github.com/cucumber/cucumber-jvm/pull/992) Richard Bradley)
56
* [Core] Specifying plugins on the command line via `--plugin` clobbers settings in the code ([#860](https://github.com/cucumber/cucumber-jvm/pull/860) Björn Rasmusson)

java8/src/main/java/cucumber/runtime/java8/ConstantPoolTypeIntrospector.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import java.lang.reflect.Method;
88
import java.lang.reflect.Type;
9-
import java.util.List;
109

1110
public class ConstantPoolTypeIntrospector implements TypeIntrospector {
1211
private static final Method Class_getConstantPool;
@@ -44,13 +43,12 @@ private String getTypeString(ConstantPool constantPool) {
4443
for (int i = size - 1; i > -1; i--) {
4544
try {
4645
memberRef = constantPool.getMemberRefInfoAt(i);
47-
break;
46+
return memberRef[2];
4847
} catch (IllegalArgumentException e) {
4948
// eat error; null entry at ConstantPool index?
5049
}
5150
}
52-
53-
return memberRef[2];
51+
throw new CucumberException("Couldn't find memberRef.");
5452
}
5553

5654
}

0 commit comments

Comments
 (0)