Tagged articles

Reflection

330 articles · Page 4 of 4
Didi Tech
Didi Tech
May 17, 2019 · Fundamentals

Understanding Go Reflection: Types, Values, and Practical Applications

Go’s reflection, accessed via the reflect package’s TypeOf and ValueOf functions, lets programs inspect and modify runtime types and values—including fields, tags, and slices—while obeying settable rules, enabling generic utilities such as JSON serialization, deep equality checks, and dynamic ORM-like behavior.

@ValueDeepEqualReflection
0 likes · 27 min read
Understanding Go Reflection: Types, Values, and Practical Applications
Qunar Tech Salon
Qunar Tech Salon
Dec 19, 2018 · Backend Development

Eliminating Redundant TypeReference: A Deep Dive into Java Generic Type Capture

This article explores the limitations of Java generics, demonstrates how to remove repetitive TypeReference declarations by capturing generic type information via reflection, adds runtime validation for illegal generic types, and presents a comprehensive solution that handles Class, ParameterizedType, GenericArrayType, TypeVariable, and WildcardType.

DesignPatternJavaReflection
0 likes · 9 min read
Eliminating Redundant TypeReference: A Deep Dive into Java Generic Type Capture
Programmer DD
Programmer DD
Jun 21, 2018 · Fundamentals

Master Java Interview Essentials: 8 Classic Questions Explained

This article breaks down eight core Java interview questions, offering deep analysis of platform fundamentals, exception handling, reflection, I/O, concurrency, and object‑oriented design to help candidates demonstrate solid understanding beyond superficial answers.

Core ConceptsIOJava
0 likes · 12 min read
Master Java Interview Essentials: 8 Classic Questions Explained
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 13, 2018 · Backend Development

What Are Annotations in Java? Definition, Uses, Meta‑Annotations, and Custom Annotation Example

This article explains Java annotations—what they are, how they work, their common uses such as documentation generation and compile‑time checks, the four built‑in meta‑annotations, standard annotations like @Override, and how to create and apply custom annotations with a complete code example.

JavaMeta‑annotationsReflection
0 likes · 7 min read
What Are Annotations in Java? Definition, Uses, Meta‑Annotations, and Custom Annotation Example
Qunar Tech Salon
Qunar Tech Salon
May 16, 2018 · Backend Development

Performance Analysis and Optimization of Synchronized Reflection Calls in a Java Backend Service

The article investigates a high‑traffic Java backend issue caused by synchronized reflection calls, analyzes thread‑blocking stack traces, demonstrates the problematic code, and presents a compile‑time PropertyDescriptor optimization that eliminates runtime locking, resulting in significant latency improvements and a deeper understanding of JVM lock mechanisms.

JVMPerformanceReflection
0 likes · 14 min read
Performance Analysis and Optimization of Synchronized Reflection Calls in a Java Backend Service
360 Tech Engineering
360 Tech Engineering
Apr 19, 2018 · Mobile Development

Bypassing Android P Hidden API Restrictions: Three Practical Methods

This article analyzes the restriction mechanism of hidden APIs in Android P Preview 1 and presents three verified techniques—direct module provisioning, class‑loader manipulation, and access‑flag tampering—that allow developers to invoke system hidden APIs without triggering runtime warnings.

AndroidAndroid PBypass
0 likes · 8 min read
Bypassing Android P Hidden API Restrictions: Three Practical Methods
Qizhuo Club
Qizhuo Club
Apr 12, 2018 · Mobile Development

How to Bypass Android P Hidden API Restrictions: Three Proven Methods

This article analyzes Android P's hidden API restrictions, explains the underlying distinction mechanisms, and presents three practical techniques—direct calls with a provided module, classloader manipulation via reflection, and access flag tampering—to reliably invoke hidden system APIs on Android devices.

AndroidBypassHidden API
0 likes · 8 min read
How to Bypass Android P Hidden API Restrictions: Three Proven Methods
JD Tech
JD Tech
Mar 20, 2018 · Mobile Development

Android P Disables Non‑Official APIs: Overview, Testing, and Impact

The article explains how Android P disables hidden (non‑official) APIs, describes the reasons behind the restriction, outlines the grey‑list classification, provides verification steps and code examples for testing, and warns developers of the potential consequences for apps that rely on these APIs.

