[
https://issues.jboss.org/browse/JASSIST-245?page=com.atlassian.jira.plugi...
]
David Carr updated JASSIST-245:
-------------------------------
Steps to Reproduce:
To reproduce, put the javassist JAR and DescribingHandlers.java
(
https://gist.github.com/davidmc24/17e120b67ce35831a07a) in a directory and run the
following command:
{code}javac -Werror -Xlint:classfile -classpath javassist-3.19.0-GA.jar
DescribingHandlers.java{code}
You should get something like the following output:
{code}
javassist-3.19.0-GA.jar(javassist/ClassPool.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/CtBehavior.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/CtClass.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/NotFoundException.class): warning: [classfile]
MethodParameters attribute introduced in version 52.0 class files is ignored in version
50.0 class files
javassist-3.19.0-GA.jar(javassist/bytecode/ClassFile.class): warning: [classfile]
MethodParameters attribute introduced in version 52.0 class files is ignored in version
50.0 class files
error: warnings found and -Werror specified
javassist-3.19.0-GA.jar(javassist/CtMember.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/bytecode/MethodInfo.class): warning: [classfile]
MethodParameters attribute introduced in version 52.0 class files is ignored in version
50.0 class files
1 error
7 warnings
{code}
was:
To reproduce, put the javassist JAR the attached DescribingHandlers.java file in a
directory and run the following command:
{code}javac -Werror -Xlint:classfile -classpath javassist-3.19.0-GA.jar
DescribingHandlers.java{code}
You should get something like the following output:
{code}
javassist-3.19.0-GA.jar(javassist/ClassPool.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/CtBehavior.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/CtClass.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/NotFoundException.class): warning: [classfile]
MethodParameters attribute introduced in version 52.0 class files is ignored in version
50.0 class files
javassist-3.19.0-GA.jar(javassist/bytecode/ClassFile.class): warning: [classfile]
MethodParameters attribute introduced in version 52.0 class files is ignored in version
50.0 class files
error: warnings found and -Werror specified
javassist-3.19.0-GA.jar(javassist/CtMember.class): warning: [classfile] MethodParameters
attribute introduced in version 52.0 class files is ignored in version 50.0 class files
javassist-3.19.0-GA.jar(javassist/bytecode/MethodInfo.class): warning: [classfile]
MethodParameters attribute introduced in version 52.0 class files is ignored in version
50.0 class files
1 error
7 warnings
{code}
Javassist 3.19.0-GA causes compilation warnings with
-Xlint:classfile
---------------------------------------------------------------------
Key: JASSIST-245
URL:
https://issues.jboss.org/browse/JASSIST-245
Project: Javassist
Issue Type: Bug
Affects Versions: 3.19.0-GA
Reporter: David Carr
Assignee: Shigeru Chiba
Tested using Oracle Java 1.8.0_40.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)