You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Making the only constructor private means the class can't be extended #23
What steps will reproduce the problem?
1. create a new class to extend SqlDataSourceHelper
2. java needs to be able to construct the class, even if all methods are static
3. that means java must be able to construct the superclass
3. the only available constructor for the superclass is private
4. your extended class will not compile
What is the expected output? What do you see instead?
I'd like a public constructor. O.K., the class has only statics. I could create
my own class and just call through as necessary, the extension is a signal of
intention, and ass the superclass changes, a means of enforcing correct
extension behavior via the compiler.
What version of the product are you using? On what operating system?
1.0.2
Please provide any additional information below.
Should be all you need.
Original issue reported on code.google.com by zenbones...@gmail.com on 11 Jul 2010 at 8:18
Activity