Ron,

I've not yet contributed to Tuscany and I'm still getting familiar
with the code base, so I'm not speaking with authority.  Yet – as a
potential Tuscany developer I would not want to discourage the use of
assertions.

Here is why:  when you compile under 1.4, by default assertions are
not recognized as a keyword.  But you can tell the Java compiler to
enable assertions by:  javac –source 1.4

Of course, building Tuscany isn't as simple as that.  Maybe the build
script can be made aware of the version and add the "–source 1.4"
argument as needed.  This is something I'd be happy to look into if
other developers support the idea.

Chris



On 9/28/06, Ron Gavlin <[EMAIL PROTECTED]> wrote:
Brandon,

Thanks for your reply.

The SDO 2.01 spec requires the minimum JDK to be 1.4.0. So, it seems that 
1.4.2-specific features such as assert should be off-limits for tuscany SDO 
code.

Also, as a JDK 1.4.2 user, I would like to be able to generate SDO classes from 
a Java interface. By deleting Interface2JavaGenerator.java, I lose that 
ability. I think the few JDK 1.5-specific features of this class should be 
packaged separately so that 1.4 users can still use the tool.

Thanks again,

- Ron



----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, September 28, 2006 10:25:03 AM
Subject: Re: Tuscany SDO compilation problems w/JDK 1.4


Ron:

You can safely delete the Interface2JavaGenerator.java and be JDK 1.4.2
compliant. I do not understand your "assert" keyword error, as that was
introduced in JDK 1.4.2

Thanks!

Brandon Werner




Ron Gavlin <[EMAIL PROTECTED]>
09/28/2006 10:12 AM
Please respond to
[email protected]


To
tuscany-user tuscany-user <[email protected]>
cc

Subject
Tuscany SDO compilation problems w/JDK 1.4






Greetings,

I am attempting to build tuscany-sdo M2-RC1a w/JDK 1.4. This release of
Tuscany SDO should compile with JDK 1.4, correct? I am experiencing the
two problems listed below. What are the correct fixes for these problems
and should I open JIRAs for them?

1). Line 188 of org.apache.tuscany.sdo.util.StAX2SAXAdapter.java includes
the JDK 1.5 keyword "assert".

2). Lines 23-24 and 182-186 of
org.apache.tuscany.sdo.generate.Interface2JavaGenerator.java include
references to JDK 1.5-only classes java.lang.reflect.ParameterizedType and
java.lang.reflect.Type.

- Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-----------------------------------------
CONFIDENTIALITY STATEMENT:
This e-mail transmission contains information that is intended to
be confidential.  It is intended only for the addressee named
above.  If you receive this e-mail in error, please do not read,
copy, or disseminate it.  If you are not the intended recipient,
any disclosure, copying, distribution or use of the contents of
this information is prohibited.   Please reply to the message
immediately by informing the sender that the message was
misdirected.  After replying, please erase it from your computer
system.  Your assistance in correcting this error is appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to