Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ of scala (check `.github/workflows/validate.yml` or `build.sbt` for the supporte

When changes in Scala cause changes in the expected genjavadoc output, you add them as patches
in the respective patch in `src/test/resources/expected_output`. Remember to clean between
invocations of `sbt` with different versions, and that versions of Scala < 2.11.12 require JDK8,
otherwise you'll get errors like `object java.lang.Object in compiler mirror not found`.
invocations of `sbt` with different versions.

Usually you can just copy-paste the patch from `sbt ++2.12.3 clean test` into,
`src/test/resources/patches/2.12.3.patch`, changing the `+++` line to look exactly like the
Expand Down
51 changes: 0 additions & 51 deletions src/main/scala-2.11/com/typesafe/genjavadoc/Comments.scala

This file was deleted.

40 changes: 0 additions & 40 deletions src/main/scala-2.11/com/typesafe/genjavadoc/NeedsJavaSig.scala

This file was deleted.

55 changes: 42 additions & 13 deletions src/test/resources/patches/2.13.9.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
static public akka.actor.Identify apply (Object messageId) { throw new RuntimeException(); }
static public scala.Option<java.lang.Object> unapply (akka.actor.Identify x$0) { throw new RuntimeException(); }
public Object messageId () { throw new RuntimeException(); }
@@ -13,6 +13,7 @@
@@ -11,8 +11,8 @@
public java.lang.String productPrefix () { throw new RuntimeException(); }
public int productArity () { throw new RuntimeException(); }
public Object productElement (int x$1) { throw new RuntimeException(); }
public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
- public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
public boolean canEqual (Object x$1) { throw new RuntimeException(); }
+ public java.lang.String productElementName (int x$1) { throw new RuntimeException(); }
public int hashCode () { throw new RuntimeException(); }
Expand Down Expand Up @@ -138,7 +140,15 @@
/**
* Static reference to the singleton instance of this Scala object.
*/
@@ -18,9 +16,8 @@
@@ -14,7 +12,6 @@
public java.lang.String productPrefix () { throw new RuntimeException(); }
public int productArity () { throw new RuntimeException(); }
public Object productElement (int x$1) { throw new RuntimeException(); }
- public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
public boolean canEqual (Object x$1) { throw new RuntimeException(); }
public int hashCode () { throw new RuntimeException(); }
public java.lang.String toString () { throw new RuntimeException(); }
@@ -18,9 +15,8 @@
public boolean canEqual (Object x$1) { throw new RuntimeException(); }
public int hashCode () { throw new RuntimeException(); }
public java.lang.String toString () { throw new RuntimeException(); }
Expand All @@ -149,9 +159,11 @@
public java.lang.String x () { throw new RuntimeException(); }
// not preceding
public B (java.lang.String x) { throw new RuntimeException(); }
@@ -32,12 +29,12 @@
@@ -30,14 +26,13 @@
public java.lang.String productPrefix () { throw new RuntimeException(); }
public int productArity () { throw new RuntimeException(); }
public Object productElement (int x$1) { throw new RuntimeException(); }
public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
- public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
public boolean canEqual (Object x$1) { throw new RuntimeException(); }
+ public java.lang.String productElementName (int x$1) { throw new RuntimeException(); }
public int hashCode () { throw new RuntimeException(); }
Expand All @@ -175,9 +187,11 @@
static public akka.rk.buh.is.it.CompressionProtocol.Events.HeavyHitterDetected apply (Object key, int id, long count) { throw new RuntimeException(); }
static public scala.Option<scala.Tuple3<java.lang.Object, java.lang.Object, java.lang.Object>> unapply (akka.rk.buh.is.it.CompressionProtocol.Events.HeavyHitterDetected x$0) { throw new RuntimeException(); }
public Object key () { throw new RuntimeException(); }
@@ -24,11 +24,12 @@
@@ -22,13 +22,13 @@
public java.lang.String productPrefix () { throw new RuntimeException(); }
public int productArity () { throw new RuntimeException(); }
public Object productElement (int x$1) { throw new RuntimeException(); }
public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
- public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
public boolean canEqual (Object x$1) { throw new RuntimeException(); }
+ public java.lang.String productElementName (int x$1) { throw new RuntimeException(); }
public int hashCode () { throw new RuntimeException(); }
Expand Down Expand Up @@ -210,9 +224,11 @@
// not preceding
static public akka.rk.buh.is.it.EWMA apply (double value, double alpha) { throw new RuntimeException(); }
static public scala.Option<scala.Tuple2<java.lang.Object, java.lang.Object>> unapply (akka.rk.buh.is.it.EWMA x$0) { throw new RuntimeException(); }
@@ -44,6 +44,7 @@
@@ -42,8 +42,8 @@
public java.lang.String productPrefix () { throw new RuntimeException(); }
public int productArity () { throw new RuntimeException(); }
public Object productElement (int x$1) { throw new RuntimeException(); }
public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
- public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
public boolean canEqual (Object x$1) { throw new RuntimeException(); }
+ public java.lang.String productElementName (int x$1) { throw new RuntimeException(); }
public int hashCode () { throw new RuntimeException(); }
Expand Down Expand Up @@ -245,12 +261,18 @@
+ public void akka$persistence$testkit$EventStorage$_setter_$DefaultPolicy_$eq (akka.persistence.testkit.ProcessingPolicy.DefaultPolicies<akka.persistence.testkit.JournalOperation>.PassAll x$1) ;
+ public akka.persistence.testkit.ProcessingPolicy.DefaultPolicies<akka.persistence.testkit.JournalOperation>.PassAll DefaultPolicy () ;
}
--- target/expected_output/basic/akka/persistence/testkit/ProcessingPolicy.java 2020-03-23 16:20:58.647999228 +0100
+++ target/expected_output/basic/akka/persistence/testkit/ProcessingPolicy.java 2020-03-23 16:20:58.647999228 +0100
@@ -10,8 +10,10 @@
--- target/expected_output/basic/akka/persistence/testkit/ProcessingPolicy.java
+++ target/expected_output/basic/akka/persistence/testkit/ProcessingPolicy.java
@@ -5,13 +5,15 @@
static public java.lang.String productPrefix () { throw new RuntimeException(); }
static public int productArity () { throw new RuntimeException(); }
static public Object productElement (int x$1) { throw new RuntimeException(); }
- static public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
static public boolean canEqual (Object x$1) { throw new RuntimeException(); }
static public int hashCode () { throw new RuntimeException(); }
static public java.lang.String toString () { throw new RuntimeException(); }
static public abstract boolean equals (Object that) ;
+ static public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
+ static public java.lang.String productElementName (int n) { throw new RuntimeException(); }
+ static public scala.collection.Iterator<java.lang.String> productElementNames () { throw new RuntimeException(); }
}
Expand All @@ -259,4 +281,11 @@
/**
* Static reference to the singleton instance of this Scala object.
*/

@@ -20,7 +22,6 @@
public java.lang.String productPrefix () { throw new RuntimeException(); }
public int productArity () { throw new RuntimeException(); }
public Object productElement (int x$1) { throw new RuntimeException(); }
- public scala.collection.Iterator<java.lang.Object> productIterator () { throw new RuntimeException(); }
public boolean canEqual (Object x$1) { throw new RuntimeException(); }
public int hashCode () { throw new RuntimeException(); }
public java.lang.String toString () { throw new RuntimeException(); }
4 changes: 3 additions & 1 deletion src/test/scala/com/typesafe/genjavadoc/SignatureSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ object SignatureSpec {
// with the addition of "$lzycompute", which is special
"$$", "$lzycompute",
// see https://github.com/lightbend/genjavadoc/issues/143
"productElementName"
"productElementName",
// because of https://github.com/scala/scala/pull/10002
"productIterator"
)

// they can't start with numbers either
Expand Down