RE: [JENKINS-EA] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b83) - Build # 14463 - Still Failing!

2015-10-10 Thread Uwe Schindler
Hi,

 

I fixed the problem in source code. In fact, the Java 9 compiler could be right 
for this case: The type cannot be inferred easily here. So better be explicit 
for return type of singletonMap(). The problem is caused by broken NamedList 
and the extra constructor taking Map.Entry array.

 

I am still working on some reproduce case to as on the jdk-core-libs mailing 
list (or java tools mailing list). In any case, I prefer to be explicit for 
type inference and better not always rely on diamonds for complex cases.

 

Uwe

 

-

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

 <http://www.thetaphi.de/> http://www.thetaphi.de

eMail: u...@thetaphi.de

 

From: Uwe Schindler [mailto:u...@thetaphi.de] 
Sent: Friday, October 09, 2015 10:49 AM
To: dev@lucene.apache.org
Cc: rory.odonn...@oracle.com; Balchandra Vaidya
Subject: RE: [JENKINS-EA] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b83) - 
Build # 14463 - Still Failing!

 

This seems to be a bug in JDK 9 build 83'c Javac. Looks like this was caused by 
one of those issues:

 

http://hg.openjdk.java.net/jdk9/jdk9/langtools


Changeset

Bug ID

Synopsis


8fa8045bbd4e <http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/8fa8045bbd4e> 

8077306 <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8077306> 

Recursive implementation of List.map leads to stack overflow


286fc9270404 <http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/286fc9270404> 

8078093 <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8078093> 

Severe compiler performance regression Java 7 to 8 for nested method invocations

 

I will contact them through the mailing lists.

 

Uwe

 

-

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

http://www.thetaphi.de

eMail: u...@thetaphi.de

 

 

> -Original Message-

> From: Policeman Jenkins Server [ <mailto:jenk...@thetaphi.de> 
> mailto:jenk...@thetaphi.de]

> Sent: Friday, October 09, 2015 10:08 AM

> To: dev@lucene.apache.org

> Subject: [JENKINS-EA] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b83) - Build

> # 14463 - Still Failing!

> Importance: Low

> 

> Build:  <http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/14463/> 
> http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/14463/

> Java: 64bit/jdk1.9.0-ea-b83 -XX:+UseCompressedOops -XX:+UseG1GC

> 

> All tests passed

> 

> Build Log:

> [...truncated 8520 lines...]

> [javac] Compiling 874 source files to /home/jenkins/workspace/Lucene-

> Solr-trunk-Linux/solr/build/solr-core/classes/java

> [javac] warning: [options] bootstrap class path not set in conjunction 
> with -

> source 1.8

> [javac] /home/jenkins/workspace/Lucene-Solr-trunk-

> Linux/solr/core/src/java/org/apache/solr/core/ImplicitPlugins.java:102:

> error: reference to NamedList is ambiguous

> [javac] return new PluginInfo(SolrRequestHandler.TYPE, m, new

> NamedList<>(singletonMap(DEFAULTS, new NamedList(defaults))),null);

> [javac]   ^

> [javac]   both constructor NamedList(Entry<String,? extends T>[]) in

> NamedList and constructor NamedList(Map<String,? extends T>) in

> NamedList match

> [javac]   where T is a type-variable:

> [javac] T extends Object declared in class NamedList

> [javac] /home/jenkins/workspace/Lucene-Solr-trunk-

> Linux/solr/core/src/java/org/apache/solr/core/ImplicitPlugins.java:102:

> error: incompatible types: cannot infer type arguments for NamedList<>

> [javac] return new PluginInfo(SolrRequestHandler.TYPE, m, new

> NamedList<>(singletonMap(DEFAULTS, new NamedList(defaults))),null);

> [javac]   
>  ^

> [javac] reason: no instance(s) of type variable(s) K,V exist so that

> Map<K,V> conforms to Entry<String,? extends T>[]

> [javac]   where K,V,T are type-variables:

> [javac] K extends Object declared in method <K,V>singletonMap(K,V)

> [javac] V extends Object declared in method <K,V>singletonMap(K,V)

> [javac] T extends Object declared in class NamedList

> [javac] Note: Some input files use or override a deprecated API.

> [javac] Note: Recompile with -Xlint:deprecation for details.

> [javac] Note: Some input files use unchecked or unsafe operations.

> [javac] Note: Recompile with -Xlint:unchecked for details.

> [javac] Note: Some messages have been simplified; recompile with -

> Xdiags:verbose to get full output

> [javac] 2 errors

> 

> [...truncated 1 lines...]

> BUILD FAILED

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:775: The

> following error occurred while executing this line:

> /home/jenkins/workspace

RE: [JENKINS-EA] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b83) - Build # 14463 - Still Failing!

2015-10-09 Thread Uwe Schindler
This seems to be a bug in JDK 9 build 83'c Javac. Looks like this was caused by 
one of those issues:

 

http://hg.openjdk.java.net/jdk9/jdk9/langtools


Changeset

Bug ID

Synopsis


8fa8045bbd4e <http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/8fa8045bbd4e> 

8077306 <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8077306> 

Recursive implementation of List.map leads to stack overflow


286fc9270404 <http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/286fc9270404> 

8078093 <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8078093> 

Severe compiler performance regression Java 7 to 8 for nested method invocations

 

I will contact them through the mailing lists.

 

Uwe

 

-

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

http://www.thetaphi.de

eMail: u...@thetaphi.de

 

 

> -Original Message-

