aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/java_src
AgeCommit message (Collapse)Author
2014-12-08Add .appup fileRickard Green
2014-10-01Merge branch 'vladdu/jinterface_code_cleanup/OTP-12211' into maintMarcus Arendt
* vladdu/jinterface_code_cleanup/OTP-12211: fix warning: Socket's InputStream not closed silence 'potential resource leak' warnings don't warn about some unused fields/variables handle warnings about potential null pointers keep all method parameters final renamed method parameters hiding fields add 'break' statements to make compiler happy remove warnings from OtpMD5 rename OtpNode.flags to connFlags rename OtpNode.Acceptor.port to acceptorPort rename field 'self' to 'localNode' mark deprecated unused private constructor simplify 'if' statements remove warnings: @Override, switch fall-through make serialVersionUID fields private remove unnecessary syntax (casts) remove unused variables removed unnecessary semicolons, imports, labels remove unnecessary null pointer checks remove unnecessary Cloneable and Serializable
2014-10-01Merge branch 'vladdu/jinterface_findbugs/OTP-12210' into maintMarcus Arendt
* vladdu/jinterface_findbugs/OTP-12210: OtpErlangList.clone must not return null handle empty .erlang.cookie without crashing
2014-09-30Merge branch 'maint-17' into maintHenrik Nord
Conflicts: OTP_VERSION lib/ssh/test/ssh_connection_SUITE.erl
2014-09-19Add erl_interface and jinterface .app filesRickard Green
2014-09-12OtpErlangList.clone must not return nullVlad Dumitrescu
2014-09-12handle empty .erlang.cookie without crashingVlad Dumitrescu
2014-09-11fix warning: Socket's InputStream not closedVlad Dumitrescu
The warning is issued if we assign the stream to a variable. The stream is getting closed together with the socket.
2014-09-11silence 'potential resource leak' warningsVlad Dumitrescu
OtpInputStream and OtoOutputStream don't need closing (they are ByteArray*Streams)
2014-09-11don't warn about some unused fields/variablesVlad Dumitrescu
2014-09-11keep all method parameters finalVlad Dumitrescu
2014-09-11renamed method parameters hiding fieldsVlad Dumitrescu
2014-09-11remove warnings from OtpMD5Vlad Dumitrescu
2014-09-11rename OtpNode.flags to connFlagsVlad Dumitrescu
was colliding to AbstractNode.flags
2014-09-11rename OtpNode.Acceptor.port to acceptorPortVlad Dumitrescu
was colliding with OtpLocalNode.port
2014-09-11rename field 'self' to 'localNode'Vlad Dumitrescu
field 'OtpLocalNode self' was colliding with 'OtpSelf self' in OtpConnection
2014-09-11mark deprecated unused private constructorVlad Dumitrescu
2014-09-11simplify 'if' statementsVlad Dumitrescu
2014-09-11remove warnings: @Override, switch fall-throughVlad Dumitrescu
2014-09-11make serialVersionUID fields privateVlad Dumitrescu
2014-09-11remove unnecessary syntax (casts)Vlad Dumitrescu
2014-09-11remove unused variablesVlad Dumitrescu
2014-09-11removed unnecessary semicolons, imports, labelsVlad Dumitrescu
2014-09-11remove unnecessary null pointer checksVlad Dumitrescu
2014-09-11remove unnecessary Cloneable and SerializableVlad Dumitrescu
2014-09-10let Java compiler output all warningsVlad Dumitrescu
2014-08-25Merge branch 'vladdu/jinterface_fun_equals' into maintBruce Yinhe
OTP-12121 * vladdu/jinterface_fun_equals: jinterface: fix bug in equality for OtpErlangFun
2014-07-21jinterface: fix bug in equality for OtpErlangFunVlad Dumitrescu
Arrays (here: md5 and freeVars) must not be compared with equals, which is broken.
2014-07-16Include the cause when raising a new IOExceptionGarret Smith
2014-07-09Merge branch 'nox/fix-javadoc' into maintBruce Yinhe
OTP-12050 * nox/fix-javadoc: Fix a few javadoc errors
2014-06-08Fix a few javadoc errorsAnthony Ramine
Reported-by: Boris Mühmer
2014-06-02jinterface: OtpInputStream exceptions show useless valueVlad Dumitrescu
Arrays have no meaningful toString method, but one must use Arrays.toString instead. The meaningless value would look for example like "[C@16f0472", instead of "[2,4]".
2014-03-14erts: Add distribution capability flag for maps DFLAG_MAP_TAGSverker Eriksson
This is just a preparation to allow detection of older nodes that do not understand maps (R16 and older).
2014-03-14erts: Change external format for mapsSverker Eriksson
to be: 116,Arity, K1,V1,K2,V2,...,Kn,Vn instead of: 116,Arity, K1,K2,...,Kn, V1,V2,....,Vn We think this will be better for future internal map structures like HAMT. Would be bad if we need to iterate twice over HAMT in term_to_binary, one for keys and one for values.
2014-02-11jinterface: implement support for mapsVlad Dumitrescu
The API and implementation are simplistic, like for lists and tuples, using arrays and without any connection to java.util.Map.
2013-02-22Update copyright yearsBjörn-Egil Dahlberg
2013-02-13Merge branch 'nk/jinterface_dont_compress_if_size_increased/OTP-10822'Fredrik Gustafsson
* nk/jinterface_dont_compress_if_size_increased/OTP-10822: jinterface, OtpOutputStream: add a write_compressed(object, level) method jinterface: fix a memory leak jinterface: new limited OutputStream implementation without the need to resize jinterface: don't return compressed external term if bigger than uncompressed jinterface: don't compress small erlang terms < 5 bytes jinterface, OtpOutputStream: properly override the three write() methods to ensure our growth strategy jinterface: fix typo in error message if encoding fails jinterface: don't need another FilterOutputStream wrapper
2013-02-12Merge branch 'vd/jinterface_windows_cookie/OTP-10821'Fredrik Gustafsson
* vd/jinterface_windows_cookie/OTP-10821: jinterface: fix finding cookie file on windows
2013-02-04jinterface, OtpOutputStream: add a write_compressed(object, level) methodNico Kruber
Now that we use an own deflater, we can also allow the user to specify the compression level as in Erlang's term_to_binary/2.
2013-02-04jinterface: fix a memory leakNico Kruber
after the first try to compress the value with a fixed buffer size, the deflater must be closed so that memory can be (instantly) reused
2013-02-04jinterface: new limited OutputStream implementation without the need to resizeNico Kruber
(saves memory re-allocations)
2013-02-04jinterface: don't return compressed external term if bigger than uncompressedNico Kruber
Now, OtpOutputStream#write_compressed() uses the same mechanism as erts_term_to_binary() in external.c: it tries to compress the given term into a buffer of the size of the uncompressed term and if this is not possible, i.e. the compression plus headers is bigger, it uses the uncompressed external term format instead.
2013-02-04jinterface: don't compress small erlang terms < 5 bytesNico Kruber
Compression always has at least 5 bytes (the compressed tag + original size) so we can't get a smaller external term if the original term is already smaller than 5 bytes.
2013-02-04jinterface, OtpOutputStream: properly override the three write() methods to ↵Nico Kruber
ensure our growth strategy Previously, if code called e.g. write(byte[] b, int off, int len), the growth strategy of the parent class ByteArrayOutputStream was used.
2013-02-04jinterface: fix typo in error message if encoding failsNico Kruber
2013-02-04jinterface: don't need another FilterOutputStream wrapperNico Kruber
DeflaterOutputStream is already an FilterOutputStream
2013-02-01jinterface: fix finding cookie file on windowsVlad Dumitrescu
Jinterface uses System.getProperty("user.home") to locate the user's home and the cookie file. On Windows, the result might be different than the value used by Erlang, which looks first to the HOMEDRIVE and HOMEPATH variables. The fix makes jinterface use the same logic.
2013-02-01fix bug in OtpErlangTuple constructorVlad Dumitrescu
The elems field would remain unitialized if the count parameter is zero in constructor
2013-01-25Update copyright yearsBjörn-Egil Dahlberg
2013-01-23Merge branch 'sverk/r16/utf8-atoms'Sverker Eriksson
* sverk/r16/utf8-atoms: erl_interface: Fix bug when transcoding atoms from and to UTF8 erl_interface: Changed erlang_char_encoding interface erts: Testcase doing unicode atom printout with ~w erl_interface: even more utf8 atom stuff erts: Fix bug in analyze_utf8 causing faulty latin1 detection Add UTF-8 node name support for epmd workaround... Fix merge conflict with hasse UTF-8 atom documentation test case erl_interface: utf8 atoms continued Add utf8 atom distribution test cases atom fixes for NIFs and atom_to_binary UTF-8 support for distribution Implement UTF-8 atom support for jinterface erl_interface: Enable decode of unicode atoms stdlib: Fix printing of unicode atoms erts: Change internal representation of atoms to utf8 erts: Refactor rename DFLAG(S)_INTERNAL_TAGS for conformity Conflicts: erts/emulator/beam/io.c OTP-10753