Skip to content

String Formatter error when key or value of Qualifier has character "%" #886

Description

@chenzhiw

feature.addQualifier("note", new Qualifier("note", "coding sequ%_ece", true));
GenbankWriterHelper.writeNucleotideSequence(......)

Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '_'
        at java.util.Formatter.checkText(Formatter.java:2579)
        at java.util.Formatter.parse(Formatter.java:2555)
        at java.util.Formatter.format(Formatter.java:2501)
        at java.io.PrintWriter.format(PrintWriter.java:905)
        at org.biojava.nbio.core.sequence.io.GenbankWriter.process(GenbankWriter.java:95)
        at org.biojava.nbio.core.sequence.io.GenbankWriterHelper.writeNucleotideSequence(GenbankWriterHelper.java:135)
        at GenBank.main(GenBank.java:41)

Metadata

Metadata

Assignees

Labels

bugBugs and bugfixeshelp wantedQuestions and support for users

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions