sbt/interface/src/main/java/xsbti
Adriaan Moors 95da6ec5a6 `AbstractLazy`'s `writeObject` is `protected`
Fix for regression triggered by #2325 -- apparently, the API visitor would
force all the lazy stubs so the `AbstractLazy` `writeReplace` was not exercised.
With the private subtrees being ignored, the visitor didn't force the lazy stub,
and the `writeProtected` method was not inherited in `SafeLazy.Impl`.

From https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
`writeReplace` must be protected for its override to be inherited.

> `Serializable` classes that need to designate an alternative object to be used
> when writing an object to the stream should implement this special method with
> the exact signature:
> `ANY-ACCESS-MODIFIER Object writeReplace() throws ObjectStreamException;`
>
> This `writeReplace` method is invoked by serialization if the method exists and
> it would be accessible from a method defined within the class of the object
> being serialized. Thus, the method can have `private`, `protected` and
> `package-private` access.
>
> **Subclass access to this method follows java accessibility rules.**

(Thanks to retronym for digging up the docs.)

The fix is captured, indirectly, by the scripted test
`source-dependencies/java-analysis-serialization-error`.
2015-12-21 22:19:30 -08:00
..
api `AbstractLazy`'s `writeObject` is `protected` 2015-12-21 22:19:30 -08:00
compile Fix several warnings 2015-07-17 09:17:42 +02:00
AnalysisCallback.java Remove redundant public modifier in Java interfaces 2015-07-11 00:11:17 +02:00
ArtifactInfo.java reorganize compilation modules 2012-04-18 08:08:25 -04:00
CompileCancelled.java Handle compilation cancellation properly. 2013-07-19 14:39:26 -07:00
CompileFailed.java more flexible scalac logging 2010-10-23 16:34:22 -04:00
DependencyContext.java Remove trait `DependencyContext` in favor of enum 2014-11-19 10:35:07 +01:00
F0.java Remove redundant public modifier in Java interfaces 2015-07-11 00:11:17 +02:00
Logger.java Minor clean up 2015-07-09 22:59:05 +02:00
Maybe.java more flexible scalac logging 2010-10-23 16:34:22 -04:00
Position.java more flexible scalac logging 2010-10-23 16:34:22 -04:00
Problem.java move to revised warning interface in the compiler 2012-05-06 14:15:03 -04:00
Reporter.java Remove redundant public modifier in Java interfaces 2015-07-11 00:11:17 +02:00
Severity.java more flexible scalac logging 2010-10-23 16:34:22 -04:00