Niclas Hedhman wrote:
Gang,
I have downloaded and installed the JDK1.5, and tried to get Avalon to compile. It doesn't.
1. There was a variable in a Framework API called "enum", that is now a keyword. This shouldn't affect binary compatibility.
Right. If you compile with -source="1.3" then everything will compile (warnings abound about the conflict, but it compiles).
2. The Framework Impl testcase that test the Namespace support fails. This probably affects binary compatibility IF there are namespace declarations in the configuration files (possibly elsewhere).
The problem is possibly only related to IF NOT all the xmlns: declarations are made in the root element.
An IllegalStateException is thrown.
The underlying reason seems be that the org.xml.sax.helpers.NameSpaceSupport class now behaves differently.
<snip/>
When the parser gets to the <elements-b>, the Exception is thrown.
I think it is a bug in the SAX parser, in that endElement() is called (for </a:elements-a>), and then the startPrefixMapping in o.a.a.f.configuration.NamespacedSAXConfigurationHandler.
I.e. I think the NamespaceSupport require a pushContext() first, but I am not sure.
I will try to resolve this over the next days, but I would appreciate if anyone have any information related to this.
Berin, perhaps???
All I know is that there were changes to the JAXP classes, so that will affect XML related stuff. I haven't been a heavy user of XML lately (a sharp break from my past), and can't tell you why that has changed.
I really haven't tried making Avalon build with 1.5 because after some initial frustrations it just wasn't worth it at the time. All my serious work is still Java 1.4.
--
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
- Rich Cook
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]