Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

9 results about "Java bytecode" patented technology

Java bytecode is the instruction set of the Java virtual machine (JVM).

AI service intelligent fault tolerance and degradation method and device based on Java bytecode enhancement technology, equipment, medium and product

The invention discloses an AI service intelligent fault tolerance and degradation method, device and equipment based on a Java bytecode enhancement technology, a medium and a product, and relates to the technical field of AI service integration. According to the method, in a class loading period of Java application starting, a loaded class is scanned to identify target methods marked with declarative fault-tolerant annotations, a bytecode operation framework is utilized to enhance the target methods so as to implant a unified fault-tolerant logic interception entry, and then in a running period, when the target methods are called, the target methods are subjected to fault-tolerant annotation processing. And triggering a fault-tolerant interceptor through the interception entrance to analyze the annotation to obtain a fault-tolerant strategy, allocating an independent fault-tolerant component instance to the fault-tolerant interceptor based on the unique identifier of the method, constructing and executing an enhanced call chain containing a fusing check and retry mechanism, and finally, if the execution of the call chain fails, executing the fault-tolerant interceptor. And if yes, a preset degradation method in the fault-tolerant strategy is automatically executed, so that complete non-intrusive decoupling of AI service fault-tolerant management and service logic can be realized, and the reliability of the system is remarkably improved.
Owner:BEIJING INSIGHT NETWORK CO LTD

Java bytecode injection methods and apparatuses, electronic devices, and storage media

This specification provide example Java bytecode injection methods, apparatuses and machine-readable storage media, which can be applied to a Javaagent framework deployed in a Java virtual machine. In an example, a to-be-injected Java bytecode submitted by a target service module in at least one service module is obtained, and a target implementation class corresponding to the to-be-injected Java bytecode is determined. A target injection point type corresponding to the target implementation class is determined, and the target injection point type is respectively matched with mapping relationships maintained in the Java virtual machine to determine a target injection mode corresponding to the target injection point type. A globally unique class transformer is invoked so that the class transformer injects, based on the target injection mode, the Java bytecode into a class file that corresponds to the target service module and that is to be loaded by the Java virtual machine.
Owner:ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

A test method for an application system

The application relates to the technical field of testing, and discloses a test method for an application system, which comprises the following steps: acquiring a system configuration file, a local application program package and a corresponding local Java bytecode file of a local application system, and determining a target full-amount corresponding relationship of the local application system; acquiring different Java bytecode files of different versions of application program packages, and determining a program difference list; acquiring an outbound configuration file, and combining the target full-amount corresponding relationship and the program difference list to determine a first full-amount test range of the local application system and a plurality of second full-amount test ranges of a plurality of other application systems, and then testing the application system to obtain a target test result of the application system, which realizes bidirectional accurate analysis of a test range of a local program change on itself and other systems and of other system changes on the local system, comprehensively covers transaction interface and business function test requirements among multiple systems in an enterprise, and guarantees the overall operation stability of the application system.
Owner:BEIJING RONGXIN YIAN INFORMATION TECH CO LTD

Semi-random automatic testing method and system for Android local library

PendingCN121364997AError detection/correctionProgramming languageJava bytecode
The embodiment of the invention provides a semi-random automatic testing method and system for an Android local library, and the method comprises the steps: taking an Android APK as input, and generating a local library function list; c / C + + codes in the APK are converted into Java byte codes, and the Java byte codes are repackaged to obtain a cross-language unified APK; based on the cross-language unified APK, constructing a composite call relation graph containing App states, UIs and cross-language function calls; according to the composite calling relation graph, guiding random testing so as to generate a state transition event library; based on the state transition event library, generating a test case pool by adopting a permutation and combination strategy; and selecting a test case from the test case pool, and executing a semi-random automatic test on the Android local library function. According to the invention, the pertinence, the coverage rate and the efficiency of the test can be obviously improved.
Owner:BEIJING UNIV OF TECH

Method and device for generating Java byte code hidden watermarking based on latent semantic adversarial

