-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathlinkage-checker-exclusion-default.xml
More file actions
458 lines (458 loc) · 16.6 KB
/
linkage-checker-exclusion-default.xml
File metadata and controls
458 lines (458 loc) · 16.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
<LinkageCheckerFilter>
<LinkageError>
<Source>
<Package name="reactor.core.publisher.Traces" />
</Source>
<Reason>
reactor-core's Traces catches Throwable to detect classes available in
Java 9+. As Linkage Checker targets Java 8, it ignores these errors to avoid
false positives.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/816
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="com.oracle.objectfile" />
</Source>
<Reason>
GraalVM-related libraries depend on Java Compiler Interface (JVMCI) that
only exists in special JDK. These missing classes are false positives, because
the code is only invoked when running in a GraalVM.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/929
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="com.oracle.svm" />
</Source>
<Reason>
GraalVM-related libraries depend on Java Compiler Interface (JVMCI) that
only exists in special JDK. These missing classes are false positives, because
the code is only invoked when running in a GraalVM.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/929
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="jdk.vm.ci" />
</Target>
</LinkageError>
<LinkageError>
<Target>
<Package name="jdk.vm.ci" />
</Target>
<Reason>
Substrate VM is part of GraalVM and the virtual machine references classes in the JVM-internal
package 'sun.text.normalizer' that are not available in JVM runtime.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1825
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="sun.text.normalizer" />
</Target>
<Source>
<Package name="com.oracle.svm.core.jdk8" />
</Source>
<Reason>
Substrate VM is part of GraalVM and the virtual machine references classes in the JVM-internal
package 'sun.text.normalizer' that are not available in JVM runtime.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1825
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Class name="sun.util.logging.LoggingSupport" />
</Target>
<Source>
<Class name="com.oracle.svm.core.jdk.FormatAccessors" />
</Source>
<Reason>
Substrate VM references the JVM-internal class 'sun.util.logging.LoggingSupport' that are not
available in JVM runtime.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1825
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Class name="sun.misc.JavaUtilZipFileAccess" />
</Target>
<Source>
<Class name="com.oracle.svm.core.jdk8.zipfile.ZipFileUtil" />
</Source>
<Reason>
Substrate VM references the class that are only available in Java 8.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1825
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Class name="sun.misc.SharedSecrets" />
</Target>
<Source>
<Package name="com.oracle.svm.core.jdk8" />
</Source>
<Reason>
Substrate VM references the class that are only available in Java 8.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1825
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Class name="sun.misc.PerfCounter" />
</Target>
<Source>
<Package name="com.oracle.svm.core.jdk8" />
</Source>
<Reason>
Substrate VM references the class that are only available in Java 8.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1825
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Class name="org.mockito.internal.creation.bytebuddy.MockMethodDispatcher" />
</Target>
<Source>
<Package name="org.mockito.internal.creation.bytebuddy" />
</Source>
<Reason>
Mockito's MockMethodDispatcher uses special class loader to load
MockMethodDispatcher.raw. The class file with "raw" suffix is in mockito-core JAR file.
Because Linkage Checker does not use the special class loader, it ignores the missing
class errors to avoid false positives.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/407
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="com.sun.jna" />
</Target>
<Source>
<Package name="reactor.blockhound.shaded.net.bytebuddy.agent.VirtualMachine" />
</Source>
<Reason>
BlockHound shades ByteBuddy's VirtualMachine class. The class uses Java Native Access (JNA)
only when the com.sun.jna package is available. Therefore the invalid references from the
VirtualMachine class to JNA classes do not cause linkage errors at runtime.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1296
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="reactor.blockhound" />
</Target>
<Source>
<Class name="io.netty.util.internal.Hidden" />
</Source>
<Reason>
If BlockHound library is present in the class path, it loads the Hidden class to enable
Netty-BlockHound integration. In this case, the target classes are on the class path.
If BlockHound is not on the class path, nothing loads this source class.
https://github.com/reactor/BlockHound/blob/master/docs/custom_integrations.md
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="reactor.blockhound" />
</Target>
<Source>
<Class name="io.grpc.netty.shaded.io.netty.util.internal.Hidden" />
</Source>
<Reason>
(For grpc-netty-shaded source)
If BlockHound library is present in the class path, it loads the Hidden class to enable
Netty-BlockHound integration. In this case, the target classes are on the class path.
If BlockHound is not on the class path, nothing loads this source class.
https://github.com/reactor/BlockHound/blob/master/docs/custom_integrations.md
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.netty.util.internal.logging" />
</Source>
<Reason>
InternalLoggerFactory catches and handles errors caused by the missing classes.
More details in https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1872
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.grpc.netty.shaded.io.netty.util.internal.logging" />
</Source>
<Reason>
grpc-netty-shaded has copies of the netty's internal logging classes. which catches and
handles errors caused by the missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.netty.handler.codec.marshalling" />
</Source>
<Reason>
Netty users can optionally add JBoss Marshalling dependency to use
io.netty.handler.codec.marshalling package when they need the serialization algorithm.
By default, the classes in the package have references to missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.grpc.netty.shaded.io.netty.handler.codec.marshalling" />
</Source>
<Reason>
(For grpc-netty-shaded source)
Netty users can optionally add JBoss Marshalling dependency to use
io.netty.handler.codec.marshalling package when they need the serialization algorithm.
By default, the classes in the package have references to missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.netty.handler.codec.protobuf" />
</Source>
<Reason>
Netty users can optionally add protobuf dependency to use io.netty.handler.codec.protobuf
package when they need the serialization algorithm. By default, the classes in the package
have references to missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.grpc.netty.shaded.io.netty.handler.codec.protobuf" />
</Source>
<Reason>
(For grpc-netty-shaded source)
Netty users can optionally add protobuf dependency to use io.netty.handler.codec.protobuf
package when they need the serialization algorithm. By default, the classes in the package
have references to missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.netty.handler.codec.compression" />
</Source>
<Reason>
Netty users can optionally add corresponding dependencies to use compression algorithms (LZMA,
LZF, zlib). By default, the classes in the package have references to missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="io.grpc.netty.shaded.io.netty.handler.codec.compression" />
</Source>
<Reason>
(For grpc-netty-shaded source)
Netty users can optionally add corresponding dependencies to use compression algorithms (LZMA,
LZF, zlib). By default, the classes in the package have references to missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="io.netty.internal.tcnative" />
</Target>
<Source>
<Package name="io.netty.handler.ssl" />
</Source>
<Reason>
Netty users add the dependencies of platform-specific SSL implementations.
https://netty.io/wiki/forked-tomcat-native.html#wiki-h2-4
By default, the classes in the package have references to missing classes.
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="com.jcraft.jzlib" />
</Target>
<Source>
<Class name="io.netty.handler.codec.spdy.SpdyHeaderBlockJZlibEncoder" />
</Source>
<Reason>
io.netty.handler.codec.spdy.SpdyHeaderBlockEncoder chooses the compression encoder based on
the Java platform. For Java 7 or later, it does not use SpdyHeaderBlockJZlibEncoder, as the
Zlib compression is available in JVM.
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="com.jcraft.jzlib" />
</Target>
<Source>
<Class name="io.grpc.netty.shaded.io.netty.handler.codec.spdy.SpdyHeaderBlockJZlibEncoder" />
</Source>
<Reason>
(For grpc-netty-shaded source)LinkageCheckerMainIntegrationTest
io.netty.handler.codec.spdy.SpdyHeaderBlockEncoder chooses the compression encoder based on
the Java platform. For Java 7 or later, it does not use SpdyHeaderBlockJZlibEncoder, as the
Zlib compression is available in JVM.
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="org.bouncycastle" />
</Target>
<Source>
<Class name="io.netty.handler.ssl.util.BouncyCastleSelfSignedCertGenerator" />
</Source>
<Reason>
io.netty.handler.ssl.util.SelfSignedCertificate checks the availability of Bouncy Castle
library (http://www.bouncycastle.org/). If it's unavailable, then Netty does not use the
BouncyCastleSelfSignedCertGenerator.
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="org.bouncycastle" />
</Target>
<Source>
<Class name="io.grpc.netty.shaded.io.netty.handler.ssl.util.BouncyCastleSelfSignedCertGenerator" />
</Source>
<Reason>
(For grpc-netty-shaded source)
io.netty.handler.ssl.util.SelfSignedCertificate checks the availability of Bouncy Castle
library (http://www.bouncycastle.org/). If it's unavailable, then Netty does not use the
BouncyCastleSelfSignedCertGenerator.
</Reason>
</LinkageError> <LinkageError>
<Target>
<Package name="org.eclipse.jetty.npn" />
</Target>
<Source>
<Class name="io.netty.handler.ssl.JettyNpnSslEngine" />
</Source>
<Reason>
The Jetty-ALPN and Jetty-NPN are the optional fallback method when Netty users cannot use
OpenSSL with netty-tcnative. Therefore, the JettyNpnSslEngine class has linkage errors by
default.
https://netty.io/wiki/requirements-for-4.x.html#tls-with-jdk-jetty-alpnnpn
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="org.eclipse.jetty.npn" />
</Target>
<Source>
<Class name="io.grpc.netty.shaded.io.netty.handler.ssl.JettyNpnSslEngine" />
</Source>
<Reason>
(For grpc-netty-shaded source)
The Jetty-ALPN and Jetty-NPN are the optional fallback method when Netty users cannot use
OpenSSL with netty-tcnative. Therefore, the JettyNpnSslEngine class has linkage errors by
default.
https://netty.io/wiki/requirements-for-4.x.html#tls-with-jdk-jetty-alpnnpn
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="org.eclipse.jetty.alpn" />
</Target>
<Source>
<Class name="io.netty.handler.ssl.JettyAlpnSslEngine" />
</Source>
<Reason>
The Jetty-ALPN and Jetty-NPN are the optional fallback method when Netty users cannot use
OpenSSL with netty-tcnative. Therefore, the JettyAlpnSslEngine class has linkage errors by
default.
https://netty.io/wiki/requirements-for-4.x.html#tls-with-jdk-jetty-alpnnpn
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="org.eclipse.jetty.alpn" />
</Target>
<Source>
<Class name="io.grpc.netty.shaded.io.netty.handler.ssl.JettyAlpnSslEngine" />
</Source>
<Reason>
The Jetty-ALPN and Jetty-NPN are the optional fallback method when Netty users cannot use
OpenSSL with netty-tcnative. Therefore, the JettyAlpnSslEngine class has linkage errors by
default.
https://netty.io/wiki/requirements-for-4.x.html#tls-with-jdk-jetty-alpnnpn
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Method className="com.google.api.VisibilityProto" name="getDescriptor" />
</Target>
<Source>
<Package name="com.google.appengine.repackaged.com.google" />
</Source>
<Reason>
The appengine-api-1.0-sdk shades certain classes, creating method references that do not
match original unshaded classes from the proto-google-common-protos artifact.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/2045
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Class name="org.apache.avalon.framework.logger.Logger" />
</Target>
<Source>
<Class name="org.apache.commons.logging.impl.AvalonLogger" />
</Source>
<Reason>
The AvalonLogger is used only when commons-logging users want to use Apache Avalon, which
has been closed since 2004. For those who don't use Apache Avalon, the class references does
not cause a problem.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1871
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="org.apache.log" />
</Target>
<Source>
<Class name="org.apache.commons.logging.impl.LogKitLogger" />
</Source>
<Reason>
The LogKitLogger is used only when commons-logging users want to use Apache Avalon, which
has been closed since 2004. For those who don't use Apache Avalon, the class references does
not cause a problem.
https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1871
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="sun.misc" />
</Target>
<Source>
<Class name="com.google.common.flogger.util.JavaLangAccessStackGetter" />
</Source>
<Reason>
Flogger's JavaLangAccessStackGetter and StackWalkerStackGetter trys to use available classes
in different JDK versions. Certain classes are unavailable in a JDK.
</Reason>
</LinkageError>
<LinkageError>
<Target>
<Package name="java" />
</Target>
<Source>
<Class name="com.google.common.flogger.util.StackWalkerStackGetter" />
</Source>
<Reason>
Flogger's JavaLangAccessStackGetter and StackWalkerStackGetter trys to use available classes
in different JDK versions. Certain classes are unavailable in a JDK.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="com.sun.mail.smtp" />
</Source>
<Reason>
Google Cloud libraries do not use SMTP protocols. There are discrepancy in
javax.mail:mail:1.4.3 com.sun.mail:javax.mail:1.6.2 in dependency graph.
</Reason>
</LinkageError>
<LinkageError>
<Source>
<Package name="com.ctc.wstx.shaded" />
</Source>
<Target>
<Class name="com.ctc.wstx.shaded.msv_core.driver.textui.Driver" />
</Target>
<Reason>
Shaded class in com.fasterxml.woodstox:woodstox-core:6.2.6 has a class
reference to the textui.Driver but the shading process didn't include it.
</Reason>
</LinkageError>
</LinkageCheckerFilter>