Comments (4)
👤 reinierz 🕗 Aug 20, 2009 at 02:04 UTC
Unsafe probably has a method to sneakythrow, but there are three potential problems with this:
1: Is it deprecated or will some code analysis tool complain about using Unsafe?
2: Does it run on non-sun JVMs? I'm guessing no. Is it at least in the openjdk, and thus in soylatte
and friends?
3: Does it result in a call to the security manager?
from lombok.
👤 reinierz 🕗 Aug 20, 2009 at 02:09 UTC
There is a method: Unsafe.getUnsafe().throwException(Throwable t);
It's not deprecated, so that takes care of ﹟1.
Research still to be done:
Which alternative VMs, if any, have this class? Does it trigger a security manager of some sort?
from lombok.
👤 reinierz 🕗 Aug 27, 2009 at 20:23 UTC
It triggers security manager shenanigans, so, lets not go there.
from lombok.
End of migration
from lombok.
Related Issues (20)
- [FEATURE] @FieldNameConstants Easier overwrite for generated fields HOT 2
- @FieldDefaults: Keep the global setting experimental, make the annotation permanent.
- [FEATURE] Allow to easily add interfaces to Builders
- [BUG] Support for Eclipse 2024-06 (4.32) HOT 11
- [FEATURE] Super Constructor
- [FEATURE] enhance @FieldNameConstants with specific prefix string HOT 2
- [BUG] SuperBuilder does not compile then binding generics to an array HOT 5
- [BUG] SaSessionForFastjsonCustomized类中的getModel报错 HOT 1
- [FEATURE] setX() for mutable state, fluent otherwise HOT 2
- [BUG] Lombok 1.18.34 (Edit updated) not working with eclipse 24-06 HOT 3
- [QUESTION} How to build lombok using JDK21 (javac)
- Support for an entirely new constructor generation HOT 2
- [FEATURE] Support for use extension method within the same class it was declared in
- [@ToStringJSON, @ToStringJSONPretty] Please add feature when class have some others lombok JSON. For default actual mode of lombok ToString. HOT 1
- [BUG] Lombok with Java 21 Compilation failure with v1.18.32
- [BUG] Warning when using @StandardException with the -Xlint:this-escape compiler flag
- [BUG] Potential NPE in EclipseHandlerUtil.setDocComment(..)
- [BUG] @Delegate throwing null pointer exception on enums
- [BUG] `@Getter` with `AccessLevel` and `onMethod_` causes a compile error
- [BUG] `StringIndexOutOfBoundsException` in `EclipseHandlerUtil.getDocComment()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lombok.