This document describes the changes made to the Jinterface application.
Array now show meaningful values in exceptions.
Own Id: OTP-12049
Documentation improvements.
Own Id: OTP-12050
Include the cause when raising a new IOException, which should make the reason for the exception clearer.
Own Id: OTP-12075
Arrays (here: md5 and freeVars) must not be compared with equals, which is broken (compares identity).
Own Id: OTP-12121
Implement support for Maps
The API and implementation are simplistic, like for lists and tuples, using arrays and without any connection to java.util.Map. (Thanks to Vlad Dumitrescu)
Own Id: OTP-11703
Fixed a bug in OtpErlangTuple constructor. Thanks to Vlad Dumitrescu.
Own Id: OTP-10819
Fixed finding cookie file on windows. Thanks to Vlad Dumitrescu
Own Id: OTP-10821
Don't compress external binary format if this increases the size. Thanks to Nico Kruber.
Own Id: OTP-10822
fix reading compressed binary terms from Java (Thanks to Nico Kruber)
Own Id: OTP-10505
OtpEpmd.lokupNames() no longer hangs when badly configured (Thanks to Vlad Dumitrescu)
Own Id: OTP-10579
Where necessary a comment stating encoding has been added to Erlang files. The comment is meant to be removed in Erlang/OTP R17B when UTF-8 becomes the default encoding.
Own Id: OTP-10630
Limited support for unicode atoms in the external format and in the internal representation of the vm. This is a preparative feature in order to support communication with future releases of Erlang/OTP that may create unicode atoms.
Own Id: OTP-10753
Correct spelling of registered (Thanks to Richard Carlsson)
Own Id: OTP-9925
Java 1.5 has a bug where detecting codepoint offsets in strings that are created by String.substring() gives wrong results. The new implementation uses a different method, avoinding the issue. (Thanks to Vlad Dumitrescu)
Own Id: OTP-9927
Improve error message when creating a too long OtpErlangAtom. Also print the value that we tried to use for the atom. (Thanks to Vlad Dumitrescu)
Own Id: OTP-9928
JInterface: improve OtpOutputStream buffer allocation
Previously, the buffer was increased linearly by 2048 bytes. I now propose to use an exponential increase function (similar to Javas ArrayList, e.g. always at least +50%). This significantly increases performance of e.g. doRPC for large parameters. (Thanks to Nico Kruber)
Own Id: OTP-9806
Some malformed distribution messages could cause VM to crash, this is now corrected.
Own Id: OTP-8993
The OtpMbox class did not have a hash() method, which it should have because it overrides equals().
Own Id: OTP-8854
An pom.xml file is now generated. (Thanks to Gabor Liptak.)
Own Id: OTP-8841
The documentation is now possible to build in an open source environment after a number of bugs are fixed and some features are added in the documentation build process.
- The arity calculation is updated.
- The module prefix used in the function names for bif's are removed in the generated links so the links will look like "http://www.erlang.org/doc/man/erlang.html#append_element-2" instead of "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-2".
- Enhanced the menu positioning in the html documentation when a new page is loaded.
- A number of corrections in the generation of man pages (thanks to Sergei Golovan)
- The legal notice is taken from the xml book file so OTP's build process can be used for non OTP applications.
Own Id: OTP-8343
The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.
Own Id: OTP-8201
Many Erlang classes, e.g. OtpErlangRef, was missing an implementation of the hashCode() method, making it futile to put them in hash structures such as HashMap. Bug and patch provided by Paul Guyot. We extended the patch to all classes and improved (?) on the hash algorithm.
Own Id: OTP-7899
jinterface uses the new environment variable ERL_EPMD_PORT the same way that erl, epmd and erl_interface do since R13A.
Own Id: OTP-7885
A number of fixes and improvements from the ErlIDE group; Vlad Dumitrescu and Jakob Cederlund: JDK 1.5 is now a minimal requirement for building Jinterface. New method: OtpEpmd.lookupNames. OtpErlangList is now iterable. Non-proper lists are now allowed - you have to test if a list is proper or not. Non-proper lists can also be created. New methods: isProper, getHead, getTail and getNthTail. The get tail methods creates a sublist object that re-uses the original list. OtpErlangPid is now Comparable. Empty atoms can now be constructed, a missing feature pointed out by Sebastien Boisgerault on erlang-questions.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7832
A bug when Jinterface did not detect remote node disconnects has been corrected.
Own Id: OTP-7624
Jinterface has been fixed to use the loopback interface when connecting to the Erlang Port Mapper Daemon - epmd. This facilitates firewall configuration and saves resources.
Own Id: OTP-7103
Jinterface now refuses to connect to another node that does not agree on the other node's name. This has been a problem in that a connection was set up, but not used on a following send, which caused a second erroneous connection attempt to fail since the other (Erlang) node rejects a connection due to name disagreement.
Problem reported and dissected by Alexander Lamb
Own Id: OTP-7330
Jinterface has been updated to handle compressed terms, bitstring, new (IEEE) floats and bignums. This has caused a few incompatibilities.
com.ericsson.otp.erlang.OtpOutputStream now extends java.io.ByteArrayOutputStream, previously java.lang.Object, and hence the method size() now return the number of bytes in the stream as dictated by the new parent class and not the buffer length as before. The new method length() returns what the old size() did return. The method count() is deprecated as it returns the same as the new size().
com.ericsson.otp.erlang.OtpErlangLong now can handle larger values than 64-bit. Previously when larger than 64-bit integers were sent to a Jinterface node, it caused an com.ericsson.otp.erlang.OtpDecodeException. Now the integer is accepted, but the return value of longValue() is silently truncated, as opposed to the return value of intValue() that now and previously raises an com.ericsson.otp.erlang.OtpRangeException for unrepresentable values. The new methods isLong() and isULong() can be used to determine if the value fits in a long.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6809
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-3932 Aux Id: seq5196
Strings longer than 65535 bytes were encoded wrong by jinterface.
Own Id: OTP-4883 Aux Id: OTP-4865
Misc bugfixes:
A node pinging itself does no longer cause the java program to hang.
Added
Added
Added
Own Id: OTP-5088
For java versions 1.3.1 or later,
Own Id: OTP-5169
Process identifiers and port identifiers have been made more unique. Previously 18 bits were used as id in the internal representation of process and port identifiers. Now 28 bits are used.
The maximum limit on the number of concurrently existing processes due to the representation of pids has been increased to 268435456 processes. The same is true for ports. This limit will at least on a 32-bit architecture be impossible to reach due to memory shortage.
NOTE: By default, the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-4968 Aux Id: OTP-4196
Output of Java long was truncated to 32 bits. IDL long long and unsigned long long could not be used in a struct for the Java backend. All unsigned integer types for the Java backend had broken marshalling for large values. These bugs has now been fixed.
Own Id: OTP-4763 Aux Id: seq8024