5 ms·
The Java standard library has its share of such insanity.
by cesarbs 12y ago
The Java standard library has its share of such insanity.
- seanmcdirmid 12y agoThen it should be easy enough to provide me with an example? I've only ever seen factories with an indirection of one level in Java's standard libraries, I wouldn't be surprised if that was part of their coding style rules. I think you would only find such monstrosities in Ecliopse.
- nardi 12y agoI was curious, since I've seen this joke a lot of times, and thought surely there must be some truth to it. The longest class name I could find in the Java standard library is "SQLIntegrityConstraintViolationException". The next few longest names were also exception classes with descriptive names. The longest factory name I could find was "ContextualRenderedImageFactory", which also seems pretty reasonable.
- LukeShu 12y agoThe standard library is mostly sane; it is the enterprisey frameworks that get out of hand. Apache XML-RPC[0]: RequestProcessorFactoryFactory.RequestProcessorFactory.getRequestProcessor(XmlRpcRequest) Spring[1]: (no double-factory, but it's got all of the fun words) AbstractSingletonProxyFactoryBean [0]: https://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/server/RequestProcessorFactoryFactory https://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/serve... [1]: http://docs.spring.io/spring/docs/2.5.x/api/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.html http://docs.spring.io/spring/docs/2.5.x/api/org/springframew...
- arethuza 12y agoWhat about this one: InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState http://javapapers.com/core-java/longest-class-method-and-attribute-names-in-java/ http://javapapers.com/core-java/longest-class-method-and-att...
- seanmcdirmid 12y agoThere are no design patterns in that name (Factory, Proxy, Singleton). Also, it sounds like the name is machine generated, which shouldn't count.
- arethuza 12y agoI would certainly agree that the name was clearly generated by the mechanical application of some naming rule without the application of much judgement... :-)