Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / December 2005

Tip: Looking for answers? Try searching our database.

jdeveloper - compile anon inner class with exception

Thread view: 
john - 30 Nov 2005 13:03 GMT
following code segment produces different anon class file (
OuterClass$1) when compiled in jdevloper and DOS

public static PreparedStatementCreator
newPreparedStatementCreator(final String sql) {
  return new PreparedStatementCreator() {
    public PreparedStatement createPreparedStatement(Connection conn)
throws      SQLException {
    PreparedStatement ps = conn.prepareStatement(sql);
    return ps;
         }
   };
}

The difference between the two class files produced is that with DOS
the inner class is created with an empty constructor that throws an
SQLException. With Jdeveloper the constructor does not throw any
Exception.

v. confused - can anybody help?
Rogue - 01 Dec 2005 09:00 GMT
Hi John,

why dont you take it up with Jdeveloper forums (
http://forums.oracle.com/forums/forum.jspa?forumID=83 ) ... Don't
forget to mention the JDev version that you are using.

thanks,
Rogue


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.