I\'m trying to change some classes from open jdk, so I\'m creating the same package structure as the open jdk classes have and I\'m changing the classes using netbeans. When i\'
You should create your class in your own package and have the application that uses this class import your class instead. So you can create a class called HttpsURLConnectionImpl in package com.yourdomain.
Then in the application code make sure that you import:
import com.yourdomain.HttpsURLConnectionImpl;
Then in your code your own class will be used.