Bulk output flag throws error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start with src/main/java/be/ugent/idlab/knows/mappingweaver/cli/Main.java, especially the option parsing at line 106, and reproduce the failure using the --bulk flag. Trace the parsed value and verify that enabling --bulk no longer produces the reported ClassCastException and allows the command to run.
Written by the indexing model from the issue text.
Description
While trying to deduplicate the output (cf. #7), I tried running MappingWeaver with the --bulk flag, only to find that enabling this option immediately results in an error:
Exception in thread "main" java.lang.RuntimeException: java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
at be.ugent.idlab.knows.mappingweaver.cli.Main.parseAndRun(Main.java:172)
at be.ugent.idlab.knows.mappingweaver.cli.Main.main(Main.java:58)
Caused by: java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
at be.ugent.idlab.knows.mappingweaver.cli.Main.parseAndRun(Main.java:106)
... 1 more
The culprit seems to be an implicit type cast when parsing the option in mappingweaver/cli/Main.java#L106.
- Dominant language
- Java
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RMLio/MappingWeaver-java
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RMLio/MappingWeaver-java#13 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
RMLio/MappingWeaver-java#12 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RMLio/MappingWeaver-java#10 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in RMLio/MappingWeaver-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100