API restrictionsAndroidP preview
0 likes · 8 min read
Android P Disables Non‑Official APIs: Overview, Testing, and Impact
Suishouji Tech Team
Suishouji Tech Team
Mar 20, 2018 · Fundamentals

Why Protocol Buffers Outperform JSON and XML for Mobile Data Transfer

Protocol Buffers, Google’s cross‑platform serialization format, dramatically reduces payload size and speeds up transmission compared to JSON or XML by using compact binary encoding, Varint and ZigZag techniques, and offers powerful reflection mechanisms illustrated with Objective‑C examples and detailed code snippets.

ReflectionVarintZigzag
0 likes · 14 min read
Why Protocol Buffers Outperform JSON and XML for Mobile Data Transfer
JD Retail Technology
JD Retail Technology
Mar 19, 2018 · Mobile Development

Android P Restricts Non‑Official APIs: Overview, Verification, and Practical Testing

This article explains how Android P disables the use of hidden (non‑SDK) APIs, describes the official restrictions and grey‑list classifications, provides verification steps and download links, and demonstrates a practical reflection test on the WifiManager hidden field, highlighting the impact on developers.

AndroidAndroid PNon‑SDK API
0 likes · 8 min read
Android P Restricts Non‑Official APIs: Overview, Verification, and Practical Testing
Java Captain
Java Captain
Jan 2, 2018 · Fundamentals

Understanding Java Reflection: Concepts, Common Methods, and Example Exercises

This article explains Java's reflection mechanism, describing how Class objects represent runtime types, how to obtain them, and demonstrating common reflective operations such as inspecting methods, accessing fields, invoking constructors, handling arrays, and solving typical exercises with complete code examples.

FieldReflectionclass
0 likes · 11 min read
Understanding Java Reflection: Concepts, Common Methods, and Example Exercises
Java Captain
Java Captain
Dec 6, 2017 · Backend Development

Understanding Java Reflection Mechanism and Its Practical Applications

This article explains Java's reflection mechanism, outlines its capabilities such as runtime class inspection, object instantiation, method invocation, and dynamic proxy creation, and provides numerous code examples demonstrating how to retrieve class information, manipulate fields, invoke methods, and apply reflection in patterns like factories.

Backend DevelopmentDynamic ProxyReflection
0 likes · 17 min read
Understanding Java Reflection Mechanism and Its Practical Applications
Senior Brother's Insights
Senior Brother's Insights
Dec 4, 2017 · Fundamentals

Mastering Thread‑Safe Singleton in Java: Double‑Check, Static Holder, Enum & Reflection Hacks

Explore multiple Java singleton implementations—including a thread‑safe double‑checked locking version, a static inner‑class approach, an enum‑based solution, and a reflection‑based attack—while learning their key technical details, advantages, pitfalls, and how to protect against serialization and reflection vulnerabilities.

EnumJavaReflection
0 likes · 6 min read
Mastering Thread‑Safe Singleton in Java: Double‑Check, Static Holder, Enum & Reflection Hacks
Java Captain
Java Captain
Nov 29, 2017 · Fundamentals

What Is an Immutable Object in Java? Understanding String Immutability

This article explains the concept of immutable objects in Java, using String as a case study, clarifies the difference between object references and objects, examines String’s internal fields across JDK versions, demonstrates how typical mutating methods actually create new instances, and shows how reflection can bypass immutability.

Immutable ObjectProgramming FundamentalsReflection
0 likes · 9 min read
What Is an Immutable Object in Java? Understanding String Immutability
Java Backend Technology
Java Backend Technology
Nov 27, 2017 · Fundamentals

Why Swapping Two Integers Fails in Java? Exploring Pass‑by‑Value, Handles, and Integer Caching

This article dissects a Java interview question about swapping two Integer variables, explaining Java's pass‑by‑value semantics, the difference between handle‑based and direct pointer object access, Integer immutability, autoboxing, the IntegerCache mechanism, and how reflection can (or cannot) modify private final fields.

Integer cachingJDKReflection
0 likes · 10 min read
Why Swapping Two Integers Fails in Java? Exploring Pass‑by‑Value, Handles, and Integer Caching
Java Captain
Java Captain
Nov 15, 2017 · Fundamentals

