Thread: BUG #5501: PostgreSQL JDBC Driver has inappropriate import

BUG #5501: PostgreSQL JDBC Driver has inappropriate import

From
"Dave Jarvis"
Date:
The following bug has been logged online:

Bug reference:      5501
Logged by:          Dave Jarvis
Email address:      thangalin@gmail.com
PostgreSQL version: 8.4.4
Operating system:   Linux
Description:        PostgreSQL JDBC Driver has inappropriate import
Details:

PROBLEM
postgresql-jdbc-8.4-701.src/org/postgresql/gss/MakeGSS.java:21: package
com.sun.security.auth.callback does not exist
    [javac] import com.sun.security.auth.callback.TextCallbackHandler;
    [javac]                                      ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

SOLUTION
Remove the import line (the class is not used). You should not rely on Sun's
internal packages.

Re: BUG #5501: PostgreSQL JDBC Driver has inappropriate import

From
Kris Jurka
Date:
On Sat, 12 Jun 2010, Dave Jarvis wrote:

>
> The following bug has been logged online:
>
> Bug reference:      5501
> PostgreSQL version: 8.4.4
> Description:        PostgreSQL JDBC Driver has inappropriate import
> Details:
>
> PROBLEM
> postgresql-jdbc-8.4-701.src/org/postgresql/gss/MakeGSS.java:21: package
> com.sun.security.auth.callback does not exist
>    [javac] import com.sun.security.auth.callback.TextCallbackHandler;
>    [javac]                                      ^
>
> SOLUTION
> Remove the import line (the class is not used). You should not rely on Sun's
> internal packages.
>

This has already been fixed in CVS.

Kris Jurka