aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/java_src/com
AgeCommit message (Collapse)Author
2016-04-13Merge branch 'henrik/update-copyrightyear'Henrik Nord
* henrik/update-copyrightyear: update copyright-year
2016-04-07erts: Add DFLAG_BIG_CREATIONSverker Eriksson
to let future nodes know that we can handle NEW_PID_EXT, NEW_PORT_EXT and NEWER_REFERENCE_EXT.
2016-04-07jinterface: Support 32-bit creation valuesSverker Eriksson
2016-03-15update copyright-yearHenrik Nord
2015-12-07Merge branch 'vladdu/jinterface_map_sortkeys' into maintHenrik Nord
* vladdu/jinterface_map_sortkeys: Improve sorting order of keys in a map
2015-12-03Improve sorting order of keys in a mapVlad Dumitrescu
The implementation sorted keys differently for different Java versions (probably due to different hashing algorithms), so we switch it to use LinkedHashMap where the order is deterministic.
2015-11-17jinterface: fix writing small compressed valuesNico Kruber
This is a regression of 4390e43558 in the OtpOutputStream class. We can not call java.util.zip.DeflaterOutputStream.close() in the finally block of the OtpOutputStream.write_compressed(OtpErlangObject, int) method. This leads to a NullPointerException when encoding "{}" which is caused by the DeflaterOutputStream trying to write bytes to the deflater which was "destroyed" by calling java.util.zip.Deflater.end(). Further possibilities to call close() in the finally block are not suitable either (see the comment in the source). This leaves no choice but to revert the change from 4390e43558 in this class (and add an appropriate test case).
2015-11-04OtpInputStream: external fun terms in read_any()Sergey Savenko
Term tag matching switch statement was missing external fun tag.
2015-06-18Change license text to APLv2Bruce Yinhe
2015-05-12Remove extra @param in javadocVlad Dumitrescu
This gives an error when building the docs.
2015-04-29Merge branch 'x0id/jinterface_generic_match'Zandra Hird
* x0id/jinterface_generic_match: jinterface: match/bind added to OtpErlangObject fix typo error from recent merge OTP-12691
2015-02-03jinterface: match/bind added to OtpErlangObjectDmitriy Kargapolov
Adding these two methods to the OtpErlangObject abstract class makes possible implementing of pattern matching and variable binding for all types of Erlang terms. Particular implementations may vary and include additional classes to define Variable placeholder objects and Bindings objects. Also Parser class may be added to facilitate creating complex patterns and terms. The purpose of this commit is to provide low level interface base methods sufficient for variety of higher level pattern matching/variable binding implementations. OtpErlangMap class is re-designed for efficiency (it is based on HashMap now). All changes are backward-compatible. Detailed test cases implemented.
2015-01-31jinterface: transport factory implementationDmitriy Kargapolov
Transport factory basic implementation added. This makes possible creating connections between nodes using ssh channels for example. Default transport factory based on standart Socket/ServerSocket classes is provided. Modifications are backward compatible.
2014-12-08Merge branch 'maint'Rickard Green
* maint: Add .appup file
2014-12-08Add .appup fileRickard Green
2014-11-25[jinterface] cleanup code according to new styleVlad Dumitrescu
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.