Z
z-man
Hello all,
skimmin' through many Java open source code bases, I noticed that it
seems to be an established policy to put ancillary (utility) classes in
packages like %projectRootPackage%.util, despite often being just
extensions of standard packages (e.g.: a general-purpose custom
collection class).
Now I face a similar situation: I've implemented a general-purpose
exception class (mypackageroot.lang.NotImplementedException) that just
covers a generic functionality that I would have expected to be inside
the standard platform: I feel it would be MUCH more elegant to place it
under its "natural" location (java.lang package), because relating it
strictly to my package root seems to insert an alien within my project
space.
So, is there any argument against my perception?
At the bottom line, is it contractually legal to extend the standard
J2SE packages with custom classes? May I incur into license violations
with Sun?
Thank you
skimmin' through many Java open source code bases, I noticed that it
seems to be an established policy to put ancillary (utility) classes in
packages like %projectRootPackage%.util, despite often being just
extensions of standard packages (e.g.: a general-purpose custom
collection class).
Now I face a similar situation: I've implemented a general-purpose
exception class (mypackageroot.lang.NotImplementedException) that just
covers a generic functionality that I would have expected to be inside
the standard platform: I feel it would be MUCH more elegant to place it
under its "natural" location (java.lang package), because relating it
strictly to my package root seems to insert an alien within my project
space.
So, is there any argument against my perception?
At the bottom line, is it contractually legal to extend the standard
J2SE packages with custom classes? May I incur into license violations
with Sun?
Thank you