The invention discloses a Java byte code hidden watermarking method and device based on latent semantic adversarial generation, and belongs to the technical field of software watermarking. The method comprises the following steps: constructing a training data set containing a plurality of semantic equivalence code pairs; constructing a generative adversarial network based on a Transform architecture, wherein the generative adversarial network comprises a feature embedding layer, a generator, a latent semantic space virtual obfuscator and a discriminator; based on the training data set, applying disturbance to an output feature sequence of the generator by using a latent semantic space virtual obfuscator, performing watermark signal identification on the disturbed feature sequence by using a discriminator as a confrontation condition, and performing alternate confrontation training on the generator and the discriminator; and inputting the original Java bytecode instruction sequence to be protected and the target watermark information into the generative adversarial network, and outputting the Java bytecode instruction sequence which is semantically equivalent and embedded with the target watermark information by a generator. According to the invention, the concealment of the watermark is improved.
Owner:COLASOFT

Log desensitization method and system based on Java bytecode rewriting, storage medium and product

The invention discloses a log desensitization method and system based on Java bytecode rewriting, a storage medium and a product, and relates to the technical field of log desensitization, the log desensitization method based on Java bytecode rewriting comprises the following steps: scanning folder paths of all Java source files in a compiling stage, and temporarily storing scanned class files; when the character string conversion algorithm of the class file is traversed, updating byte codes in the character string conversion algorithm into a preset desensitization algorithm to obtain a target character string conversion algorithm; if the to-be-recorded log contains the sensitive information, matching a sensitive field corresponding to the sensitive information based on a desensitization configuration file of a configuration center; and when the configuration center does not contain the sensitive field, acquiring and calling a newly added desensitization strategy to perform desensitization processing on the sensitive field. On the basis, the code does not need to be put into production again, dynamic desensitization is carried out on the newly added desensitization content, and the efficient and timely desensitization effect is achieved.
Owner:CHINA MERCHANTS BANK

Java bytecode steganography method and device based on latent semantic adversarial generation

The application discloses a Java bytecode hidden watermarking method and device based on latent semantic generative adversarial, and belongs to the technical field of software watermarking. The method comprises the following steps: constructing a training data set comprising a plurality of semantic equivalent code pairs; constructing a generative adversarial network based on a Transformer architecture, wherein the generative adversarial network comprises a feature embedding layer, a generator, a latent semantic space virtual confuser and a discriminator; based on the training data set, applying disturbance to an output feature sequence of the generator by the latent semantic space virtual confuser, and performing watermark signal identification on the disturbed feature sequence by the discriminator as an adversarial condition, and alternately training the generator and the discriminator; inputting an original Java bytecode instruction sequence to be protected and target watermark information into the generative adversarial network, and outputting a Java bytecode instruction sequence which is semantic equivalent and embedded with the target watermark information by the generator. The application improves the concealment of the watermark.
Owner:COLASOFT

Java application program generation method and device, Java application program operation method and device, equipment and medium

The invention discloses a Java application program generation method and device, a Java application program operation method and device, equipment and a medium, which are used for enhancing the reverse analysis prevention capability of a Java application program, are safe and efficient in protection effect and have good service compatibility. The method comprises the following steps: acquiring a Java bytecode file to be encrypted from a target namespace; for each Java byte code file to be encrypted, generating an encryption parameter, and encrypting a Java byte code by using the encryption parameter to obtain a Java byte code ciphertext; function bodies of all functions in the Java bytecode file are emptied, declarations of all the functions are reserved, and for each function, a default return value of the function is filled according to the return type of the function; encrypting the encryption parameter to obtain an encryption parameter ciphertext; using the Java byte code ciphertext and the encryption parameter ciphertext to generate a Java byte code encryption file; and based on all the Java byte code encryption files, generating a Java application ciphertext program package.
Owner:ZHEJIANG DAHUA TECH CO LTD

API (Application Program Interface) document generation method and system based on Java bytecode static analysis

The invention relates to an API (Application Program Interface) document generation method and system based on Java bytecode static analysis, which thoroughly get rid of the dependence on the environment when an application program runs by directly reading a JAR / WAR packet and carrying out static analysis on a bytecode file. This means that the API document can be generated immediately after the code is compiled and packaged, the efficiency and flexibility of document generation are greatly improved, and the API document can be more easily integrated into a DevOps process. All complex data types in the input parameter and the output parameter of the method can be recursively analyzed by utilizing the method signature, the field information and the generic information obtained by the byte code level. Through accurate analysis of method signatures and mapping of class generic parameters, even a deep nested generic structure can be accurately identified and analyzed to class definitions in a dependency library. And based on analysis of the annotations in the byte codes, the flexibility is high, and the expansibility is high.
Owner:SHANGHAI FINANCIAL FUTURES INFORMATION TECH CO LTD