Menu

#8 Fix compilation under Java 8

Unstable_(example)
open
nobody
None
5
2018-03-19
2015-08-12
Neil Fuller
No

Downstream fix I'm applying for Android to keep the code compiling. Not sure if you're still active on this.
Trivial, online fix:

Remove ambiguity around Parameter class on OpenJDK 8

The use of .* imports means that the introduction of
the java.lang.reflect.Parameter to the java APIs
is ambiguous (vs com.sun.javadoc.Parameter).

Bug: 23133454
Change-Id: I600ff3ab9d61ca0dd064c3b23600fed548e07234

diff --git a/src/jdiff/RootDocToXML.java b/src/jdiff/RootDocToXML.java
index f68a60b..5717287 100755
--- a/src/jdiff/RootDocToXML.java
+++ b/src/jdiff/RootDocToXML.java
@@ -1,6 +1,7 @@
package jdiff;

import com.sun.javadoc.*;
+import com.sun.javadoc.Parameter;
import com.sun.javadoc.ParameterizedType;
import com.sun.javadoc.Type;

Related

Patches: #8

Discussion

  • Davinder Kaur

    Davinder Kaur - 2018-03-19

    Any update on this ticket?

     
    • Matthew Doar

      Matthew Doar - 2018-03-20

      Sorry, javadiff is no longer supported. Moved on.

      On Mon, Mar 19, 2018 at 3:54 AM, Davinder Kaur davinderkaur90@users.sourceforge.net wrote:

      Any update on this ticket?

      Status: open
      Group: Unstable_(example)
      Created: Wed Aug 12, 2015 10:17 AM UTC by Neil Fuller
      Last Updated: Wed Aug 12, 2015 10:17 AM UTC
      Owner: nobody

      Downstream fix I'm applying for Android to keep the code compiling. Not
      sure if you're still active on this.
      Trivial, online fix:

      Remove ambiguity around Parameter class on OpenJDK 8

      The use of .* imports means that the introduction of
      the java.lang.reflect.Parameter to the java APIs
      is ambiguous (vs com.sun.javadoc.Parameter).

      Bug: 23133454
      Change-Id: I600ff3ab9d61ca0dd064c3b23600fed548e07234

      diff --git a/src/jdiff/RootDocToXML.java b/src/jdiff/RootDocToXML.java
      index f68a60b..5717287 100755
      --- a/src/jdiff/RootDocToXML.java
      +++ b/src/jdiff/RootDocToXML.java
      @@ -1,6 +1,7 @@
      package jdiff;

      import com.sun.javadoc.*;
      +import com.sun.javadoc.Parameter;
      import com.sun.javadoc.ParameterizedType;
      import com.sun.javadoc.Type;


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/javadiff/patches/8/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Patches: #8


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.