• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

NX: package problem

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Quote taken from "URLYBird, version 1.2.3":


Your data access class must be called "Data.java", must be in a package called "suncertify.data", and must implement the following interface
package suncertify.db;
public interface DBAccess
{
// Reads a record from the file. Returns an array where each
// element is a record value.
public String [] readRecord(long recNo)
throws RecordNotFoundException;
...
Any unimplemented exceptions in this interface must all be created as member classes of the suncertify.data package...


Following exacly what Sun says, I would have this situation:
suncertify.data.Data (implements DBAccess)
suncertify.data.RecordNotFoundException
suncertify.db.DBAccess (may throws suncertify.data.RecordNotFoundException)
Is this correct or is a known bug in Sun's Spec?
If it�s correct, than I must insert "import suncertify.data.*" in the DBAccess interface code. Would this be correct?
Thanks in advance,
Wagner Danda
[ November 26, 2003: Message edited by: Wagner da Silva ]
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Is this correct or is a known bug in Sun's Spec?


It is better for you to send an Email to SUN to clarify the problem.
IMO, I will stictly follow what SUN gives me.


If it�s correct, than I must insert "import suncertify.data.*" in the DBAccess interface code. Would this be correct?


Yes.
Nick
[ November 26, 2003: Message edited by: Nicholas Cheung ]
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know it doesn't really help you, but in URLyBird 1.3.1 this instruction line is similiar except

(Data) must be in a package called "suncertify.db",


but, if in doubt follow what Sun say
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also get URLyBird 1.2.3 and the instructions.html seems correct:

{


Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface:





Best Regards,
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic