-
-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Free or Close #186
Comments
Good idea, thanks! |
Apparently this change is problematic in IDEs that have try-with-resources warnings enabled. Specifically, a lot of times a In IntelliJ IDEA, the relevant inspection is Afaik Eclipse does not offer such customization. The following warnings should be disabled:
Please post below if you have information on NetBeans. |
Sorry, but I think this is being more problematic than useful. I think this is the first Java 8 functionality in LWJGL 3, and I think it should be removed to keep it compatible with Java 7, since a lot of users still use Java 7. |
See #177, LWJGL 3 requires Java 8. |
@Guichaguri Just to note, Plumbr is a server performance monitoring application and its numbers arn't really reflective of the desktop market. |
No problem. At least I still have a Swing alternative for older Java versions, and I can always go back to LWJGL 2. Thanks. |
Some of the different classes have a method called
free()
that cleans up the native resources that an object uses. In c this makes sense as that memory is being freed up but in java this method is normally known asclose()
. Method functionality would not change but some IDEs will warn a developer when they do not close a possible object and if implementingAutoCloseable
it becomes possible to use these objects in a try with resource instead of a try finally or simply closing it later and possibly missing something upon an error.It could also be done by making a simple interface called that could look like this
That would keep method names as they are but allow use of the try with resource and possible ide warnings.
The text was updated successfully, but these errors were encountered: