You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Tim Allison <ta...@apache.org> on 2021/05/07 16:13:25 UTC

Building with Java 11?

Hi All,
   I recently tried to build with Java 11 because of [1], I found that
the build was modifying module-info.java and module-info.class.  Is
this expected? Is the combination of the Java issue and this item a
sign I should put down the keyboard for the weekend a bit early?

 Cheers,

               Tim

svn diff
Index: poi-ooxml-lite/src/main/java9/module-info.class
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: poi-ooxml-lite/src/main/java9/module-info.java
===================================================================
--- poi-ooxml-lite/src/main/java9/module-info.java    (revision 1889636)
+++ poi-ooxml-lite/src/main/java9/module-info.java    (working copy)
@@ -29,7 +29,6 @@
     exports com.microsoft.schemas.office.excel;
     exports com.microsoft.schemas.office.office;
     exports com.microsoft.schemas.office.visio.x2012.main;
-    exports com.microsoft.schemas.office.word;
     exports com.microsoft.schemas.office.x2006.digsig;
     exports com.microsoft.schemas.vml;
     exports org.apache.poi.schemas.ooxml.system.ooxml;

[1] https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8266261

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: Building with Java 11?

Posted by Tim Allison <ta...@apache.org>.
Turns out I'm getting the same behavior with 8:

openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)

On Tue, May 11, 2021 at 2:08 AM Dominik Stadler <do...@gmx.at> wrote:
>
> Hi,
>
> I see similar behaviour also on Monday mornings, so no sign of missing outdoor-time :)
>
> Seems there is some difference between JDKs or other build-parameters which cause these difference when building, would be good interesting if anybody has a clue what the difference in build-setup is when they are created differently.
>
> Thanks... Dominik.
>
> On Fri, May 7, 2021 at 6:13 PM Tim Allison <ta...@apache.org> wrote:
>>
>> Hi All,
>>    I recently tried to build with Java 11 because of [1], I found that
>> the build was modifying module-info.java and module-info.class.  Is
>> this expected? Is the combination of the Java issue and this item a
>> sign I should put down the keyboard for the weekend a bit early?
>>
>>  Cheers,
>>
>>                Tim
>>
>> svn diff
>> Index: poi-ooxml-lite/src/main/java9/module-info.class
>> ===================================================================
>> Cannot display: file marked as a binary type.
>> svn:mime-type = application/octet-stream
>> Index: poi-ooxml-lite/src/main/java9/module-info.java
>> ===================================================================
>> --- poi-ooxml-lite/src/main/java9/module-info.java    (revision 1889636)
>> +++ poi-ooxml-lite/src/main/java9/module-info.java    (working copy)
>> @@ -29,7 +29,6 @@
>>      exports com.microsoft.schemas.office.excel;
>>      exports com.microsoft.schemas.office.office;
>>      exports com.microsoft.schemas.office.visio.x2012.main;
>> -    exports com.microsoft.schemas.office.word;
>>      exports com.microsoft.schemas.office.x2006.digsig;
>>      exports com.microsoft.schemas.vml;
>>      exports org.apache.poi.schemas.ooxml.system.ooxml;
>>
>> [1] https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8266261
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
>> For additional commands, e-mail: dev-help@poi.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: Building with Java 11?

Posted by Dominik Stadler <do...@gmx.at>.
Hi,

I see similar behaviour also on Monday mornings, so no sign of missing
outdoor-time :)

Seems there is some difference between JDKs or other build-parameters which
cause these difference when building, would be good interesting if anybody
has a clue what the difference in build-setup is when they are created
differently.

Thanks... Dominik.

On Fri, May 7, 2021 at 6:13 PM Tim Allison <ta...@apache.org> wrote:

> Hi All,
>    I recently tried to build with Java 11 because of [1], I found that
> the build was modifying module-info.java and module-info.class.  Is
> this expected? Is the combination of the Java issue and this item a
> sign I should put down the keyboard for the weekend a bit early?
>
>  Cheers,
>
>                Tim
>
> svn diff
> Index: poi-ooxml-lite/src/main/java9/module-info.class
> ===================================================================
> Cannot display: file marked as a binary type.
> svn:mime-type = application/octet-stream
> Index: poi-ooxml-lite/src/main/java9/module-info.java
> ===================================================================
> --- poi-ooxml-lite/src/main/java9/module-info.java    (revision 1889636)
> +++ poi-ooxml-lite/src/main/java9/module-info.java    (working copy)
> @@ -29,7 +29,6 @@
>      exports com.microsoft.schemas.office.excel;
>      exports com.microsoft.schemas.office.office;
>      exports com.microsoft.schemas.office.visio.x2012.main;
> -    exports com.microsoft.schemas.office.word;
>      exports com.microsoft.schemas.office.x2006.digsig;
>      exports com.microsoft.schemas.vml;
>      exports org.apache.poi.schemas.ooxml.system.ooxml;
>
> [1] https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8266261
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
>
>