> From: Policeman Jenkins Server [mailto:jenk...@thetaphi.de]

> Sent: Friday, October 09, 2015 10:08 AM

> To: dev@lucene.apache.org

> Subject: [JENKINS-EA] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b83) - Build

> # 14463 - Still Failing!

> Importance: Low

> 

> Build:  <http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/14463/> 
> http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/14463/

> Java: 64bit/jdk1.9.0-ea-b83 -XX:+UseCompressedOops -XX:+UseG1GC

> 

> All tests passed

> 

> Build Log:

> [...truncated 8520 lines...]

> [javac] Compiling 874 source files to /home/jenkins/workspace/Lucene-

> Solr-trunk-Linux/solr/build/solr-core/classes/java

> [javac] warning: [options] bootstrap class path not set in conjunction 
> with -

> source 1.8

> [javac] /home/jenkins/workspace/Lucene-Solr-trunk-

> Linux/solr/core/src/java/org/apache/solr/core/ImplicitPlugins.java:102:

> error: reference to NamedList is ambiguous

> [javac] return new PluginInfo(SolrRequestHandler.TYPE, m, new

> NamedList<>(singletonMap(DEFAULTS, new NamedList(defaults))),null);

> [javac]   ^

> [javac]   both constructor NamedList(Entry<String,? extends T>[]) in

> NamedList and constructor NamedList(Map<String,? extends T>) in

> NamedList match

> [javac]   where T is a type-variable:

> [javac] T extends Object declared in class NamedList

> [javac] /home/jenkins/workspace/Lucene-Solr-trunk-

> Linux/solr/core/src/java/org/apache/solr/core/ImplicitPlugins.java:102:

> error: incompatible types: cannot infer type arguments for NamedList<>

> [javac] return new PluginInfo(SolrRequestHandler.TYPE, m, new

> NamedList<>(singletonMap(DEFAULTS, new NamedList(defaults))),null);

> [javac]   
>  ^

> [javac] reason: no instance(s) of type variable(s) K,V exist so that

> Map<K,V> conforms to Entry<String,? extends T>[]

> [javac]   where K,V,T are type-variables:

> [javac] K extends Object declared in method <K,V>singletonMap(K,V)

> [javac] V extends Object declared in method <K,V>singletonMap(K,V)

> [javac] T extends Object declared in class NamedList

> [javac] Note: Some input files use or override a deprecated API.

> [javac] Note: Recompile with -Xlint:deprecation for details.

> [javac] Note: Some input files use unchecked or unsafe operations.

> [javac] Note: Recompile with -Xlint:unchecked for details.

> [javac] Note: Some messages have been simplified; recompile with -

> Xdiags:verbose to get full output

> [javac] 2 errors

> 

> [...truncated 1 lines...]

> BUILD FAILED

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:775: The

> following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:719: The

> following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:59: The

> following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/build.xml:233: The

> following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-

> build.xml:516: The following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-

> build.xml:466: The following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-

> build.xml:379: The following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/common-

> build.xml:509: The following error occurred while executing this line:

> /home/jenkins/workspace/Lucene-Solr-trunk-Linux

[JENKINS-EA] Lucene-Solr-trunk-Linux (64bit/jdk1.9.0-ea-b83) - Build # 14463 - Still Failing!

2015-10-09 Thread Policeman Jenkins Server
Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/14463/
Java: 64bit/jdk1.9.0-ea-b83 -XX:+UseCompressedOops -XX:+UseG1GC

All tests passed

Build Log:
[...truncated 8520 lines...]
[javac] Compiling 874 source files to 
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/build/solr-core/classes/java
[javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.8
[javac] 
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/core/src/java/org/apache/solr/core/ImplicitPlugins.java:102:
 error: reference to NamedList is ambiguous
[javac] return new PluginInfo(SolrRequestHandler.TYPE, m, new 
NamedList<>(singletonMap(DEFAULTS, new NamedList(defaults))),null);
[javac]   ^
[javac]   both constructor NamedList(Entry[]) in 
NamedList and constructor NamedList(Map) in NamedList 
match
[javac]   where T is a type-variable:
[javac] T extends Object declared in class NamedList
[javac] 
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/core/src/java/org/apache/solr/core/ImplicitPlugins.java:102:
 error: incompatible types: cannot infer type arguments for NamedList<>
[javac] return new PluginInfo(SolrRequestHandler.TYPE, m, new 
NamedList<>(singletonMap(DEFAULTS, new NamedList(defaults))),null);
[javac]^
[javac] reason: no instance(s) of type variable(s) K,V exist so that 
Map conforms to Entry[]
[javac]   where K,V,T are type-variables:
[javac] K extends Object declared in method singletonMap(K,V)
[javac] V extends Object declared in method singletonMap(K,V)
[javac] T extends Object declared in class NamedList
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Note: Some messages have been simplified; recompile with 
-Xdiags:verbose to get full output
[javac] 2 errors

[...truncated 1 lines...]
BUILD FAILED
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:775: The following 
error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:719: The following 
error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:59: The following 
error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/build.xml:233: The 
following error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-build.xml:516: The 
following error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-build.xml:466: The 
following error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-build.xml:379: The 
following error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/common-build.xml:509: 
The following error occurred while executing this line:
/home/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/common-build.xml:1944: 
Compile failed; see the compiler error output for details.

Total time: 18 minutes 54 seconds
Build step 'Invoke Ant' marked build as failure
Archiving artifacts
[WARNINGS] Skipping publisher since build result is FAILURE
Recording test results
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org