Understanding Java Generics: Basics, Wildcards, Bounds, and Type Erasure

This article introduces Java generics, covering generic classes and methods, wildcard usage with the PECS principle, bounded type parameters, and the implications of type erasure, illustrating each concept with code examples and discussing common pitfalls such as generic arrays, bridge methods, and runtime type checks.

PECSReflectionWildcards
0 likes · 17 min read
Understanding Java Generics: Basics, Wildcards, Bounds, and Type Erasure
Java Captain
Java Captain
Sep 26, 2017 · Backend Development

Five Ways to Create Objects in Java and Their Bytecode

This article explains five Java object‑creation techniques—using the new keyword, Class.newInstance, Constructor.newInstance, clone, and deserialization—shows their bytecode differences, provides a complete Employee example, and demonstrates each method with runnable code and output.

Object CreationReflectiondeserialization
0 likes · 8 min read
Five Ways to Create Objects in Java and Their Bytecode
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Understanding Java Static and Dynamic Proxy Patterns

This article explains the concept of the Proxy design pattern, demonstrates how to implement static and dynamic proxies in Java with complete source code, and analyzes the advantages, limitations, and internal workings of Java's runtime-generated proxy classes.

Dynamic ProxyReflectionStatic Proxy
0 likes · 15 min read
Understanding Java Static and Dynamic Proxy Patterns
Meituan Technology Team
Meituan Technology Team
Mar 17, 2017 · Mobile Development

Automated Patch Generation for the Robust Android Hot‑Update System

The open‑source Robust hot‑update system now includes an automated patch‑generation tool that scans original methods, rewrites field and method accesses to reflective calls, and creates hook classes to overcome ProGuard’s obfuscation, optimization, and inner‑class challenges, cutting patch creation time from a day to minutes.

AndroidHotUpdatePatchAutomation
0 likes · 22 min read
Automated Patch Generation for the Robust Android Hot‑Update System
Qunar Tech Salon
Qunar Tech Salon
Sep 30, 2016 · Fundamentals

Understanding Java's Type Interface and Its Subinterfaces

This article explains the origin, purpose, and usage of the java.lang.reflect.Type interface and its subinterfaces—including ParameterizedType, TypeVariable, GenericArrayType, and WildcardType—detailing their methods, relationships with Class, and role in Java generics and reflection.

JavaParameterizedTypeReflection
0 likes · 7 min read
Understanding Java's Type Interface and Its Subinterfaces
Qunar Tech Salon
Qunar Tech Salon
Aug 30, 2016 · Mobile Development

Implementing an EventBus in Android Using Reflection

This article explains the concept of an EventBus as an observer‑pattern based communication mechanism for Android components, illustrates it with a newspaper subscription analogy, and provides step‑by‑step Java implementation details—including registration, unregistration, and posting of events using reflection—plus integration tips within an Activity lifecycle.

AndroidEventBusMobile Development
0 likes · 6 min read
Implementing an EventBus in Android Using Reflection
Tencent Music Tech Team
Tencent Music Tech Team
Jul 5, 2016 · Game Development

Guide to Integrating Android Plugins in Unity Projects: Hybrid Builds, Mutual Calls, and Debugging

This guide explains how to create and use Android plugins in Unity, detailing wrapper placement, bidirectional calls between Unity’s Mono/IL2CPP and Android’s Dalvik/ART, reflection‑based interface design, Gradle‑MSBuild hybrid project setup, ADB remote debugging, and support for AAR files and manifest configuration.

ReflectionUnity
0 likes · 20 min read
Guide to Integrating Android Plugins in Unity Projects: Hybrid Builds, Mutual Calls, and Debugging
Qunar Tech Salon
Qunar Tech Salon
Mar 30, 2015 · Backend Development

Lesser‑Known but Practical Features of Google Guava

This article explores several under‑used yet useful Google Guava utilities—including unsigned primitive types, 128‑bit MurmurHash, InternetDomainName parsing, class‑path reflection, and CharMatcher string handling—providing code examples and explanations of how they can improve Java development efficiency.

HashingReflectionString
0 likes · 9 min read
Lesser‑Known but Practical Features of Google Guava