aboutsummaryrefslogtreecommitdiffstats
path: root/api/src/main/java/org/osjava/jardiff/MethodInfo.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-10-07 10:40:40 +0200
committerSven Gothel <[email protected]>2015-10-07 10:40:40 +0200
commit4f50b49c955f2bde2bb7eb4c7493206ec6bb1f2f (patch)
tree2e4c5ffd3c2396a6e695fa04345d6c151750fe0b /api/src/main/java/org/osjava/jardiff/MethodInfo.java
parent0d2e314ef48bd2fd38b45f781c4573bdb2b32a69 (diff)
Fix JLS Binary Compat: Moving methods and fields upwards for classes _and_ interfaces is OKHEADmaster
- We shall also travers all interfaces upwards - All methods and fields found upwards must be tested for compatibility as well! Further: - Add class-name to Field- and MethodInfo via new intermediate AbstractMemberInfo. The class-name is used to have allow differs to find a class move upwards! - Pretty printing of class move binary-compatible change
Diffstat (limited to 'api/src/main/java/org/osjava/jardiff/MethodInfo.java')
-rw-r--r--api/src/main/java/org/osjava/jardiff/MethodInfo.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/api/src/main/java/org/osjava/jardiff/MethodInfo.java b/api/src/main/java/org/osjava/jardiff/MethodInfo.java
index 797faa4..32f7b06 100644
--- a/api/src/main/java/org/osjava/jardiff/MethodInfo.java
+++ b/api/src/main/java/org/osjava/jardiff/MethodInfo.java
@@ -23,7 +23,7 @@ import java.util.Arrays;
*
* @author <a href="mailto:[email protected]">Antony Riley</a>
*/
-public final class MethodInfo extends AbstractInfo
+public final class MethodInfo extends AbstractMemberInfo
{
/**
* The method descriptor.
@@ -43,14 +43,15 @@ public final class MethodInfo extends AbstractInfo
/**
* Create a new MethodInfo with the specified parameters.
*
+ * @param className The name of the class this method belongs to
* @param access The access flags for the method.
* @param name The name of the method.
* @param signature The signature of the method.
* @param exceptions The exceptions thrown by the method.
*/
- public MethodInfo(final int access, final String name, final String desc, final String signature,
+ public MethodInfo(final String className, final int access, final String name, final String desc, final String signature,
final String[] exceptions) {
- super(access, name);
+ super(className, access, name);
this.desc = desc;
this.signature = signature;
this.exceptions = exceptions;