Skip to content

Scijava parameters (list?) do not work with wildcards generics #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NicoKiaru opened this issue Dec 21, 2020 · 11 comments
Closed

Scijava parameters (list?) do not work with wildcards generics #171

NicoKiaru opened this issue Dec 21, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@NicoKiaru
Copy link
Collaborator

The fixes-rawtype branch attempts to remove raw types in SourceAndConverter. Unfortunately, this fails with scijava input preprocessor. For some reasons, scijava attempts to put a File array into the parameter instead of a SourceAndConverter array.

Solving this needs more digging into the problematic scijava mechanism.

For now this prevents merging the rawtype-fix branch

@tischi
Copy link
Collaborator

tischi commented Dec 22, 2020

Could you paste a minimal example here? Then we could ask some knowledgable people 😃

Is it syntax like below that fails?

@Parameter
SourceAndConverter<?>[] sacs

@NicoKiaru
Copy link
Collaborator Author

Yep, I'll try to do that!

Probably not in this repo. I think the issue is in scijava-common. I'll ping you !

@imagejan
Copy link

For the record: scijava/scijava-common#415

@NicoKiaru
Copy link
Collaborator Author

👍 Thanks @imagejan. I'll be able to move on with this once scijava/scijava-common#416 is merged

@imagejan
Copy link

scijava/scijava-common#416 was merged, so we just need a new release of scijava-common (@ctrueden, @hinerm ?) and you should be able to proceed.

@hinerm
Copy link

hinerm commented Jan 27, 2021

@NicoKiaru @imagejan scijava-common is slated for release in the next pom-scijava, which is waiting for TrakEM2 and multiview-reconstruction.

@NicoKiaru
Copy link
Collaborator Author

So it's done now @hinerm ? If I update scijava pom to 30.0.0, I should have the fix, right ?

Another point : when is pom-scijava 30 supposed to be released for 'real', like in https://imagej.net/Fiji/Downloads ?

@NicoKiaru NicoKiaru added the enhancement New feature or request label Jan 31, 2021
@imagejan
Copy link

@NicoKiaru not yet: scijava/pom-scijava@b178a0b was committed after the 30.0.0 release, so will only be included in the next release.

(You can still manually pin to scijava-common-2.86.1 of course, but it wouldn't work in a current Fiji without you also serving the newer scijava-common from your update site.)

when is pom-scijava 30 supposed to be released for 'real', like in imagej.net/Fiji/Downloads ?

Ideally, the state of the update site should be the same as in the latest release of fiji/fiji, i.e. currently on pom-scijava-30.0.0 in fiji-2.2.0:

https://github.com/fiji/fiji/blob/9f01b16ab55e5168dd111f6026386bc464a39a96/pom.xml#L5-L10

However, I don't think there was another big round of uploads after that fiji release, was there? /cc @hinerm

@NicoKiaru
Copy link
Collaborator Author

Working on wildcard generics fix in the branch

https://github.com/bigdataviewer/bigdataviewer-playground/tree/fix-raw

@NicoKiaru
Copy link
Collaborator Author

https://github.com/bigdataviewer/bigdataviewer-playground/tree/fix-raw Will be merged for release with scijava 32.

@NicoKiaru
Copy link
Collaborator Author

All scijava commands now have generics . Wildcards everywhere because we are working on arrays of sources which can have different types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants