Skip to content

Making the only constructor private means the class can't be extended #23

Open

Description

@GoogleCodeExporter
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions