java: prohibit caching when using thread-local types imposed on expressions and decla...