You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sam Halliday (JIRA)" <ji...@apache.org> on 2015/07/03 18:09:04 UTC
[jira] [Created] (SPARK-8815) illegal java package names in jar
Sam Halliday created SPARK-8815:
-----------------------------------
Summary: illegal java package names in jar
Key: SPARK-8815
URL: https://issues.apache.org/jira/browse/SPARK-8815
Project: Spark
Issue Type: Bug
Reporter: Sam Halliday
In ENSIME we were unable to index the spark jars and we investigated further... you have classes that look like this:
org.spark-project.guava.annotations.VisibleForTesting
Hyphens are not legal package names according to the java language spec, so I'm amazed that this can actually be read at runtime... certainly no compiler I know would allow it.
What I suspect is happening is that you're using a build plugin that internalises some of your dependencies and it is using your groupId but not validating it... and then blindly using that name in the ASM manipulation.
You might want to report this upstream with your build plugin.
For your next release, I recommend using an explicit name that is not your groupId. i.e. convert hyphens to underscores as Gosling recommends.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org