Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8248829

NullPointerException compiliing an unknown class

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      A DESCRIPTION OF THE PROBLEM :
      An exception has occurred in the compiler (1.8.0_251). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.NullPointerException
      at com.sun.tools.javac.code.Types.removeWildcards(Types.java:601)
      at com.sun.tools.javac.code.Types$DescriptorCache$FunctionDescriptor.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$CheckStuckPolicy.visitReference(DeferredAttr.java:1017)
      at com.sun.tools.javac.comp.DeferredAttr$OverloadStuckPolicy.visitReference(DeferredAttr.java:1088)
      at com.sun.tools.javac.tree.JCTree$JCMemberReference.accept(JCTree.java:1973)
      at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
      at com.sun.tools.javac.comp.DeferredAttr$FilterScanner.scan(DeferredAttr.java:913)
      at com.sun.tools.javac.comp.DeferredAttr$CheckStuckPolicy.<init>(DeferredAttr.java:980)
      at com.sun.tools.javac.comp.DeferredAttr$OverloadStuckPolicy.<init>(DeferredAttr.java:1075)
      at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:229)
      at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:1008)
      at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:835)
      at com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.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.doLookup(Resolve.java:2436)
      at com.sun.tools.javac.comp.Resolve$BasicLookupHelper.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$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$JCMethodInvocation.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:625)
      at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1593)
      at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296)
      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$JCBlock.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.visitIf(Attr.java:1582)
      at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1269)
      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$JCBlock.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.visitIf(Attr.java:1582)
      at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1269)
      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$JCBlock.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$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$JCBlock.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.visitIf(Attr.java:1584)
      at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1269)
      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$JCBlock.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.execute(MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
      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:305)
      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:957)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
      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)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
      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 com.intellij.rt.execution.application.AppMainV2.main(AppMainV2.java:128)



      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              adev ANUPAM DEV
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: