javaBeansWriter.ts writes what java.beans.XMLDecoder reads — the counterpart of javabeans.ts and the base of the .fls writer. Its input says explicitly what Java should do: construct a class with typed arguments, call setters, getters (with statements on their result), methods and indexed access; an object reached twice is written once with an id and referenced after. Unlike XMLEncoder it writes what it is given, defaults included. What XML 1.0 cannot hold (controls, lone surrogates, U+FFFE/F) and a CR, which XML would read as a line break, are written as <char code>. Checked by Java itself: nine files of the writer (strings with every kind of odd unit, all primitive types including NaN, -0.0 and a long beyond 2^53, collections, maps, shared objects, Rectangle, Color, FILIUS beans with getter chains, arrays, indexed access, a static constant) are read by XMLDecoder in the Java oracle (BeansDump), which describes what it got and collects the errors the decoder would only log. Mutation probes regenerate the files and let Java read each mutant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
65 lines
2.6 KiB
Plaintext
65 lines
2.6 KiB
Plaintext
# Words only this repository may use, in addition to the dashboard's
|
|
# scripts/code_language_allow.txt. Format: `path::word` (bound to one path or
|
|
# path prefix) or a bare word (anywhere). Each entry says why.
|
|
#
|
|
# The .fls format is Java's XMLEncoder output: its class and property names
|
|
# (filius.hardware.knoten.Vermittlungsrechner, GUIKnotenItem, ipAdresse …)
|
|
# are fields of a foreign API and keep their German names — in packages/fls
|
|
# only.
|
|
#
|
|
# Java FILIUS class and package names, cited in the provenance header of each
|
|
# ported file and in comments that point at the Java behaviour they copy.
|
|
vermittlungsrechner
|
|
verbindung
|
|
netzzugangsschicht
|
|
vermittlungsschicht
|
|
# The class name filius.hardware.knoten.Rechner, as the device classes of
|
|
# the .fls format are keyed in packages/fls (topology.ts and its test).
|
|
packages/fls/::rechner
|
|
# Property names of Java FILIUS's DHCPServer (aktiv, untergrenze, obergrenze,
|
|
# gatewayip, dnsserverip) and ModemFirmware (ipAdresse): read from the .fls
|
|
# file and written so by the Java oracle; our own types call them isActive,
|
|
# lowerBound, upperBound, gateway, dnsServer and ipAddress.
|
|
packages/fls/::aktiv
|
|
packages/fls/::untergrenze
|
|
packages/fls/::obergrenze
|
|
packages/fls/::gatewayip
|
|
packages/fls/::dnsserverip
|
|
packages/fls/::adresse
|
|
# Property names of Java FILIUS's ClientBaustein (zielIPAdresse, zielPort) and
|
|
# PeerToPeerAnwendung (maxTeilnehmerZahl), as the Java oracle writes them;
|
|
# our types call them targetAddress, targetPort and maxPeers.
|
|
packages/fls/::ziel
|
|
packages/fls/::teilnehmer
|
|
packages/fls/::zahl
|
|
# Property and method names of Java FILIUS's e-mail classes (EmailKonto:
|
|
# benutzername, passwort, nachname, vorname, smtpserver, smtpport, nachrichten;
|
|
# Email: absender, empfaenger, betreff, neu, versendet; EmailAnwendung:
|
|
# empfangene/gesendete/erstellte Nachrichten; EmailServer.kontenLaden), as the
|
|
# Java oracle writes them; our types call them username, password, lastName,
|
|
# firstName, smtpServer, smtpPort, messages, sender, to, subject, isNew,
|
|
# isSent, received, sent and drafts.
|
|
packages/fls/::benutzername
|
|
packages/fls/::passwort
|
|
packages/fls/::nachname
|
|
packages/fls/::vorname
|
|
packages/fls/::smtpserver
|
|
packages/fls/::smtpport
|
|
packages/fls/::nachrichten
|
|
packages/fls/::absender
|
|
packages/fls/::empfaenger
|
|
packages/fls/::betreff
|
|
packages/fls/::neu
|
|
packages/fls/::versendet
|
|
packages/fls/::empfangene
|
|
packages/fls/::gesendete
|
|
packages/fls/::erstellte
|
|
packages/fls/::konten
|
|
packages/fls/::laden
|
|
# Property names of Java FILIUS's Datei (dateiTyp, dateiInhalt) and Kontakt
|
|
# (hausnr), as Java's XMLDecoder and the Java oracle name them.
|
|
packages/fls/::datei
|
|
packages/fls/::hausnr
|
|
packages/fls/::typ
|
|
packages/fls/::inhalt
|