JDK-8079813 : AssertionError during compilation
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8u31
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2015-04-09
  • Updated: 2015-06-16
  • Resolved: 2015-06-16
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]

A DESCRIPTION OF THE PROBLEM :
Executing the following command:

call "C:\opt\apache-ant-1.9.4\\bin\ant.bat" -f "C:\espace\HubServer\compiler\JavaVersion\build.xml" || (del "C:\espace\HubServer\compiler\compiler.javadeps.cache" & exit /B 1)
Buildfile: C:\espace\HubServer\compiler\JavaVersion\build.xml

Get the following error:

compile:
    [javac] Compiling 1280 source files to C:\espace\HubServer\compiler\JavaVersion\bin
    [javac] An exception has occurred in the compiler (1.8.0_31). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
    [javac] java.lang.AssertionError: isSubClass FieldType
    [javac]     at com.sun.tools.javac.code.Symbol.isSubClass(Symbol.java:447)
    [javac]     at com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:456)
    [javac]     at com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:1469)
    [javac]     at com.sun.tools.javac.code.Types$ImplementationCache.implementationInternal(Types.java:2671)
    [javac]     at com.sun.tools.javac.code.Types$ImplementationCache.get(Types.java:2653)
    [javac]     at com.sun.tools.javac.code.Types.implementation(Types.java:2682)
    [javac]     at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1529)
    [javac]     at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1518)
    [javac]     at com.sun.tools.javac.comp.Resolve.notOverriddenIn(Resolve.java:416)
    [javac]     at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:402)
    [javac]     at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:362)
    [javac]     at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1448)
    [javac]     at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1618)
    [javac]     at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1710)
    [javac]     at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1662)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker$2.lookup(DeferredAttr.java:1325)
    [javac]     at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3325)
    [javac]     at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3310)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.quicklyResolveMethod(DeferredAttr.java:1333)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.visitApply(DeferredAttr.java:1223)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    [javac]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$FilterScanner.scan(DeferredAttr.java:901)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr.isDeferred(DeferredAttr.java:1088)
    [javac]     at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:701)
    [javac]     at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1834)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:649)
    [javac]     at com.sun.tools.javac.comp.Attr.visitAssign(Attr.java:3000)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1686)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:656)
    [javac]     at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1611)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
    [javac]     at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.visitIf(Attr.java:1600)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1269)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
    [javac]     at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1035)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181)
    [javac]     at com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:892)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:693)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181)
    [javac]     at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4156)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:523)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:381)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:370)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:361)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:56)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:483)
    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1159)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:935)
    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    [javac]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:483)
    [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:435)
    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:456)
    [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    [javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:851)
    [javac]     at org.apache.tools.ant.Main.startAnt(Main.java:235)
    [javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    [javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

BUILD FAILED

ACTUAL -
        call "C:\opt\apache-ant-1.9.4\\bin\ant.bat" -f "C:\espace\HubServer\compiler\JavaVersion\build.xml" || (del "C:\espace\HubServer\compiler\compiler.javadeps.cache" & exit /B 1)
Buildfile: C:\espace\HubServer\compiler\JavaVersion\build.xml

clean:
   [delete] Deleting directory C:\espace\HubServer\compiler\JavaVersion\bin
   [delete] Deleting directory C:\espace\HubServer\compiler\JavaVersion\dist

init-custom-build-properties:

init:
    [mkdir] Created dir: C:\espace\HubServer\compiler\JavaVersion\bin
    [mkdir] Created dir: C:\espace\HubServer\compiler\JavaVersion\dist

compile:
    [javac] Compiling 1280 source files to C:\espace\HubServer\compiler\JavaVersion\bin
    [javac] An exception has occurred in the compiler (1.8.0_31). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
    [javac] java.lang.AssertionError: isSubClass FieldType
    [javac]     at com.sun.tools.javac.code.Symbol.isSubClass(Symbol.java:447)
    [javac]     at com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:456)
    [javac]     at com.sun.tools.javac.code.Symbol$MethodSymbol.overrides(Symbol.java:1469)
    [javac]     at com.sun.tools.javac.code.Types$ImplementationCache.implementationInternal(Types.java:2671)
    [javac]     at com.sun.tools.javac.code.Types$ImplementationCache.get(Types.java:2653)
    [javac]     at com.sun.tools.javac.code.Types.implementation(Types.java:2682)
    [javac]     at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1529)
    [javac]     at com.sun.tools.javac.code.Symbol$MethodSymbol.implementation(Symbol.java:1518)
    [javac]     at com.sun.tools.javac.comp.Resolve.notOverriddenIn(Resolve.java:416)
    [javac]     at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:402)
    [javac]     at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:362)
    [javac]     at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1448)
    [javac]     at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1618)
    [javac]     at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1710)
    [javac]     at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1662)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker$2.lookup(DeferredAttr.java:1325)
    [javac]     at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3325)
    [javac]     at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3310)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.quicklyResolveMethod(DeferredAttr.java:1333)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$DeferredChecker.visitApply(DeferredAttr.java:1223)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    [javac]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr$FilterScanner.scan(DeferredAttr.java:901)
    [javac]     at com.sun.tools.javac.comp.DeferredAttr.isDeferred(DeferredAttr.java:1088)
    [javac]     at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:701)
    [javac]     at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1834)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:649)
    [javac]     at com.sun.tools.javac.comp.Attr.visitAssign(Attr.java:3000)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1686)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:656)
    [javac]     at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1611)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
    [javac]     at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.visitIf(Attr.java:1600)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1269)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
    [javac]     at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1035)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181)
    [javac]     at com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:892)
    [javac]     at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:693)
    [javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
    [javac]     at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252)
    [javac]     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181)
    [javac]     at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4156)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:523)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:381)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:370)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:361)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:56)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:483)
    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1159)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:935)
    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    [javac]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:483)
    [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:435)
    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:456)
    [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    [javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:851)
    [javac]     at org.apache.tools.ant.Main.startAnt(Main.java:235)
    [javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    [javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

BUILD FAILED
C:\espace\HubServer\compiler\JavaVersion\build.xml:8: Compile failed; see the compiler error output for details.

Total time: 10 seconds
NMAKE : fatal error U1077: 'call' : return code '0x1'
Stop.

REPRODUCIBILITY :
This bug can be reproduced always.


Comments
Closing this as a duplicate of JDK-8071425 with fix in JDK 8u40. Also, no further response/confirmation from the submitter is received.
16-06-2015

This looks like a duplicate of JDK-8071425 with a fix in JDK 8u40. I have written email to the submitter requesting confirmation about the same. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Hi ......, The bug reported by you is likely fixed with JDK 8u40. Can you please check this with latest JDK version 8u40 and confirm back if you are still able to reproduce this issue. Thank You, ........... ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10-04-2015