bugKawa - Bugs: bug #49048, r8947 broken the build on...

 
 

bug #49048: r8947 broken the build on ParseFormat.java

Submitted by:  Yuki Okumura <okuoku>
Submitted on:  Sat 10 Sep 2016 07:57:13 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Problem building KawaStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 10 Sep 2016 06:08:44 PM UTC, comment #3:

Maybe some update or caching problem. ReportFormat used to be in gnu.text, but I recently moved it to the new package gnu.kawa.format.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sat 10 Sep 2016 05:37:22 PM UTC, comment #2:

> But I'm puzzled how an unneeded import could cause failure to build.


Uh, indeed. I cannot reproduce the failure on the same configuration(Ant + Java 1.8.0 + Kawa r8947) on Windows10..

Anyway, r8948 fixed the problem for me. Thanks for the fix!

--

FTR, full error log was:

Linux fedora64.local 4.6.6-300.fc24.x86_64 #1 SMP Wed Aug 10 21:07:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

select-java8:
[java] (variant java8 maps to: +JAVA5 +JAVA2 +use:java.util.IdentityHashMap +use:java.lang.CharSequence +use:java.lang.Throwable.getCause +use:java.net.URI +use:java.util.regex +SAX2 +use:java.nio +use:org.w3c.dom.Node +use:javax.xml.transform +JAXP-1.3 -JAXP-QName +JAVA6 +JAVA7 +JAVA8 -JAVA9 -JAVA6COMPAT5 +use:java.text.Normalizer +use:javax.lang.model +use:java.lang.invoke -Android)

-maybe-select-android:

build-tools:

build-settings:
[echo]
[echo] version=2.1.9
[echo] dist.kawa.jar=kawa.jar
[echo] build.dir=/home/oku/local/repos/yunibase/impl-current/kawa
[echo] with-awt=true
[echo] with-swing=true
[echo] with-sax2=true
[echo] enable-jemacs=false
[echo] enable-xml=true
[echo] enable-servlet=false
[echo] enable-android=false
[echo] enable-javafx=${do.enable.javafx}
[echo]

preprocess:

java-classes:
[javac] Compiling 237 source files to /home/oku/local/repos/yunibase/impl-current/kawa
[javac] /home/oku/local/repos/yunibase/impl-current/kawa/gnu/kawa/functions/ParseFormat.java:32: error: reference to ReportFormat is ambiguous
[javac] public ReportFormat parseFormat(InPort fmt)
[javac] ^
[javac] both class gnu.text.ReportFormat in gnu.text and class gnu.kawa.format.ReportFormat in gnu.kawa.format match

Yuki Okumura <okuoku>
Sat 10 Sep 2016 04:06:41 PM UTC, comment #1:

Thanks - checked in.

But I'm puzzled how an unneeded import could cause failure to build.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sat 10 Sep 2016 07:57:13 AM UTC, original submission:

Failed to build r8947. I think we do not need to import gnu.text.* in ParseFormat.java any longer.

javac 1.8.0_101.

diff --git a/gnu/kawa/functions/ParseFormat.java b/gnu/kawa/functions/ParseFormat.java
index 142ced8..9a45a8d 100644
--- a/gnu/kawa/functions/ParseFormat.java
+++ b/gnu/kawa/functions/ParseFormat.java
@@ -8,7 +8,6 @@ import gnu.kawa.io.InPort;
import gnu.mapping.*;
import gnu.math.FixedRealFormat;
import gnu.lists.*;
-import gnu.text.*;

public class ParseFormat extends Procedure1
{

Yuki Okumura <okuoku>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by okuoku (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 10 Sep 2016 06:08:44 PM UTCbothnerOpen/ClosedOpen=>Closed
    Sat 10 Sep 2016 04:06:41 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner

    Back to the top


    Powered by Savane 3.1-cleanup1