JDK-8191032 : compiler fails with java.lang.AssertionError: typeSig ERROR
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8u144
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_oracle_6.0
  • CPU: x86_64
  • Submitted: 2017-11-06
  • Updated: 2017-11-09
  • Resolved: 2017-11-09
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java -version
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-b01)
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
uname -a
Linux jobsub 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 10:49:01 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
When compiling a java package i am getting the following error. Although this error is similar to the following error it is happening in openjdk 1.8 Oracle linux  6.5. 

Please look at  steps to reproduce and  error message for the full details. 

    

REGRESSION.  Last worked in version 8u141

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The error occured while i was trying to compile a java package after logging the following message it errored out

[javac] Note: Writing META-INF/services/org.kohsuke.args4j.spi.OptionHandler



ERROR MESSAGES/STACK TRACES THAT OCCUR :
[javac] Note: Writing META-INF/services/org.kohsuke.args4j.spi.OptionHandler
[javac] An exception has occurred in the compiler (1.8.0_144). 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.
    [javac] java.lang.AssertionError: typeSig ERROR
    [javac] 	at com.sun.tools.javac.code.Types$SignatureGenerator.assembleSig(Types.java:4796)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter$CWSignatureGenerator.assembleSig(ClassWriter.java:299)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.typeSig(ClassWriter.java:342)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.writeCompoundAttribute(ClassWriter.java:891)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.writeJavaAnnotations(ClassWriter.java:759)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.writeMemberAttrs(ClassWriter.java:628)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.writeMethod(ClassWriter.java:1133)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.writeMethods(ClassWriter.java:1603)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1693)
    [javac] 	at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1621)
    [javac] 	at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:746)
    [javac] 	at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1572)
    [javac] 	at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1536)
    [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:498)
    [javac] 	at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:58)
    [javac] 	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1395)
    [javac] 	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1121)
    [javac] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    [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:498)
    [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:1405)
    [javac] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
    [javac] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [javac] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    [javac] 	at org.apache.tools.ant.Main.runBuild(Main.java:857)
    [javac] 	at org.apache.tools.ant.Main.startAnt(Main.java:236)
    [javac] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
    [javac] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)

BUILD FAILED





REPRODUCIBILITY :
This bug can be reproduced always.


Comments
This is an duplicate issue of JDK-8132535 which is already fixed in JDK 9. Closing as duplicate issue.
09-11-2017