Commit 59f37b82 authored by Eric Bruneton's avatar Eric Bruneton

Fix the sigtest task.

The signature test was not working without the rt.jar on the classpath (no error was reported for incompatible API changes). Adding it solves this issue, and also removes the warnings about the @Deprecated annotations. I also had to manually fix the asm-xml signature files (for some unknown reason the inner ASMContentHandler$Rule class was recorded as public, whereas it has always been protected).
parent 3f8159e0
......@@ -311,7 +311,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -311,7 +311,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -311,7 +311,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -322,7 +322,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -322,7 +322,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -322,7 +322,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -322,7 +322,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -322,7 +322,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -322,7 +322,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -322,7 +322,7 @@ meth public final void startElement(java.lang.String,java.lang.String,java.lang.
supr org.xml.sax.helpers.DefaultHandler
hfds BASE,OPCODES,RULES,TYPES,match,stack
CLSS public abstract org.objectweb.asm.xml.ASMContentHandler$Rule
CLSS protected abstract org.objectweb.asm.xml.ASMContentHandler$Rule
cons protected init(org.objectweb.asm.xml.ASMContentHandler)
meth protected final int getAccess(java.lang.String)
meth protected final java.lang.Object getValue(java.lang.String,java.lang.String) throws org.xml.sax.SAXException
......
......@@ -251,13 +251,14 @@ configure(subprojects.findAll { it.provides }) {
dependencies { sigtest 'org.netbeans.tools:sigtest-maven-plugin:1.0' }
file('src/test/resources/').eachFileMatch(~/sigtest-.*/) { f ->
task "${f.name}" (type: JavaExec, dependsOn: 'classes') {
inputs.file(f)
inputs.files(f, sourceSets.main.java)
outputs.file("build/${f.name}")
classpath configurations.sigtest
main 'com.sun.tdk.signaturetest.Main'
args 'Test', '-ApiVersion', version, '-Backward', '-Static', '-Mode',
'bin', '-Classpath', sourceSets.main.output.classesDirs.asPath,
'-FileName', f, '-Out', outputs.getFiles()[0], '-Package'
'bin', '-Classpath', "${System.env.JAVA_HOME}/jre/lib/rt.jar:" +
sourceSets.main.output.classesDirs.asPath, '-FileName', f,
'-Out', outputs.getFiles()[0], '-Package'
args provides
// The exit value is not 0 in case of success, but 95...
ignoreExitValue true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment