aboutsummaryrefslogtreecommitdiff
path: root/website/templates/features/experimental/UtilityClass.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-02-19 00:09:03 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-02-19 00:09:03 +0100
commit46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6 (patch)
treea653cb0c6a93eba6e0c0fc029fe97f675ead64cd /website/templates/features/experimental/UtilityClass.html
parent4401562b8f7e0170b6a510f50c5ed3dc1b0cdad1 (diff)
downloadlombok-46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6.tar.gz
lombok-46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6.tar.bz2
lombok-46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6.zip
[issue #2039] update docs to warn about a javac peculiarity for named static imports.
Diffstat (limited to 'website/templates/features/experimental/UtilityClass.html')
-rw-r--r--website/templates/features/experimental/UtilityClass.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/website/templates/features/experimental/UtilityClass.html b/website/templates/features/experimental/UtilityClass.html
index 4cee3657..c5f51e29 100644
--- a/website/templates/features/experimental/UtilityClass.html
+++ b/website/templates/features/experimental/UtilityClass.html
@@ -39,6 +39,8 @@
<@f.smallPrint>
<p>
There isn't currently any way to create non-static members, or to define your own constructor. If you want to instantiate the utility class, even only as an internal implementation detail, <code>@UtilityClass</code> cannot be used.
+ </p><p>
+ Due to a peculiar way javac processes static imports, trying to do a non-star static import of any of the members of a `@UtilityClass` won't work. Either use a star static import: `import static TypeMarkedWithUtilityClass.*;` or don't statically import any of the members.
</p>
</@f.smallPrint>
</@f.scaffold>