Skip to content

Remove Java compile flags#84

Closed
jacobperron wants to merge 1 commit into
rcljava_dashingfrom
remove_compile_flags
Closed

Remove Java compile flags#84
jacobperron wants to merge 1 commit into
rcljava_dashingfrom
remove_compile_flags

Conversation

@jacobperron
Copy link
Copy Markdown
Contributor

This resolves several compiler warnings.

This resolves several compiler warnings.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@esteve
Copy link
Copy Markdown
Member

esteve commented Feb 11, 2020

@jacobperron this makes the bytecode compliant with 1.6, so it can be used on Android, the warnings are harmless. Do you need any features available in 1.7?

@jacobperron
Copy link
Copy Markdown
Contributor Author

Do you need any features available in 1.7?

Nope. I wasn't aware of this requirement for Android. We can leave it as-is.

@clalancette
Copy link
Copy Markdown
Contributor

@jacobperron this makes the bytecode compliant with 1.6, so it can be used on Android, the warnings are harmless. Do you need any features available in 1.7?

@esteve The main reason to remove the flags is just so we can get a "clean" build with modern Java (I'm using Java 11 here on Ubuntu 18.04). Because these flags are set, they:

  1. Print a warning.
  2. Mask out several checks in newer Java.

How would you feel about only setting the Java 6 flags for the Android target?

@jacobperron jacobperron deleted the remove_compile_flags branch March 17, 2020 22:35
ivanpauno pushed a commit that referenced this pull request Apr 27, 2022
This fixes deprecation warnings at build time.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants