jabref
jabref copied to clipboard
BibtexParser reports "Empty text token" when parsing malformed BibTeX input
JabRef version
5.15 (latest release)
Operating system
macOS
Details on version and operating system
No response
Checked with the latest development build (copy version output from About dialog)
- [x] I made a backup of my libraries before testing the latest development version.
- [x] I have tested the latest development version and the problem persists
Steps to reproduce the behaviour
Description
While performing automated combinatorial parser testing on JabRef's BibTeX handling components, an "Empty text token" parsing error was observed when malformed BibTeX input was processed.
Steps to reproduce
Parse/import malformed BibTeX content such as:
@article{key
author={John Doe}
title={AI Research}
}
The parser reports:
Empty text token.
This could be caused by a missing comma between two fields.
**Expected behavior**
The parser should ideally:
provide clearer recovery/error handling for malformed field structures, or
more gracefully identify the exact malformed location.
**Environment**
JabRef latest master branch
Java 25
Gradle/JUnit-based parser testing
macOS
### Appendix
...
<details>
<summary>Log File</summary>
</details>
Isn't the error message clear enough?
Please do not use AI to create issue.
Slop issues .Just close