Tagged articles
9 articles
Page 1 of 1
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 23, 2024 · Databases

Misuse of Wildcards in MySQL GRANT Statements Leads to Permission Errors and How to Avoid Them

This article explains how using the '_' and '%' wildcards in MySQL GRANT statements can unintentionally broaden privileges, illustrates the security risks with concrete examples and version‑specific behavior, and provides practical guidance on escaping wildcards, auditing existing grants, and preventing privilege loss.

GrantPermissionsSecurity
0 likes · 14 min read
Misuse of Wildcards in MySQL GRANT Statements Leads to Permission Errors and How to Avoid Them
Java Backend Technology
Java Backend Technology
Oct 19, 2021 · Fundamentals

Master Java Generics: Understanding T, ?, extends, and super

This article explains Java generics introduced in JDK 5, covering type safety, the benefits of compile‑time checks, the roles of type parameters like T, E, K, V, the use of wildcards ?, extends, and super, and provides practical code examples illustrating their differences and proper usage.

GenericsJavaType Safety
0 likes · 11 min read
Master Java Generics: Understanding T, ?, extends, and super
Programmer DD
Programmer DD
May 17, 2020 · Fundamentals

Master Java Generics: Understanding Type Erasure and Wildcards

This article explains Java generics, covering basic usage, type erasure, wildcard bounds, and various generic declarations in classes, interfaces, methods, and multi‑type scenarios, illustrated with code examples and reflections on why generics improve type safety and reduce casting in real‑world projects.

GenericsJavaType Erasure
0 likes · 9 min read
Master Java Generics: Understanding Type Erasure and Wildcards
Java Captain
Java Captain
Jul 4, 2018 · Fundamentals

Understanding Java Generics: Type Erasure, Wildcards, and Common Pitfalls

This article explains Java generics as a type‑parameter mechanism that provides compile‑time safety, describes type erasure, generic classes, methods, interfaces, the three kinds of wildcards, reflection tricks that bypass erasure, and the practical limitations of generics.

GenericsJavaType Erasure
0 likes · 17 min read
Understanding Java Generics: Type Erasure, Wildcards, and Common Pitfalls
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.

GenericsPECSReflection
0 likes · 17 min read
Understanding Java Generics: Basics, Wildcards, Bounds, and Type Erasure