Test Info
Library Name | jna |
Version #1 | 4.5.1-SNAPSHOT (b0) |
Version #2 | 5.1.0-SNAPSHOT (b0) |
Subject | Binary Compatibility |
Test Results
Total Java Modules | 1 |
Total Methods / Classes | 486 / 62 |
Compatibility |
76.6% |
Problem Summary
| Severity | Count |
Added Methods | - | 8 |
Removed Methods | High | 10 |
Problems with Data Types | High | 1 |
Medium | 0 |
Low | 1 |
Problems with Methods | High | 0 |
Medium | 0 |
Low | 1 |
Added Methods 8
jna.jar,
Native.class
package com.sun.jna
Native.load ( Class<T> interfaceClass ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/Class;)Lcom/sun/jna/Library;
Native.load ( Class<T> interfaceClass, Map<String,?> options ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;
Native.load ( String name, Class<T> interfaceClass ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/String;Ljava/lang/Class;)Lcom/sun/jna/Library;
Native.load ( String name, Class<T> interfaceClass, Map<String,?> options ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;
Native.toByteArray ( String s, Charset charset ) [static] : byte[ ]
com/sun/jna/Native.toByteArray:(Ljava/lang/String;Ljava/nio/charset/Charset;)[B
Native.toString ( byte[ ] buf, Charset charset ) [static] : String
com/sun/jna/Native.toString:([BLjava/nio/charset/Charset;)Ljava/lang/String;
jna.jar,
ParameterType.class
package com.sun.jna
ELFAnalyser.ArmAeabiAttributesTag.ParameterType.valueOf ( String name ) [static] : ELFAnalyser.ArmAeabiAttributesTag.ParameterType
com/sun/jna/ELFAnalyser.ArmAeabiAttributesTag.ParameterType.valueOf:(Ljava/lang/String;)Lcom/sun/jna/ELFAnalyser$ArmAeabiAttributesTag$ParameterType;
ELFAnalyser.ArmAeabiAttributesTag.ParameterType.values ( ) [static] : ELFAnalyser.ArmAeabiAttributesTag.ParameterType[ ]
com/sun/jna/ELFAnalyser.ArmAeabiAttributesTag.ParameterType.values:()[Lcom/sun/jna/ELFAnalyser$ArmAeabiAttributesTag$ParameterType;
to the top
Removed Methods 10
jna.jar,
Native.class
package com.sun.jna
Native.getDirectByteBuffer ( long p1, long p2 ) [static] : ByteBuffer *DEPRECATED*
com/sun/jna/Native.getDirectByteBuffer:(JJ)Ljava/nio/ByteBuffer;
Native.getPreserveLastError ( ) [static] : boolean *DEPRECATED*
com/sun/jna/Native.getPreserveLastError:()Z
Native.parseVersion ( String v ) [static] : float *DEPRECATED*
com/sun/jna/Native.parseVersion:(Ljava/lang/String;)F
Native.setPreserveLastError ( boolean enable ) [static] : void *DEPRECATED*
com/sun/jna/Native.setPreserveLastError:(Z)V
jna.jar,
Platform.class
package com.sun.jna
Platform.isAix ( ) [static] : boolean *DEPRECATED*
com/sun/jna/Platform.isAix:()Z
jna.jar,
Pointer.class
package com.sun.jna
Pointer.getString ( long offset, boolean wide ) : String *DEPRECATED*
com/sun/jna/Pointer.getString:(JZ)Ljava/lang/String;
Pointer.getStringArray ( long offset, boolean wide ) : String[ ] *DEPRECATED*
com/sun/jna/Pointer.getStringArray:(JZ)[Ljava/lang/String;
Pointer.getStringArray ( long offset, int length, boolean wide ) : String[ ] *DEPRECATED*
com/sun/jna/Pointer.getStringArray:(JIZ)[Ljava/lang/String;
Pointer.setString ( long offset, String value, boolean wide ) : void *DEPRECATED*
com/sun/jna/Pointer.setString:(JLjava/lang/String;Z)V
jna.jar,
Structure.class
package com.sun.jna
Structure.setFieldOrder ( String[ ] fields ) : void *DEPRECATED*
com/sun/jna/Structure.setFieldOrder:([Ljava/lang/String;)V
to the top
Problems with Data Types, High Severity 1
jna.jar
package com.sun.jna
[+] class Pointer 1
| Change | Effect |
---|
1 |
Field SIZE of type int has been removed from this class. |
A client program may be interrupted by NoSuchFieldError exception. |
[+] affected methods: 102 (21%)
CallbackReference.getCallback ( Class<?> type, Pointer p )2nd parameter 'p' of this method is of type 'Pointer'.
CallbackReference.getFunctionPointer ( Callback cb )Return value of this method is of type 'Pointer'.
Function.getFunction ( Pointer p )1st parameter 'p' of this method is of type 'Pointer'.
Function.getFunction ( Pointer p, int callFlags )1st parameter 'p' of this method is of type 'Pointer'.
Function.getFunction ( Pointer p, int callFlags, String encoding )1st parameter 'p' of this method is of type 'Pointer'.
Function.invokePointer ( Object[ ] args )Return value of this method is of type 'Pointer'.
Memory.getPointer ( long offset )Return value of this method is of type 'Pointer'.
Memory.setPointer ( long offset, Pointer value )2nd parameter 'value' of this method is of type 'Pointer'.
Memory.share ( long offset )Return value of this method is of type 'Pointer'.
Memory.share ( long offset, long sz )Return value of this method is of type 'Pointer'.
...
to the top
Problems with Data Types, Low Severity 1
jna.jar
package com.sun.jna
[+] class Structure 1
| Change | Effect |
---|
1 |
Abstract method List<String> getFieldOrder ( ) became non-abstract. |
Some methods in this class may change behavior. |
[+] affected methods: 1 (0.2%)
Structure.getFieldOrder ( )This abstract method is from 'Structure' abstract class.
to the top
Problems with Methods, Low Severity 1
jna.jar,
Structure.class
package com.sun.jna
[+] Structure.getFieldOrder ( ) [abstract] : List<String> 1
com/sun/jna/Structure.getFieldOrder:()Ljava/util/List;
| Change | Effect |
---|
1 |
Method became non-abstract. |
A client program may change behavior. |
to the top
Java Archives 1
jna.jar
to the top
Test Info
Library Name | jna |
Version #1 | 4.5.1-SNAPSHOT (b0) |
Version #2 | 5.1.0-SNAPSHOT (b0) |
Subject | Source Compatibility |
Test Results
Total Java Modules | 1 |
Total Methods / Classes | 486 / 62 |
Compatibility |
76.6% |
Problem Summary
| Severity | Count |
Added Methods | - | 8 |
Removed Methods | High | 10 |
Problems with Data Types | High | 1 |
Medium | 0 |
Low | 0 |
Problems with Methods | High | 0 |
Medium | 0 |
Low | 0 |
Other Changes in Data Types | - | 1 |
Other Changes in Methods | - | 1 |
Added Methods 8
jna.jar,
Native.class
package com.sun.jna
Native.load ( Class<T> interfaceClass ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/Class;)Lcom/sun/jna/Library;
Native.load ( Class<T> interfaceClass, Map<String,?> options ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;
Native.load ( String name, Class<T> interfaceClass ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/String;Ljava/lang/Class;)Lcom/sun/jna/Library;
Native.load ( String name, Class<T> interfaceClass, Map<String,?> options ) [static] : T
com/sun/jna/Native.load:(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;
Native.toByteArray ( String s, Charset charset ) [static] : byte[ ]
com/sun/jna/Native.toByteArray:(Ljava/lang/String;Ljava/nio/charset/Charset;)[B
Native.toString ( byte[ ] buf, Charset charset ) [static] : String
com/sun/jna/Native.toString:([BLjava/nio/charset/Charset;)Ljava/lang/String;
jna.jar,
ParameterType.class
package com.sun.jna
ELFAnalyser.ArmAeabiAttributesTag.ParameterType.valueOf ( String name ) [static] : ELFAnalyser.ArmAeabiAttributesTag.ParameterType
com/sun/jna/ELFAnalyser.ArmAeabiAttributesTag.ParameterType.valueOf:(Ljava/lang/String;)Lcom/sun/jna/ELFAnalyser$ArmAeabiAttributesTag$ParameterType;
ELFAnalyser.ArmAeabiAttributesTag.ParameterType.values ( ) [static] : ELFAnalyser.ArmAeabiAttributesTag.ParameterType[ ]
com/sun/jna/ELFAnalyser.ArmAeabiAttributesTag.ParameterType.values:()[Lcom/sun/jna/ELFAnalyser$ArmAeabiAttributesTag$ParameterType;
to the top
Removed Methods 10
jna.jar,
Native.class
package com.sun.jna
Native.getDirectByteBuffer ( long p1, long p2 ) [static] : ByteBuffer *DEPRECATED*
com/sun/jna/Native.getDirectByteBuffer:(JJ)Ljava/nio/ByteBuffer;
Native.getPreserveLastError ( ) [static] : boolean *DEPRECATED*
com/sun/jna/Native.getPreserveLastError:()Z
Native.parseVersion ( String v ) [static] : float *DEPRECATED*
com/sun/jna/Native.parseVersion:(Ljava/lang/String;)F
Native.setPreserveLastError ( boolean enable ) [static] : void *DEPRECATED*
com/sun/jna/Native.setPreserveLastError:(Z)V
jna.jar,
Platform.class
package com.sun.jna
Platform.isAix ( ) [static] : boolean *DEPRECATED*
com/sun/jna/Platform.isAix:()Z
jna.jar,
Pointer.class
package com.sun.jna
Pointer.getString ( long offset, boolean wide ) : String *DEPRECATED*
com/sun/jna/Pointer.getString:(JZ)Ljava/lang/String;
Pointer.getStringArray ( long offset, boolean wide ) : String[ ] *DEPRECATED*
com/sun/jna/Pointer.getStringArray:(JZ)[Ljava/lang/String;
Pointer.getStringArray ( long offset, int length, boolean wide ) : String[ ] *DEPRECATED*
com/sun/jna/Pointer.getStringArray:(JIZ)[Ljava/lang/String;
Pointer.setString ( long offset, String value, boolean wide ) : void *DEPRECATED*
com/sun/jna/Pointer.setString:(JLjava/lang/String;Z)V
jna.jar,
Structure.class
package com.sun.jna
Structure.setFieldOrder ( String[ ] fields ) : void *DEPRECATED*
com/sun/jna/Structure.setFieldOrder:([Ljava/lang/String;)V
to the top
Problems with Data Types, High Severity 1
jna.jar
package com.sun.jna
[+] class Pointer 1
| Change | Effect |
---|
1 |
Field SIZE of type int has been removed from this class. |
Recompilation of a client program may be terminated with the message: cannot find variable SIZE in Pointer. |
[+] affected methods: 102 (21%)
CallbackReference.getCallback ( Class<?> type, Pointer p )2nd parameter 'p' of this method is of type 'Pointer'.
CallbackReference.getFunctionPointer ( Callback cb )Return value of this method is of type 'Pointer'.
Function.getFunction ( Pointer p )1st parameter 'p' of this method is of type 'Pointer'.
Function.getFunction ( Pointer p, int callFlags )1st parameter 'p' of this method is of type 'Pointer'.
Function.getFunction ( Pointer p, int callFlags, String encoding )1st parameter 'p' of this method is of type 'Pointer'.
Function.invokePointer ( Object[ ] args )Return value of this method is of type 'Pointer'.
Memory.getPointer ( long offset )Return value of this method is of type 'Pointer'.
Memory.setPointer ( long offset, Pointer value )2nd parameter 'value' of this method is of type 'Pointer'.
Memory.share ( long offset )Return value of this method is of type 'Pointer'.
Memory.share ( long offset, long sz )Return value of this method is of type 'Pointer'.
...
to the top
Other Changes in Data Types 1
jna.jar
package com.sun.jna
[+] class Structure 1
| Change | Effect |
---|
1 |
Abstract method List<String> getFieldOrder ( ) became non-abstract. |
No effect. |
[+] affected methods: 1 (0.2%)
Structure.getFieldOrder ( )This abstract method is from 'Structure' abstract class.
to the top
Other Changes in Methods 1
jna.jar,
Structure.class
package com.sun.jna
[+] Structure.getFieldOrder ( ) [abstract] : List<String> 1
com/sun/jna/Structure.getFieldOrder:()Ljava/util/List;
| Change | Effect |
---|
1 |
Method became non-abstract. |
No effect. |
to the top
Java Archives 1
jna.jar
to the top