JDK BUG
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.removeWildcards(Types.java:601)
at com.sun.tools.javac.code.Types
D
e
s
c
r
i
p
t
o
r
C
a
c
h
e
DescriptorCache
DescriptorCacheFunctionDescriptor.getType(Types.java:362)
at com.sun.tools.javac.code.Types.findDescriptorType(Types.java:568)
at com.sun.tools.javac.code.Types.isFunctionalInterface(Types.java:585)
at com.sun.tools.javac.comp.DeferredAttr
C
h
e
c
k
S
t
u
c
k
P
o
l
i
c
y
.
v
i
s
i
t
L
a
m
b
d
a
(
D
e
f
e
r
r
e
d
A
t
t
r
.
j
a
v
a
:
997
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
D
e
f
e
r
r
e
d
A
t
t
r
CheckStuckPolicy.visitLambda(DeferredAttr.java:997) at com.sun.tools.javac.comp.DeferredAttr
CheckStuckPolicy.visitLambda(DeferredAttr.java:997)atcom.sun.tools.javac.comp.DeferredAttrOverloadStuckPolicy.visitLambda(DeferredAttr.java:1080)
at com.sun.tools.javac.tree.JCTree
J
C
L
a
m
b
d
a
.
a
c
c
e
p
t
(
J
C
T
r
e
e
.
j
a
v
a
:
1624
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
t
r
e
e
.
T
r
e
e
S
c
a
n
n
e
r
.
s
c
a
n
(
T
r
e
e
S
c
a
n
n
e
r
.
j
a
v
a
:
49
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
D
e
f
e
r
r
e
d
A
t
t
r
JCLambda.accept(JCTree.java:1624) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.DeferredAttr
JCLambda.accept(JCTree.java:1624)atcom.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)atcom.sun.tools.javac.comp.DeferredAttrFilterScanner.scan(DeferredAttr.java:913)
at com.sun.tools.javac.comp.DeferredAttr
C
h
e
c
k
S
t
u
c
k
P
o
l
i
c
y
.
<
i
n
i
t
>
(
D
e
f
e
r
r
e
d
A
t
t
r
.
j
a
v
a
:
980
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
D
e
f
e
r
r
e
d
A
t
t
r
CheckStuckPolicy.<init>(DeferredAttr.java:980) at com.sun.tools.javac.comp.DeferredAttr
CheckStuckPolicy.<init>(DeferredAttr.java:980)atcom.sun.tools.javac.comp.DeferredAttrOverloadStuckPolicy.(DeferredAttr.java:1075)
at com.sun.tools.javac.comp.DeferredAttr
D
e
f
e
r
r
e
d
T
y
p
e
.
c
h
e
c
k
(
D
e
f
e
r
r
e
d
A
t
t
r
.
j
a
v
a
:
229
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
R
e
s
o
l
v
e
DeferredType.check(DeferredAttr.java:229) at com.sun.tools.javac.comp.Resolve
DeferredType.check(DeferredAttr.java:229)atcom.sun.tools.javac.comp.ResolveMethodResultInfo.check(Resolve.java:1008)
at com.sun.tools.javac.comp.Resolve
4.
c
h
e
c
k
A
r
g
(
R
e
s
o
l
v
e
.
j
a
v
a
:
835
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
R
e
s
o
l
v
e
4.checkArg(Resolve.java:835) at com.sun.tools.javac.comp.Resolve
4.checkArg(Resolve.java:835)atcom.sun.tools.javac.comp.ResolveAbstractMethodCheck.argumentsAcceptable(Resolve.java:735)
at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:844)
at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:579)
at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1446)
at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1633)
at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1704)
at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1677)
at com.sun.tools.javac.comp.Resolve
9.
d
o
L
o
o
k
u
p
(
R
e
s
o
l
v
e
.
j
a
v
a
:
2436
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
R
e
s
o
l
v
e
9.doLookup(Resolve.java:2436) at com.sun.tools.javac.comp.Resolve
9.doLookup(Resolve.java:2436)atcom.sun.tools.javac.comp.ResolveBasicLookupHelper.lookup(Resolve.java:3097)
at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3348)
at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2433)
at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2427)
at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3396)
at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3278)
at com.sun.tools.javac.tree.JCTree
J
C
F
i
e
l
d
A
c
c
e
s
s
.
a
c
c
e
p
t
(
J
C
T
r
e
e
.
j
a
v
a
:
1897
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
T
r
e
e
(
A
t
t
r
.
j
a
v
a
:
576
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
v
i
s
i
t
A
p
p
l
y
(
A
t
t
r
.
j
a
v
a
:
1825
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
t
r
e
e
.
J
C
T
r
e
e
JCFieldAccess.accept(JCTree.java:1897) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1825) at com.sun.tools.javac.tree.JCTree
JCFieldAccess.accept(JCTree.java:1897)atcom.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)atcom.sun.tools.javac.comp.Attr.visitApply(Attr.java:1825)atcom.sun.tools.javac.tree.JCTreeJCMethodInvocation.accept(JCTree.java:1465)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)
at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:618)
at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1075)
at com.sun.tools.javac.tree.JCTree
J
C
V
a
r
i
a
b
l
e
D
e
c
l
.
a
c
c
e
p
t
(
J
C
T
r
e
e
.
j
a
v
a
:
852
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
T
r
e
e
(
A
t
t
r
.
j
a
v
a
:
576
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
S
t
a
t
(
A
t
t
r
.
j
a
v
a
:
645
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
S
t
a
t
s
(
A
t
t
r
.
j
a
v
a
:
661
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
v
i
s
i
t
B
l
o
c
k
(
A
t
t
r
.
j
a
v
a
:
1124
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
t
r
e
e
.
J
C
T
r
e
e
JCVariableDecl.accept(JCTree.java:852) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:645) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:661) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1124) at com.sun.tools.javac.tree.JCTree
JCVariableDecl.accept(JCTree.java:852)atcom.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)atcom.sun.tools.javac.comp.Attr.attribStat(Attr.java:645)atcom.sun.tools.javac.comp.Attr.attribStats(Attr.java:661)atcom.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1124)atcom.sun.tools.javac.tree.JCTreeJCBlock.accept(JCTree.java:909)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)
at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:645)
at com.sun.tools.javac.comp.Attr.visitForeachLoop(Attr.java:1189)
at com.sun.tools.javac.tree.JCTree
J
C
E
n
h
a
n
c
e
d
F
o
r
L
o
o
p
.
a
c
c
e
p
t
(
J
C
T
r
e
e
.
j
a
v
a
:
1035
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
T
r
e
e
(
A
t
t
r
.
j
a
v
a
:
576
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
S
t
a
t
(
A
t
t
r
.
j
a
v
a
:
645
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
S
t
a
t
s
(
A
t
t
r
.
j
a
v
a
:
661
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
v
i
s
i
t
B
l
o
c
k
(
A
t
t
r
.
j
a
v
a
:
1124
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
t
r
e
e
.
J
C
T
r
e
e
JCEnhancedForLoop.accept(JCTree.java:1035) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:645) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:661) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1124) at com.sun.tools.javac.tree.JCTree
JCEnhancedForLoop.accept(JCTree.java:1035)atcom.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)atcom.sun.tools.javac.comp.Attr.attribStat(Attr.java:645)atcom.sun.tools.javac.comp.Attr.attribStats(Attr.java:661)atcom.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1124)atcom.sun.tools.javac.tree.JCTreeJCBlock.accept(JCTree.java:909)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)
at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:645)
at com.sun.tools.javac.comp.Attr.visitTry(Attr.java:1354)
at com.sun.tools.javac.tree.JCTree
J
C
T
r
y
.
a
c
c
e
p
t
(
J
C
T
r
e
e
.
j
a
v
a
:
1173
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
T
r
e
e
(
A
t
t
r
.
j
a
v
a
:
576
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
S
t
a
t
(
A
t
t
r
.
j
a
v
a
:
645
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
a
t
t
r
i
b
S
t
a
t
s
(
A
t
t
r
.
j
a
v
a
:
661
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
c
o
m
p
.
A
t
t
r
.
v
i
s
i
t
B
l
o
c
k
(
A
t
t
r
.
j
a
v
a
:
1124
)
a
t
c
o
m
.
s
u
n
.
t
o
o
l
s
.
j
a
v
a
c
.
t
r
e
e
.
J
C
T
r
e
e
JCTry.accept(JCTree.java:1173) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:645) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:661) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1124) at com.sun.tools.javac.tree.JCTree
JCTry.accept(JCTree.java:1173)atcom.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)atcom.sun.tools.javac.comp.Attr.attribStat(Attr.java:645)atcom.sun.tools.javac.comp.Attr.attribStats(Attr.java:661)atcom.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1124)atcom.sun.tools.javac.tree.JCTreeJCBlock.accept(JCTree.java:909)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)
at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:645)
at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1013)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576)
at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:645)
at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4364)
at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4272)
at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4201)
at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4176)
at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248)
at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
at com.sun.tools.javac.main.Main.compile(Main.java:523)
at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174)
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1134)
at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:187)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
检查一下lamdal 表达式
解决:
https://bugs.openjdk.org/browse/JDK-8210487?jql=text%20~%20%22removeWildcards%22
https://bugs.openjdk.org/browse/JDK-8044546