You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Michael Dodge (JIRA)" <ji...@apache.org> on 2017/12/21 23:48:00 UTC

[jira] [Commented] (GEODE-4153) Examples place their packages under org.apache.geode

    [ https://issues.apache.org/jira/browse/GEODE-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16300737#comment-16300737 ] 

Michael Dodge commented on GEODE-4153:
--------------------------------------

Oh, and {{org.apache.geode.examples.security.ExampleSecurityManager}} _*is*_ already in the Geode repo even though it is used by the client security example in the Geode examples repo.

> Examples place their packages under org.apache.geode
> ----------------------------------------------------
>
>                 Key: GEODE-4153
>                 URL: https://issues.apache.org/jira/browse/GEODE-4153
>             Project: Geode
>          Issue Type: Bug
>          Components: examples
>            Reporter: Michael Dodge
>            Assignee: Michael Dodge
>
> By dint of following the convention from the ur-example, the various and sundry examples put their classes in packages that nest underneath org.apache.geode. Alas, not only does this imply that the classes are part of the geode repo instead of the geode-examples repo, this founders on the shoals of the Geode code which performs substring analysis of an object's class' package name when making decisions about whether that object is an internal piece of Geode.
> Hence, the packages for all of the Geode examples need to be modified. As per https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html the convention is to use the inverted domain name whilst replacing illegal characters (e.g., hyphens) with underscores. Thus, org.apache.geode should be replaced with org.apache.geode_examples.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)