Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Resolve ambiguous method reference#5

Open
pkeller wants to merge 1 commit intoapache:trunk from
pkeller:trunk
Open

Resolve ambiguous method reference #5
pkeller wants to merge 1 commit intoapache:trunk from
pkeller:trunk

Conversation

@pkeller
Copy link

@pkeller pkeller commented May 24, 2022

When importing the XMLBeans code into Eclipse, I get the following compile-time errors at this line:

The method map(Function<? super List<? extends SchemaComponent>,? extends R>) in the type 
Stream<List<? extends SchemaComponent>> is not applicable for the arguments (((fun2 == null) ? 
SchemaTypeSystemImpl::buildComponentRefMap : fun2))
The type of buildComponentRefMap(List<? extends SchemaComponent>) from the type 
SchemaTypeSystemImpl is Map<QName,SchemaComponent.Ref>, this is incompatible with the 
descriptor's return type: R

This may well be a quirk of the Eclipse compiler, that it can't resolve ambiguous method references except as a simple argument to the map function, but switching to a lambda seems harmless to me and will help people who use Eclipse to examine the XMLBeans code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /