Elffuss BraidHub

kikocis/java-driver public

dfc0c00933c1 · 9.2 KiBRawPermalink
1<!--
2 Clirr is a tool that checks Java libraries for binary and source compatibility with older releases.
3
4 This file lists known (and accepted) differences with the reference version specified in pom.xml.
5
6 To update this file:
7 * run `mvn clirr:clirr` at the root directory
8 * check the reports in `<module>/target/site/clirr-report.html`
9 * add new differences if needed. Difference types are explained at http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html
10-->
11<differences>
12 <difference>
13 <differenceType>7006</differenceType> <!-- return type changed -->
14 <className>com/datastax/driver/core/BatchStatement</className>
15 <method>com.datastax.driver.core.Statement setSerialConsistencyLevel(com.datastax.driver.core.ConsistencyLevel)</method>
16 <to>com.datastax.driver.core.BatchStatement</to>
17 <justification>A covariant return makes the API more fluent. It's unlikely that any client has extended this class</justification>
18 </difference>
19
20 <difference>
21 <differenceType>6002</differenceType> <!-- no longer a compile-time constant -->
22 <className>com/datastax/driver/core/ProtocolOptions</className>
23 <field>NEWEST_SUPPORTED_PROTOCOL_VERSION</field>
24 <justification>It calls an enum's method that is known to have a constant result</justification>
25 </difference>
26
27 <difference>
28 <differenceType>7004</differenceType> <!-- argument count changed -->
29 <className>com/datastax/driver/core/exceptions/UnsupportedFeatureException</className>
30 <method>UnsupportedFeatureException(java.lang.String)</method>
31 <justification>A client has no reason to call this constructor</justification>
32 </difference>
33
34 <difference>
35 <differenceType>7012</differenceType> <!-- method added to interface -->
36 <className>com/datastax/driver/core/ResultSet</className>
37 <method>boolean wasApplied()</method>
38 <justification>This interface is not meant to be extended by clients</justification>
39 </difference>
40
41 <difference>
42 <differenceType>7013</differenceType> <!-- abstract method added -->
43 <className>com/datastax/driver/core/RegularStatement</className>
44 <method>java.nio.ByteBuffer[] getValues(com.datastax.driver.core.ProtocolVersion)</method>
45 <justification>Indeed a breaking change, but extending this class from a client should be rarely needed</justification>
46 </difference>
47
48 <difference>
49 <differenceType>7005</differenceType> <!-- argument type changed -->
50 <className>com/datastax/driver/core/SimpleStatement</className>
51 <method>java.nio.ByteBuffer[] getValues(int)</method>
52 <to>java.nio.ByteBuffer[] getValues(com.datastax.driver.core.ProtocolVersion)</to>
53 <justification>A backward compatible version has been added to the parent class RegularStatement</justification>
54 </difference>
55
56 <difference>
57 <differenceType>7005</differenceType> <!-- argument type changed -->
58 <className>com/datastax/driver/core/querybuilder/*</className>
59 <method>java.nio.ByteBuffer[] getValues(int)</method>
60 <to>java.nio.ByteBuffer[] getValues(com.datastax.driver.core.ProtocolVersion)</to>
61 <justification>A backward compatible version has been added to the parent class RegularStatement</justification>
62 </difference>
63
64 <difference>
65 <differenceType>7013</differenceType> <!-- abstract method added to class -->
66 <className>com/datastax/driver/core/DataType</className>
67 <method>boolean isFrozen()</method>
68 <justification>Required for frozen type support. Clients do not create their own DataType subclasses</justification>
69 </difference>
70
71 <difference>
72 <differenceType>7012</differenceType> <!-- method added to interface -->
73 <className>com/datastax/driver/core/GettableByIndexData</className>
74 <method>java.util.List getList(int, com.google.common.reflect.TypeToken)</method>
75 <justification>Breaking change, required for nested collection support</justification>
76 </difference>
77
78 <difference>
79 <differenceType>7012</differenceType> <!-- method added to interface -->
80 <className>com/datastax/driver/core/GettableByIndexData</className>
81 <method>java.util.Map getMap(int, com.google.common.reflect.TypeToken, com.google.common.reflect.TypeToken)</method>
82 <justification>Breaking change, required for nested collection support</justification>
83 </difference>
84
85 <difference>
86 <differenceType>7012</differenceType> <!-- method added to interface -->
87 <className>com/datastax/driver/core/GettableByIndexData</className>
88 <method>java.util.Set getSet(int, com.google.common.reflect.TypeToken)</method>
89 <justification>Breaking change, required for nested collection support</justification>
90 </difference>
91
92 <difference>
93 <differenceType>7012</differenceType> <!-- method added to interface -->
94 <className>com/datastax/driver/core/GettableByNameData</className>
95 <method>java.util.List getList(java.lang.String, com.google.common.reflect.TypeToken)</method>
96 <justification>Breaking change, required for nested collection support</justification>
97 </difference>
98
99 <difference>
100 <differenceType>7012</differenceType> <!-- method added to interface -->
101 <className>com/datastax/driver/core/GettableByNameData</className>
102 <method>java.util.Map getMap(java.lang.String, com.google.common.reflect.TypeToken, com.google.common.reflect.TypeToken)</method>
103 <justification>Breaking change, required for nested collection support</justification>
104 </difference>
105
106 <difference>
107 <differenceType>7012</differenceType> <!-- method added to interface -->
108 <className>com/datastax/driver/core/GettableByNameData</className>
109 <method>java.util.Set getSet(java.lang.String, com.google.common.reflect.TypeToken)</method>
110 <justification>Breaking change, required for nested collection support</justification>
111 </difference>
112
113 <difference>
114 <differenceType>7012</differenceType> <!-- method added to interface -->
115 <className>com/datastax/driver/core/GettableByIndexData</className>
116 <method>java.lang.Object getObject(int)</method>
117 <justification>Breaking change, requires update of potential client implementations</justification>
118 </difference>
119
120 <difference>
121 <differenceType>7012</differenceType> <!-- method added to interface -->
122 <className>com/datastax/driver/core/GettableByNameData</className>
123 <method>java.lang.Object getObject(java.lang.String)</method>
124 <justification>Breaking change, requires update of potential client implementations</justification>
125 </difference>
126
127 <difference>
128 <differenceType>7004</differenceType> <!-- method argument count changed -->
129 <className>com/datastax/driver/core/LatencyTracker</className>
130 <method>void update(com.datastax.driver.core.Host, long)</method>
131 <justification>Breaking change, requires update of client implementations</justification>
132 </difference>
133
134 <difference>
135 <differenceType>3005</differenceType> <!-- added abstract modifier to class -->
136 <className>com/datastax/driver/core/ProtocolOptions$Compression</className>
137 <justification>False positive because an abstract method was added. Since this is an enum there is no impact for clients</justification>
138 </difference>
139
140 <difference>
141 <differenceType>7012</differenceType> <!-- method added to interface -->
142 <className>com/datastax/driver/core/Row</className>
143 <method>com.datastax.driver.core.Token getPartitionKeyToken()</method>
144 <justification>Breaking change required for token support. Requires update of potential client implementations</justification>
145 </difference>
146
147 <difference>
148 <differenceType>7012</differenceType> <!-- method added to interface -->
149 <className>com/datastax/driver/core/Row</className>
150 <method>com.datastax.driver.core.Token getToken(int)</method>
151 <justification>Breaking change required for token support. Requires update of potential client implementations</justification>
152 </difference>
153
154 <difference>
155 <differenceType>7012</differenceType> <!-- method added to interface -->
156 <className>com/datastax/driver/core/Row</className>
157 <method>com.datastax.driver.core.Token getToken(java.lang.String)</method>
158 <justification>Breaking change required for token support. Requires update of potential client implementations</justification>
159 </difference>
160
161 <difference>
162 <differenceType>7012</differenceType> <!-- method added to interface -->
163 <className>com/datastax/driver/core/Session$State</className>
164 <method>int getTrashedConnections(com.datastax.driver.core.Host)</method>
165 <justification>It's very unlikely that client have their own implementation of this interface</justification>
166 </difference>
167
168 <difference>
169 <differenceType>1001</differenceType> <!-- decreased visibility of class -->
170 <className>com/datastax/driver/core/Token$Factory</className>
171 <justification>False positive: Token was package-private before, so Token$Factory was never visible</justification>
172 </difference>
173
174 <difference>
175 <differenceType>7006</differenceType> <!-- return type changed -->
176 <className>com/datastax/driver/core/exceptions/DriverInternalError</className>
177 <method>com.datastax.driver.core.exceptions.DriverException copy()</method>
178 <to>com.datastax.driver.core.exceptions.DriverInternalError</to>
179 <justification>Covariant return, would only break if a client extended the class, which is unlikely</justification>
180 </difference>
181
182</differences>