Date: Fri, 17 Apr 2009 15:11:43 +0400
Subject: [PATCH 45/91] 4895403: SPEC: documentation of
javax.sound.sampled.spi.MixerProvider should be detailed
Reviewed-by: malenkov
---
.../sound/sampled/spi/MixerProvider.java | 31 ++++++++++++++++---
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/jdk/src/share/classes/javax/sound/sampled/spi/MixerProvider.java b/jdk/src/share/classes/javax/sound/sampled/spi/MixerProvider.java
index d5c161ea34d..c79bb1114a6 100644
--- a/jdk/src/share/classes/javax/sound/sampled/spi/MixerProvider.java
+++ b/jdk/src/share/classes/javax/sound/sampled/spi/MixerProvider.java
@@ -42,9 +42,15 @@ public abstract class MixerProvider {
/**
* Indicates whether the mixer provider supports the mixer represented by
* the specified mixer info object.
+ *
+ * The full set of mixer info objects that represent the mixers supported
+ * by this {@code MixerProvider} may be obtained
+ * through the {@code getMixerInfo} method.
+ *
* @param info an info object that describes the mixer for which support is queried
- * @return true
if the specified mixer is supported,
- * otherwise false
+ * @return {@code true} if the specified mixer is supported,
+ * otherwise {@code false}
+ * @see #getMixerInfo()
*/
public boolean isMixerSupported(Mixer.Info info) {
@@ -62,17 +68,34 @@ public abstract class MixerProvider {
/**
* Obtains the set of info objects representing the mixer
* or mixers provided by this MixerProvider.
- * @return set of mixer info objects
+ *
+ * The {@code isMixerSupported} method returns {@code true}
+ * for all the info objects returned by this method.
+ * The corresponding mixer instances for the info objects
+ * are returned by the {@code getMixer} method.
+ *
+ * @return a set of mixer info objects
+ * @see #getMixer(javax.sound.sampled.Mixer.Info) getMixer(Mixer.Info)
+ * @see #isMixerSupported(javax.sound.sampled.Mixer.Info) isMixerSupported(Mixer.Info)
*/
public abstract Mixer.Info[] getMixerInfo();
/**
* Obtains an instance of the mixer represented by the info object.
+ *
+ * The full set of the mixer info objects that represent the mixers
+ * supported by this {@code MixerProvider} may be obtained
+ * through the {@code getMixerInfo} method.
+ * Use the {@code isMixerSupported} method to test whether
+ * this {@code MixerProvider} supports a particular mixer.
+ *
* @param info an info object that describes the desired mixer
* @return mixer instance
* @throws IllegalArgumentException if the info object specified does not
- * match the info object for a mixer supported by this MixerProvider.
+ * match the info object for a mixer supported by this MixerProvider.
+ * @see #getMixerInfo()
+ * @see #isMixerSupported(javax.sound.sampled.Mixer.Info) isMixerSupported(Mixer.Info)
*/
public abstract Mixer getMixer(Mixer.Info info);
}
From 9a0763bf6bf4ab2bdb6ef95a74241b086b64d0f7 Mon Sep 17 00:00:00 2001
From: Alex Menkov
Date: Fri, 17 Apr 2009 15:15:20 +0400
Subject: [PATCH 46/91] 6806019: 38 JCK api/javax_sound/midi/ tests fails
starting from jdk7 b46
Reviewed-by: kalli
---
.../com/sun/media/sound/SoftSynthesizer.java | 29 +++++++++++++++----
1 file changed, 23 insertions(+), 6 deletions(-)
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftSynthesizer.java b/jdk/src/share/classes/com/sun/media/sound/SoftSynthesizer.java
index 3f6c12fc765..ab46b2dc9a9 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftSynthesizer.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftSynthesizer.java
@@ -889,9 +889,12 @@ public class SoftSynthesizer implements AudioSynthesizer,
return;
}
synchronized (control_mutex) {
+ Throwable causeException = null;
try {
- if (line != null)
+ if (line != null) {
+ // can throw IllegalArgumentException
setFormat(line.getFormat());
+ }
AudioInputStream ais = openStream(getFormat(), info);
@@ -900,10 +903,13 @@ public class SoftSynthesizer implements AudioSynthesizer,
if (line == null)
{
- if(testline != null)
+ if (testline != null) {
line = testline;
- else
+ } else {
+ // can throw LineUnavailableException,
+ // IllegalArgumentException, SecurityException
line = AudioSystem.getSourceDataLine(getFormat());
+ }
}
double latency = this.latency;
@@ -911,6 +917,8 @@ public class SoftSynthesizer implements AudioSynthesizer,
if (!line.isOpen()) {
int bufferSize = getFormat().getFrameSize()
* (int)(getFormat().getFrameRate() * (latency/1000000f));
+ // can throw LineUnavailableException,
+ // IllegalArgumentException, SecurityException
line.open(getFormat(), bufferSize);
// Remember that we opened that line
@@ -954,13 +962,22 @@ public class SoftSynthesizer implements AudioSynthesizer,
weakstream.sourceDataLine = sourceDataLine;
}
-
-
} catch (LineUnavailableException e) {
+ causeException = e;
+ } catch (IllegalArgumentException e) {
+ causeException = e;
+ } catch (SecurityException e) {
+ causeException = e;
+ }
+
+ if (causeException != null) {
if (isOpen())
close();
// am: need MidiUnavailableException(Throwable) ctor!
- throw new MidiUnavailableException(e.toString());
+ MidiUnavailableException ex = new MidiUnavailableException(
+ "Can not open line");
+ ex.initCause(causeException);
+ throw ex;
}
}
From b136abc34404c4df35c28e610ea7ed02c2eb8de3 Mon Sep 17 00:00:00 2001
From: Karl Helgason
Date: Fri, 17 Apr 2009 16:13:43 +0400
Subject: [PATCH 47/91] 6821030: Merge OpenJDK Gervill with upstream sources,
Q1CY2009
Reviewed-by: darcy, amenkov
---
.../com/sun/media/sound/SoftAudioPusher.java | 1 +
.../com/sun/media/sound/SoftChannel.java | 17 ++++
.../com/sun/media/sound/SoftChorus.java | 32 +++---
.../com/sun/media/sound/SoftFilter.java | 18 ++--
.../sun/media/sound/SoftJitterCorrector.java | 1 +
.../com/sun/media/sound/SoftMainMixer.java | 59 +++++++++--
.../com/sun/media/sound/SoftVoice.java | 20 +++-
.../Gervill/SoftChannel/NoteOverFlowTest.java | 73 ++++++++++++++
.../Gervill/SoftFilter/TestProcessAudio.java | 99 +++++++++++++++++++
9 files changed, 283 insertions(+), 37 deletions(-)
create mode 100644 jdk/test/javax/sound/midi/Gervill/SoftChannel/NoteOverFlowTest.java
create mode 100644 jdk/test/javax/sound/midi/Gervill/SoftFilter/TestProcessAudio.java
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftAudioPusher.java b/jdk/src/share/classes/com/sun/media/sound/SoftAudioPusher.java
index d19ff412bd8..43773347a41 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftAudioPusher.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftAudioPusher.java
@@ -54,6 +54,7 @@ public class SoftAudioPusher implements Runnable {
return;
active = true;
audiothread = new Thread(this);
+ audiothread.setDaemon(true);
audiothread.setPriority(Thread.MAX_PRIORITY);
audiothread.start();
}
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java b/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java
index 8bb5f2ef66a..57bb3b85dc9 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java
@@ -67,6 +67,7 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
dontResetControls[77] = true; // Sound Controller 8 (GM2 default: Vibrato Depth)
dontResetControls[78] = true; // Sound Controller 9 (GM2 default: Vibrato Delay)
dontResetControls[79] = true; // Sound Controller 10 (GM2 default: Undefined)
+ dontResetControls[84] = true; // Portamento Controller
dontResetControls[120] = true; // All Sound Off
dontResetControls[121] = true; // Reset All Controllers
dontResetControls[122] = true; // Local Control On/Off
@@ -556,6 +557,18 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
&& voices[i].releaseTriggered == false) {
voices[i].noteOff(velocity);
}
+ // We must also check stolen voices
+ if (voices[i].stealer_channel == this && voices[i].stealer_noteNumber == noteNumber) {
+ SoftVoice v = voices[i];
+ v.stealer_releaseTriggered = false;
+ v.stealer_channel = null;
+ v.stealer_performer = null;
+ v.stealer_voiceID = -1;
+ v.stealer_noteNumber = 0;
+ v.stealer_velocity = 0;
+ v.stealer_extendedConnectionBlocks = null;
+ v.stealer_channelmixer = null;
+ }
}
// Try play back note-off triggered voices,
@@ -1385,6 +1398,10 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
controlChange(i, 0);
}
+ // Portamento Controller (0x54) has to reset
+ // to -1 which mean that Portamento Controller is off
+ portamento_control_note = -1;
+
controlChange(71, 64); // Filter Resonance
controlChange(72, 64); // Release Time
controlChange(73, 64); // Attack Time
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftChorus.java b/jdk/src/share/classes/com/sun/media/sound/SoftChorus.java
index 0a9f6443950..59778cdbb1e 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftChorus.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftChorus.java
@@ -38,11 +38,11 @@ public class SoftChorus implements SoftAudioProcessor {
private float[] delaybuffer;
private int rovepos = 0;
- private volatile float gain = 1;
- private volatile float rgain = 0;
- private volatile float delay = 0;
+ private float gain = 1;
+ private float rgain = 0;
+ private float delay = 0;
private float lastdelay = 0;
- private volatile float feedback = 0;
+ private float feedback = 0;
public VariableDelay(int maxbuffersize) {
delaybuffer = new float[maxbuffersize];
@@ -115,10 +115,8 @@ public class SoftChorus implements SoftAudioProcessor {
private static class LFODelay {
- private volatile double c_cos_delta;
- private volatile double c_sin_delta;
- private double c_cos = 1;
- private double c_sin = 0;
+ private double phase = 1;
+ private double phase_step = 0;
private double depth = 0;
private VariableDelay vdelay;
private double samplerate;
@@ -139,13 +137,11 @@ public class SoftChorus implements SoftAudioProcessor {
public void setRate(double rate) {
double g = (Math.PI * 2) * (rate / controlrate);
- c_cos_delta = Math.cos(g);
- c_sin_delta = Math.sin(g);
+ phase_step = g;
}
public void setPhase(double phase) {
- c_cos = Math.cos(phase);
- c_sin = Math.sin(phase);
+ this.phase = phase;
}
public void setFeedBack(float feedback) {
@@ -161,16 +157,16 @@ public class SoftChorus implements SoftAudioProcessor {
}
public void processMix(float[] in, float[] out, float[] rout) {
- c_cos = c_cos * c_cos_delta - c_sin * c_sin_delta;
- c_sin = c_cos * c_sin_delta + c_sin * c_cos_delta;
- vdelay.setDelay((float) (depth * 0.5 * (c_cos + 2)));
+ phase += phase_step;
+ while(phase > (Math.PI * 2)) phase -= (Math.PI * 2);
+ vdelay.setDelay((float) (depth * 0.5 * (Math.cos(phase) + 2)));
vdelay.processMix(in, out, rout);
}
public void processReplace(float[] in, float[] out, float[] rout) {
- c_cos = c_cos * c_cos_delta - c_sin * c_sin_delta;
- c_sin = c_cos * c_sin_delta + c_sin * c_cos_delta;
- vdelay.setDelay((float) (depth * 0.5 * (c_cos + 2)));
+ phase += phase_step;
+ while(phase > (Math.PI * 2)) phase -= (Math.PI * 2);
+ vdelay.setDelay((float) (depth * 0.5 * (Math.cos(phase) + 2)));
vdelay.processReplace(in, out, rout);
}
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftFilter.java b/jdk/src/share/classes/com/sun/media/sound/SoftFilter.java
index 0468f15bec0..c7ed4872b8b 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftFilter.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftFilter.java
@@ -543,8 +543,6 @@ public class SoftFilter {
public void filter1(SoftAudioBuffer sbuffer) {
- float[] buffer = sbuffer.array();
-
if (dirty) {
filter1calc();
dirty = false;
@@ -559,6 +557,7 @@ public class SoftFilter {
if (wet > 0 || last_wet > 0) {
+ float[] buffer = sbuffer.array();
int len = buffer.length;
float a0 = this.last_a0;
float q = this.last_q;
@@ -577,14 +576,16 @@ public class SoftFilter {
q += q_delta;
gain += gain_delta;
wet += wet_delta;
- y1 = (1 - q * a0) * y1 - (a0) * y2 + (a0) * buffer[i];
- y2 = (1 - q * a0) * y2 + (a0) * y1;
+ float ga0 = (1 - q * a0);
+ y1 = ga0 * y1 + (a0) * (buffer[i] - y2);
+ y2 = ga0 * y2 + (a0) * y1;
buffer[i] = y2 * gain * wet + buffer[i] * (1 - wet);
}
} else if (a0_delta == 0 && q_delta == 0) {
+ float ga0 = (1 - q * a0);
for (int i = 0; i < len; i++) {
- y1 = (1 - q * a0) * y1 - (a0) * y2 + (a0) * buffer[i];
- y2 = (1 - q * a0) * y2 + (a0) * y1;
+ y1 = ga0 * y1 + (a0) * (buffer[i] - y2);
+ y2 = ga0 * y2 + (a0) * y1;
buffer[i] = y2 * gain;
}
} else {
@@ -592,8 +593,9 @@ public class SoftFilter {
a0 += a0_delta;
q += q_delta;
gain += gain_delta;
- y1 = (1 - q * a0) * y1 - (a0) * y2 + (a0) * buffer[i];
- y2 = (1 - q * a0) * y2 + (a0) * y1;
+ float ga0 = (1 - q * a0);
+ y1 = ga0 * y1 + (a0) * (buffer[i] - y2);
+ y2 = ga0 * y2 + (a0) * y1;
buffer[i] = y2 * gain;
}
}
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftJitterCorrector.java b/jdk/src/share/classes/com/sun/media/sound/SoftJitterCorrector.java
index 98d205b6deb..b647ba77908 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftJitterCorrector.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftJitterCorrector.java
@@ -216,6 +216,7 @@ public class SoftJitterCorrector extends AudioInputStream {
};
thread = new Thread(runnable);
+ thread.setDaemon(true);
thread.setPriority(Thread.MAX_PRIORITY);
thread.start();
}
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftMainMixer.java b/jdk/src/share/classes/com/sun/media/sound/SoftMainMixer.java
index 1f38058b052..b62d1d480af 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftMainMixer.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftMainMixer.java
@@ -48,16 +48,18 @@ public class SoftMainMixer {
public final static int CHANNEL_LEFT = 0;
public final static int CHANNEL_RIGHT = 1;
- public final static int CHANNEL_EFFECT1 = 2;
- public final static int CHANNEL_EFFECT2 = 3;
- public final static int CHANNEL_EFFECT3 = 4;
- public final static int CHANNEL_EFFECT4 = 5;
+ public final static int CHANNEL_MONO = 2;
+ public final static int CHANNEL_EFFECT1 = 3;
+ public final static int CHANNEL_EFFECT2 = 4;
+ public final static int CHANNEL_EFFECT3 = 5;
+ public final static int CHANNEL_EFFECT4 = 6;
public final static int CHANNEL_LEFT_DRY = 10;
public final static int CHANNEL_RIGHT_DRY = 11;
public final static int CHANNEL_SCRATCH1 = 12;
public final static int CHANNEL_SCRATCH2 = 13;
public final static int CHANNEL_CHANNELMIXER_LEFT = 14;
public final static int CHANNEL_CHANNELMIXER_RIGHT = 15;
+ public final static int CHANNEL_CHANNELMIXER_MONO = 16;
protected boolean active_sensing_on = false;
private long msec_last_activity = -1;
private boolean pusher_silent = false;
@@ -485,8 +487,10 @@ public class SoftMainMixer {
// to channelmixer left,right input/output
SoftAudioBuffer leftbak = buffers[CHANNEL_LEFT];
SoftAudioBuffer rightbak = buffers[CHANNEL_RIGHT];
+ SoftAudioBuffer monobak = buffers[CHANNEL_MONO];
buffers[CHANNEL_LEFT] = buffers[CHANNEL_CHANNELMIXER_LEFT];
- buffers[CHANNEL_RIGHT] = buffers[CHANNEL_CHANNELMIXER_LEFT];
+ buffers[CHANNEL_RIGHT] = buffers[CHANNEL_CHANNELMIXER_RIGHT];
+ buffers[CHANNEL_MONO] = buffers[CHANNEL_CHANNELMIXER_MONO];
int bufferlen = buffers[CHANNEL_LEFT].getSize();
@@ -503,6 +507,7 @@ public class SoftMainMixer {
for (ModelChannelMixer cmixer : act_registeredMixers) {
for (int i = 0; i < cbuffer.length; i++)
Arrays.fill(cbuffer[i], 0);
+ buffers[CHANNEL_MONO].clear();
boolean hasactivevoices = false;
for (int i = 0; i < voicestatus.length; i++)
if (voicestatus[i].active)
@@ -517,6 +522,26 @@ public class SoftMainMixer {
}
}
+ if(!buffers[CHANNEL_MONO].isSilent())
+ {
+ float[] mono = buffers[CHANNEL_MONO].array();
+ float[] left = buffers[CHANNEL_LEFT].array();
+ if (nrofchannels != 1) {
+ float[] right = buffers[CHANNEL_RIGHT].array();
+ for (int i = 0; i < bufferlen; i++) {
+ float v = mono[i];
+ left[i] += v;
+ right[i] += v;
+ }
+ }
+ else
+ {
+ for (int i = 0; i < bufferlen; i++) {
+ left[i] += mono[i];
+ }
+ }
+ }
+
for (int i = 0; i < cbuffer.length; i++) {
float[] cbuff = cbuffer[i];
float[] obuff = obuffer[i];
@@ -539,6 +564,7 @@ public class SoftMainMixer {
buffers[CHANNEL_LEFT] = leftbak;
buffers[CHANNEL_RIGHT] = rightbak;
+ buffers[CHANNEL_MONO] = monobak;
}
@@ -547,6 +573,27 @@ public class SoftMainMixer {
if (voicestatus[i].channelmixer == null)
voicestatus[i].processAudioLogic(buffers);
+ if(!buffers[CHANNEL_MONO].isSilent())
+ {
+ float[] mono = buffers[CHANNEL_MONO].array();
+ float[] left = buffers[CHANNEL_LEFT].array();
+ int bufferlen = buffers[CHANNEL_LEFT].getSize();
+ if (nrofchannels != 1) {
+ float[] right = buffers[CHANNEL_RIGHT].array();
+ for (int i = 0; i < bufferlen; i++) {
+ float v = mono[i];
+ left[i] += v;
+ right[i] += v;
+ }
+ }
+ else
+ {
+ for (int i = 0; i < bufferlen; i++) {
+ left[i] += mono[i];
+ }
+ }
+ }
+
// Run effects
if (synth.chorus_on)
chorus.processAudio();
@@ -665,7 +712,7 @@ public class SoftMainMixer {
/ synth.getControlRate());
control_mutex = synth.control_mutex;
- buffers = new SoftAudioBuffer[16];
+ buffers = new SoftAudioBuffer[17];
for (int i = 0; i < buffers.length; i++) {
buffers[i] = new SoftAudioBuffer(buffersize, synth.getFormat());
}
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftVoice.java b/jdk/src/share/classes/com/sun/media/sound/SoftVoice.java
index 49662b78706..cec2e3047ac 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftVoice.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftVoice.java
@@ -782,6 +782,7 @@ public class SoftVoice extends VoiceStatus {
SoftAudioBuffer left = buffer[SoftMainMixer.CHANNEL_LEFT];
SoftAudioBuffer right = buffer[SoftMainMixer.CHANNEL_RIGHT];
+ SoftAudioBuffer mono = buffer[SoftMainMixer.CHANNEL_MONO];
SoftAudioBuffer eff1 = buffer[SoftMainMixer.CHANNEL_EFFECT1];
SoftAudioBuffer eff2 = buffer[SoftMainMixer.CHANNEL_EFFECT2];
SoftAudioBuffer leftdry = buffer[SoftMainMixer.CHANNEL_LEFT_DRY];
@@ -803,13 +804,22 @@ public class SoftVoice extends VoiceStatus {
mixAudioStream(rightdry, left, last_out_mixer_left,
out_mixer_left);
} else {
- mixAudioStream(leftdry, left, last_out_mixer_left, out_mixer_left);
- if (rightdry != null)
- mixAudioStream(rightdry, right, last_out_mixer_right,
- out_mixer_right);
+ if(rightdry == null &&
+ last_out_mixer_left == last_out_mixer_right &&
+ out_mixer_left == out_mixer_right)
+ {
+ mixAudioStream(leftdry, mono, last_out_mixer_left, out_mixer_left);
+ }
else
- mixAudioStream(leftdry, right, last_out_mixer_right,
+ {
+ mixAudioStream(leftdry, left, last_out_mixer_left, out_mixer_left);
+ if (rightdry != null)
+ mixAudioStream(rightdry, right, last_out_mixer_right,
out_mixer_right);
+ else
+ mixAudioStream(leftdry, right, last_out_mixer_right,
+ out_mixer_right);
+ }
}
if (rightdry == null) {
diff --git a/jdk/test/javax/sound/midi/Gervill/SoftChannel/NoteOverFlowTest.java b/jdk/test/javax/sound/midi/Gervill/SoftChannel/NoteOverFlowTest.java
new file mode 100644
index 00000000000..fdb33571b4d
--- /dev/null
+++ b/jdk/test/javax/sound/midi/Gervill/SoftChannel/NoteOverFlowTest.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+/* @test
+ @summary Test SoftChannel noteOn/noteOff overflow test */
+
+import javax.sound.midi.MidiChannel;
+import javax.sound.midi.VoiceStatus;
+import javax.sound.sampled.AudioFormat;
+import javax.sound.sampled.AudioInputStream;
+
+import com.sun.media.sound.AudioSynthesizer;
+import com.sun.media.sound.SoftSynthesizer;
+
+public class NoteOverFlowTest {
+
+ public static void main(String[] args) throws Exception
+ {
+ AudioSynthesizer synth = new SoftSynthesizer();
+ AudioFormat format = new AudioFormat(44100, 16, 2, true, false);
+ AudioInputStream stream = synth.openStream(format, null);
+
+ // Make all voices busy, e.g.
+ // send midi on and midi off on all available voices
+ MidiChannel ch1 = synth.getChannels()[0];
+ ch1.programChange(48); // Use contionus instrument like string ensemble
+ for (int i = 0; i < synth.getMaxPolyphony(); i++) {
+ ch1.noteOn(64, 64);
+ ch1.noteOff(64);
+ }
+
+ // Now send single midi on, and midi off message
+ ch1.noteOn(64, 64);
+ ch1.noteOff(64);
+
+ // Read 10 sec from stream, by this time all voices should be inactvie
+ stream.skip(format.getFrameSize() * ((int)(format.getFrameRate() * 20)));
+
+ // If no voice are active, then this test will pass
+ VoiceStatus[] v = synth.getVoiceStatus();
+ for (int i = 0; i < v.length; i++) {
+ if(v[i].active)
+ {
+ throw new RuntimeException("Not all voices are inactive!");
+ }
+ }
+
+ // Close the synthesizer after use
+ synth.close();
+ }
+}
diff --git a/jdk/test/javax/sound/midi/Gervill/SoftFilter/TestProcessAudio.java b/jdk/test/javax/sound/midi/Gervill/SoftFilter/TestProcessAudio.java
new file mode 100644
index 00000000000..032f66762c0
--- /dev/null
+++ b/jdk/test/javax/sound/midi/Gervill/SoftFilter/TestProcessAudio.java
@@ -0,0 +1,99 @@
+/*
+ * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+/* @test
+ @summary Test SoftFilter processAudio method */
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.Random;
+
+import javax.sound.sampled.*;
+
+import com.sun.media.sound.*;
+
+public class TestProcessAudio {
+
+ public static void main(String[] args) throws Exception {
+ AudioFormat format = new AudioFormat(44100, 16, 2, true, false);
+ SoftAudioBuffer sbuffer = new SoftAudioBuffer(3600, format);
+ SoftFilter filter = new SoftFilter(format.getSampleRate());
+ Random random = new Random(42);
+
+
+ for (int t = 0; t <= 6; t++)
+ {
+ if(t == 0) filter.setFilterType(SoftFilter.FILTERTYPE_BP12);
+ if(t == 1) filter.setFilterType(SoftFilter.FILTERTYPE_HP12);
+ if(t == 2) filter.setFilterType(SoftFilter.FILTERTYPE_HP24);
+ if(t == 3) filter.setFilterType(SoftFilter.FILTERTYPE_LP12);
+ if(t == 4) filter.setFilterType(SoftFilter.FILTERTYPE_LP24);
+ if(t == 5) filter.setFilterType(SoftFilter.FILTERTYPE_LP6);
+ if(t == 6) filter.setFilterType(SoftFilter.FILTERTYPE_NP12);
+
+
+ // Try first by reseting always
+ for (int f = 1200; f < 3600; f+=100)
+ for (int r = 0; r <= 30; r+=5) {
+ filter.reset();
+ filter.setResonance(r);
+ filter.setFrequency(f);
+ float[] data = sbuffer.array();
+ int len = sbuffer.getSize();
+ for (int i = 0; i < len; i++)
+ data[i] = random.nextFloat() - 0.5f;
+ filter.processAudio(sbuffer);
+ }
+
+ // Now we skip reseting
+ // to test how changing frequency and resonance
+ // affect active filter
+ for (int f = 100; f < 12800; f+=1200)
+ for (int r = 0; r <= 30; r+=5) {
+ filter.setResonance(r);
+ filter.setFrequency(f);
+ float[] data = sbuffer.array();
+ int len = sbuffer.getSize();
+ for (int i = 0; i < len; i++)
+ data[i] = random.nextFloat() - 0.5f;
+ filter.processAudio(sbuffer);
+ }
+ for (int f = 12800; f >= 100; f-=1200)
+ for (int r = 30; r >= 0; r-=5) {
+ filter.setResonance(r);
+ filter.setFrequency(f);
+ float[] data = sbuffer.array();
+ int len = sbuffer.getSize();
+ for (int i = 0; i < len; i++)
+ data[i] = random.nextFloat() - 0.5f;
+ filter.processAudio(sbuffer);
+ }
+ filter.reset();
+ }
+
+ }
+
+}
From e06ad08fd438f6070be2c0bf4e69a9178db67863 Mon Sep 17 00:00:00 2001
From: Anthony Petrov
Date: Fri, 17 Apr 2009 16:16:14 +0400
Subject: [PATCH 48/91] 6826104: Getting a NullPointer exception when clicked
on Application & Toolkit Modal dialog
The addition of window peers to the windows collection has been restored in XWindowPeer.
Reviewed-by: art, dcherepanov
---
jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java b/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java
index 41807dbf047..d3fb2107281 100644
--- a/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java
+++ b/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java
@@ -146,6 +146,13 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
params.put(OVERRIDE_REDIRECT, Boolean.valueOf(isOverrideRedirect()));
+ SunToolkit.awtLock();
+ try {
+ windows.add(this);
+ } finally {
+ SunToolkit.awtUnlock();
+ }
+
cachedFocusableWindow = isFocusableWindow();
Font f = target.getFont();
From 2f6783dce500f4962e19911eda018cb4f26e09bd Mon Sep 17 00:00:00 2001
From: Karl Helgason
Date: Fri, 17 Apr 2009 16:20:50 +0400
Subject: [PATCH 49/91] 6823445: Gervill SoftChannel/ResetAllControllers jtreg
test fails after portamento fix from last merge
Reviewed-by: amenkov
---
.../com/sun/media/sound/SoftChannel.java | 23 ++++++-------------
1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java b/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java
index 57bb3b85dc9..96a575f2c8e 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftChannel.java
@@ -67,7 +67,6 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
dontResetControls[77] = true; // Sound Controller 8 (GM2 default: Vibrato Depth)
dontResetControls[78] = true; // Sound Controller 9 (GM2 default: Vibrato Delay)
dontResetControls[79] = true; // Sound Controller 10 (GM2 default: Undefined)
- dontResetControls[84] = true; // Portamento Controller
dontResetControls[120] = true; // All Sound Off
dontResetControls[121] = true; // Reset All Controllers
dontResetControls[122] = true; // Local Control On/Off
@@ -94,7 +93,6 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
protected double portamento_time = 1; // keyschanges per control buffer time
protected int[] portamento_lastnote = new int[128];
protected int portamento_lastnote_ix = 0;
- private int portamento_control_note = -1;
private boolean portamento = false;
private boolean mono = false;
private boolean mute = false;
@@ -370,12 +368,12 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
voice.setSoloMute(solomute);
if (releaseTriggered)
return;
- if (portamento_control_note != -1) {
+ if (controller[84] != 0) {
voice.co_noteon_keynumber[0]
- = (tuning.getTuning(portamento_control_note) / 100.0)
+ = (tuning.getTuning(controller[84]) / 100.0)
* (1f / 128f);
voice.portamento = true;
- portamento_control_note = -1;
+ controlChange(84, 0);
} else if (portamento) {
if (mono) {
if (portamento_lastnote[0] != -1) {
@@ -383,7 +381,7 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
= (tuning.getTuning(portamento_lastnote[0]) / 100.0)
* (1f / 128f);
voice.portamento = true;
- portamento_control_note = -1;
+ controlChange(84, 0);
}
portamento_lastnote[0] = noteNumber;
} else {
@@ -450,19 +448,19 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
}
}
- if (portamento_control_note != -1) {
+ if (controller[84] != 0) {
boolean n_found = false;
for (int i = 0; i < voices.length; i++) {
if (voices[i].on && voices[i].channel == channel
&& voices[i].active
- && voices[i].note == portamento_control_note
+ && voices[i].note == controller[84]
&& voices[i].releaseTriggered == false) {
voices[i].portamento = true;
voices[i].setNote(noteNumber);
n_found = true;
}
}
- portamento_control_note = -1;
+ controlChange(84, 0);
if (n_found)
return;
}
@@ -1154,9 +1152,6 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
}
}
break;
- case 84:
- portamento_control_note = value;
- break;
case 98:
nrpn_control = (nrpn_control & (127 << 7)) + value;
rpn_control = RPN_NULL_VALUE;
@@ -1398,10 +1393,6 @@ public class SoftChannel implements MidiChannel, ModelDirectedPlayer {
controlChange(i, 0);
}
- // Portamento Controller (0x54) has to reset
- // to -1 which mean that Portamento Controller is off
- portamento_control_note = -1;
-
controlChange(71, 64); // Filter Resonance
controlChange(72, 64); // Release Time
controlChange(73, 64); // Attack Time
From b426a72177f8b09d6549ca8f3475b8dc0b17f778 Mon Sep 17 00:00:00 2001
From: Karl Helgason
Date: Fri, 17 Apr 2009 16:28:02 +0400
Subject: [PATCH 50/91] 6823446: Gervill SoftLowFrequencyOscillator fails when
freq is set to 0 cent or 8.1758 Hz
Reviewed-by: amenkov
---
.../sound/SoftLowFrequencyOscillator.java | 10 +-
.../TestProcessControlLogic.java | 106 ++++++++++++++++++
2 files changed, 115 insertions(+), 1 deletion(-)
create mode 100644 jdk/test/javax/sound/midi/Gervill/SoftLowFrequencyOscillator/TestProcessControlLogic.java
diff --git a/jdk/src/share/classes/com/sun/media/sound/SoftLowFrequencyOscillator.java b/jdk/src/share/classes/com/sun/media/sound/SoftLowFrequencyOscillator.java
index adfe9e08de3..5e2ea0b4999 100644
--- a/jdk/src/share/classes/com/sun/media/sound/SoftLowFrequencyOscillator.java
+++ b/jdk/src/share/classes/com/sun/media/sound/SoftLowFrequencyOscillator.java
@@ -45,6 +45,13 @@ public class SoftLowFrequencyOscillator implements SoftProcess {
private double sin_factor = 0;
private static double PI2 = 2.0 * Math.PI;
+ public SoftLowFrequencyOscillator() {
+ // If sin_step is 0 then sin_stepfreq must be -INF
+ for (int i = 0; i < sin_stepfreq.length; i++) {
+ sin_stepfreq[i] = Double.NEGATIVE_INFINITY;
+ }
+ }
+
public void reset() {
for (int i = 0; i < used_count; i++) {
out[i][0] = 0;
@@ -53,7 +60,8 @@ public class SoftLowFrequencyOscillator implements SoftProcess {
freq[i][0] = 0;
delay_counter[i] = 0;
sin_phase[i] = 0;
- sin_stepfreq[i] = 0;
+ // If sin_step is 0 then sin_stepfreq must be -INF
+ sin_stepfreq[i] = Double.NEGATIVE_INFINITY;
sin_step[i] = 0;
}
used_count = 0;
diff --git a/jdk/test/javax/sound/midi/Gervill/SoftLowFrequencyOscillator/TestProcessControlLogic.java b/jdk/test/javax/sound/midi/Gervill/SoftLowFrequencyOscillator/TestProcessControlLogic.java
new file mode 100644
index 00000000000..6289a88cd86
--- /dev/null
+++ b/jdk/test/javax/sound/midi/Gervill/SoftLowFrequencyOscillator/TestProcessControlLogic.java
@@ -0,0 +1,106 @@
+/*
+ * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+/* @test
+ @summary Test SoftLowFrequencyOscillator processControlLogic method */
+
+import com.sun.media.sound.AudioSynthesizerPropertyInfo;
+import com.sun.media.sound.SoftLowFrequencyOscillator;
+import com.sun.media.sound.SoftSynthesizer;
+
+public class TestProcessControlLogic {
+
+ private static float control_rate = 147f;
+ private static SoftSynthesizer synth = new SoftSynthesizer();
+ private static SoftLowFrequencyOscillator lfo = new SoftLowFrequencyOscillator();
+
+ private static void testLFO(boolean shared, int instance, float freq, float delay,
+ float delay2) throws Exception {
+ SoftLowFrequencyOscillator lfo =
+ shared?TestProcessControlLogic.lfo:new SoftLowFrequencyOscillator();
+ lfo.reset();
+ double[] lfo_freq = lfo.get(instance, "freq");
+ double[] lfo_delay = lfo.get(instance, "delay");
+ double[] lfo_delay2 = lfo.get(instance, "delay2");
+ double[] lfo_output = lfo.get(instance, null);
+ lfo_freq[0] = freq;
+ lfo_delay[0] = delay;
+ lfo_delay2[0] = delay2;
+ lfo.init(synth);
+
+ // For delayCount amount time, the output LFO should be 0.5
+ int delayCount = (int) ((Math.pow(2, delay / 1200.0) * control_rate));
+ delayCount += (int) ((delay2 * control_rate) / 1000.0);
+ for (int i = 0; i < delayCount; i++) {
+ if (Math.abs(0.5 - lfo_output[0]) > 0.000001)
+ throw new Exception("Incorrect LFO output ("
+ +"0.5 != "+lfo_output[0]+")!");
+ lfo.processControlLogic();
+ }
+
+ // After the delay the LFO should start oscillate
+ // Let make sure output is accurate enough
+ double p_step = (440.0 / control_rate)
+ * Math.exp((freq - 6900.0) * (Math.log(2) / 1200.0));
+ double p = 0;
+ for (int i = 0; i < 30; i++) {
+ p += p_step;
+ double predicted_output = 0.5 + Math.sin(p * 2 * Math.PI) * 0.5;
+ if (Math.abs(predicted_output - lfo_output[0]) > 0.001)
+ throw new Exception("Incorrect LFO output ("
+ +predicted_output+" != "+lfo_output[0]+")!");
+ lfo.processControlLogic();
+ }
+
+ }
+
+ public static void main(String[] args) throws Exception {
+
+ // Get default control rate from synthesizer
+ AudioSynthesizerPropertyInfo[] p = synth.getPropertyInfo(null);
+ for (int i = 0; i < p.length; i++) {
+ if (p[i].name.equals("control rate")) {
+ control_rate = ((Float) p[i].value).floatValue();
+ break;
+ }
+ }
+
+ // Test LFO under various configurations
+ for (int instance = 0; instance < 3; instance++)
+ for (int d1 = -3000; d1 < 0; d1 += 1000)
+ for (int d2 = 0; d2 < 5000; d2 += 1000)
+ for (int fr = -1000; fr < 1000; fr += 100) {
+ testLFO(true, instance,
+ (fr == -1000) ? Float.NEGATIVE_INFINITY : fr,
+ (d1 == -3000) ? Float.NEGATIVE_INFINITY : d1,
+ d2);
+ testLFO(false, instance,
+ (fr == -1000) ? Float.NEGATIVE_INFINITY : fr,
+ (d1 == -3000) ? Float.NEGATIVE_INFINITY : d1,
+ d2);
+ }
+
+ }
+}
From c0f20f9d47f52cd43eae94810292642244bf2916 Mon Sep 17 00:00:00 2001
From: Anthony Petrov
Date: Fri, 17 Apr 2009 16:30:15 +0400
Subject: [PATCH 51/91] 6821948: Consider removing the constraints for bounds
of untrusted top-level windows
The constrainBounds() methods are removed.
Reviewed-by: art, dcherepanov
---
.../classes/sun/awt/X11/XDecoratedPeer.java | 43 +----------
.../sun/awt/X11/XEmbeddedFramePeer.java | 6 --
.../solaris/classes/sun/awt/X11/XWindow.java | 6 +-
.../classes/sun/awt/X11/XWindowPeer.java | 57 +-------------
.../classes/sun/awt/windows/WDialogPeer.java | 6 +-
.../sun/awt/windows/WEmbeddedFramePeer.java | 6 --
.../classes/sun/awt/windows/WFramePeer.java | 6 +-
.../classes/sun/awt/windows/WWindowPeer.java | 75 ++-----------------
8 files changed, 14 insertions(+), 191 deletions(-)
diff --git a/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java b/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java
index 739713dd713..3fc5c9b8b0c 100644
--- a/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java
+++ b/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java
@@ -490,8 +490,7 @@ abstract class XDecoratedPeer extends XWindowPeer {
// if the window manager or any other part of the windowing
// system sets inappropriate size for this window, we can
// do nothing but accept it.
- Rectangle reqBounds = newDimensions.getBounds();
- Rectangle newBounds = constrainBounds(reqBounds.x, reqBounds.y, reqBounds.width, reqBounds.height);
+ Rectangle newBounds = newDimensions.getBounds();
Insets insets = newDimensions.getInsets();
// Inherit isClientSizeSet from newDimensions
if (newDimensions.isClientSizeSet()) {
@@ -619,46 +618,6 @@ abstract class XDecoratedPeer extends XWindowPeer {
// This method gets overriden in XFramePeer & XDialogPeer.
abstract boolean isTargetUndecorated();
- @Override
- Rectangle constrainBounds(int x, int y, int width, int height) {
- // We don't restrict the setBounds() operation if the code is trusted.
- if (!hasWarningWindow()) {
- return new Rectangle(x, y, width, height);
- }
-
- // If it's undecorated or is not currently visible,
- // apply the same constraints as for the Window.
- if (!isVisible() || isTargetUndecorated()) {
- return super.constrainBounds(x, y, width, height);
- }
-
- // If it's visible & decorated, constraint the size only
- int newX = x;
- int newY = y;
- int newW = width;
- int newH = height;
-
- GraphicsConfiguration gc = ((Window)target).getGraphicsConfiguration();
- Rectangle sB = gc.getBounds();
- Insets sIn = ((Window)target).getToolkit().getScreenInsets(gc);
-
- Rectangle curBounds = getBounds();
-
- int maxW = Math.max(sB.width - sIn.left - sIn.right, curBounds.width);
- int maxH = Math.max(sB.height - sIn.top - sIn.bottom, curBounds.height);
-
- // First make sure the size is withing the visible part of the screen
- if (newW > maxW) {
- newW = maxW;
- }
-
- if (newH > maxH) {
- newH = maxH;
- }
-
- return new Rectangle(newX, newY, newW, newH);
- }
-
/**
* @see java.awt.peer.ComponentPeer#setBounds
*/
diff --git a/jdk/src/solaris/classes/sun/awt/X11/XEmbeddedFramePeer.java b/jdk/src/solaris/classes/sun/awt/X11/XEmbeddedFramePeer.java
index 892d7c94e99..4b9bcc91def 100644
--- a/jdk/src/solaris/classes/sun/awt/X11/XEmbeddedFramePeer.java
+++ b/jdk/src/solaris/classes/sun/awt/X11/XEmbeddedFramePeer.java
@@ -196,12 +196,6 @@ public class XEmbeddedFramePeer extends XFramePeer {
}
}
- @Override
- Rectangle constrainBounds(int x, int y, int width, int height) {
- // We don't constrain the bounds of the EmbeddedFrames
- return new Rectangle(x, y, width, height);
- }
-
// don't use getBounds() inherited from XDecoratedPeer
public Rectangle getBounds() {
return new Rectangle(x, y, width, height);
diff --git a/jdk/src/solaris/classes/sun/awt/X11/XWindow.java b/jdk/src/solaris/classes/sun/awt/X11/XWindow.java
index 6c517b19697..5115f464922 100644
--- a/jdk/src/solaris/classes/sun/awt/X11/XWindow.java
+++ b/jdk/src/solaris/classes/sun/awt/X11/XWindow.java
@@ -156,11 +156,11 @@ public class XWindow extends XBaseWindow implements X11ComponentPeer {
}
XWindow(Component target, long parentWindow) {
- this(target, parentWindow, target.getBounds());
+ this(target, parentWindow, new Rectangle(target.getBounds()));
}
XWindow(Component target) {
- this(target, (target.getParent() == null) ? 0 : getParentWindowID(target), target.getBounds());
+ this(target, (target.getParent() == null) ? 0 : getParentWindowID(target), new Rectangle(target.getBounds()));
}
XWindow(Object target) {
@@ -198,7 +198,7 @@ public class XWindow extends XBaseWindow implements X11ComponentPeer {
| XConstants.ButtonMotionMask | XConstants.ExposureMask | XConstants.StructureNotifyMask);
if (target != null) {
- params.putIfNull(BOUNDS, target.getBounds());
+ params.putIfNull(BOUNDS, new Rectangle(target.getBounds()));
} else {
params.putIfNull(BOUNDS, new Rectangle(0, 0, MIN_SIZE, MIN_SIZE));
}
diff --git a/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java b/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java
index d3fb2107281..e78d007bdbf 100644
--- a/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java
+++ b/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java
@@ -180,9 +180,6 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
GraphicsConfiguration gc = getGraphicsConfiguration();
((X11GraphicsDevice)gc.getDevice()).addDisplayChangedListener(this);
-
- Rectangle bounds = (Rectangle)(params.get(BOUNDS));
- params.put(BOUNDS, constrainBounds(bounds.x, bounds.y, bounds.width, bounds.height));
}
protected String getWMName() {
@@ -437,56 +434,6 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
return ownerPeer;
}
- // This method is overriden at the XDecoratedPeer to handle
- // decorated windows a bit differently.
- Rectangle constrainBounds(int x, int y, int width, int height) {
- // We don't restrict the setBounds() operation if the code is trusted.
- if (!hasWarningWindow()) {
- return new Rectangle(x, y, width, height);
- }
-
- // The window bounds should be within the visible part of the screen
- int newX = x;
- int newY = y;
- int newW = width;
- int newH = height;
-
- // Now check each point is within the visible part of the screen
- GraphicsConfiguration gc = ((Window)target).getGraphicsConfiguration();
- Rectangle sB = gc.getBounds();
- Insets sIn = ((Window)target).getToolkit().getScreenInsets(gc);
-
- int screenX = sB.x + sIn.left;
- int screenY = sB.y + sIn.top;
- int screenW = sB.width - sIn.left - sIn.right;
- int screenH = sB.height - sIn.top - sIn.bottom;
-
-
- // First make sure the size is withing the visible part of the screen
- if (newW > screenW) {
- newW = screenW;
- }
-
- if (newH > screenH) {
- newH = screenH;
- }
-
- // Tweak the location if needed
- if (newX < screenX) {
- newX = screenX;
- } else if (newX + newW > screenX + screenW) {
- newX = screenX + screenW - newW;
- }
-
- if (newY < screenY) {
- newY = screenY;
- } else if (newY + newH > screenY + screenH) {
- newY = screenY + screenH - newH;
- }
-
- return new Rectangle(newX, newY, newW, newH);
- }
-
//Fix for 6318144: PIT:Setting Min Size bigger than current size enlarges
//the window but fails to revalidate, Sol-CDE
//This bug is regression for
@@ -495,13 +442,11 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
//Note that this function is overriden in XDecoratedPeer so event
//posting is not changing for decorated peers
public void setBounds(int x, int y, int width, int height, int op) {
- Rectangle newBounds = constrainBounds(x, y, width, height);
-
XToolkit.awtLock();
try {
Rectangle oldBounds = getBounds();
- super.setBounds(newBounds.x, newBounds.y, newBounds.width, newBounds.height, op);
+ super.setBounds(x, y, width, height, op);
Rectangle bounds = getBounds();
diff --git a/jdk/src/windows/classes/sun/awt/windows/WDialogPeer.java b/jdk/src/windows/classes/sun/awt/windows/WDialogPeer.java
index 96cdb26f6d3..4424f1cc813 100644
--- a/jdk/src/windows/classes/sun/awt/windows/WDialogPeer.java
+++ b/jdk/src/windows/classes/sun/awt/windows/WDialogPeer.java
@@ -114,12 +114,10 @@ class WDialogPeer extends WWindowPeer implements DialogPeer {
}
public void reshape(int x, int y, int width, int height) {
- Rectangle newBounds = constrainBounds(x, y, width, height);
-
if (((Dialog)target).isUndecorated()) {
- super.reshape(newBounds.x, newBounds.y, newBounds.width, newBounds.height);
+ super.reshape(x, y, width, height);
} else {
- reshapeFrame(newBounds.x, newBounds.y, newBounds.width, newBounds.height);
+ reshapeFrame(x, y, width, height);
}
}
diff --git a/jdk/src/windows/classes/sun/awt/windows/WEmbeddedFramePeer.java b/jdk/src/windows/classes/sun/awt/windows/WEmbeddedFramePeer.java
index 2e1e6e618dc..2ed17f60fe3 100644
--- a/jdk/src/windows/classes/sun/awt/windows/WEmbeddedFramePeer.java
+++ b/jdk/src/windows/classes/sun/awt/windows/WEmbeddedFramePeer.java
@@ -67,12 +67,6 @@ public class WEmbeddedFramePeer extends WFramePeer {
public native void synthesizeWmActivate(boolean doActivate);
- @Override
- Rectangle constrainBounds(int x, int y, int width, int height) {
- // We don't constrain the bounds of the EmbeddedFrames
- return new Rectangle(x, y, width, height);
- }
-
@Override
public boolean isAccelCapable() {
// REMIND: Temp workaround for issues with using HW acceleration
diff --git a/jdk/src/windows/classes/sun/awt/windows/WFramePeer.java b/jdk/src/windows/classes/sun/awt/windows/WFramePeer.java
index 79bf6b77e41..86bde26582b 100644
--- a/jdk/src/windows/classes/sun/awt/windows/WFramePeer.java
+++ b/jdk/src/windows/classes/sun/awt/windows/WFramePeer.java
@@ -89,12 +89,10 @@ class WFramePeer extends WWindowPeer implements FramePeer {
}
public void reshape(int x, int y, int width, int height) {
- Rectangle newBounds = constrainBounds(x, y, width, height);
-
if (((Frame)target).isUndecorated()) {
- super.reshape(newBounds.x, newBounds.y, newBounds.width, newBounds.height);
+ super.reshape(x, y, width, height);
} else {
- reshapeFrame(newBounds.x, newBounds.y, newBounds.width, newBounds.height);
+ reshapeFrame(x, y, width, height);
}
}
diff --git a/jdk/src/windows/classes/sun/awt/windows/WWindowPeer.java b/jdk/src/windows/classes/sun/awt/windows/WWindowPeer.java
index 3c624020934..4a23b779d62 100644
--- a/jdk/src/windows/classes/sun/awt/windows/WWindowPeer.java
+++ b/jdk/src/windows/classes/sun/awt/windows/WWindowPeer.java
@@ -546,81 +546,16 @@ public class WWindowPeer extends WPanelPeer implements WindowPeer,
private volatile int sysW = 0;
private volatile int sysH = 0;
- Rectangle constrainBounds(int x, int y, int width, int height) {
- GraphicsConfiguration gc = this.winGraphicsConfig;
-
- // We don't restrict the setBounds() operation if the code is trusted.
- if (!hasWarningWindow() || gc == null) {
- return new Rectangle(x, y, width, height);
- }
-
- int newX = x;
- int newY = y;
- int newW = width;
- int newH = height;
-
- Rectangle sB = gc.getBounds();
- Insets sIn = Toolkit.getDefaultToolkit().getScreenInsets(gc);
-
- int screenW = sB.width - sIn.left - sIn.right;
- int screenH = sB.height - sIn.top - sIn.bottom;
-
- // If it's undecorated or is not currently visible
- if (!AWTAccessor.getComponentAccessor().isVisible_NoClientCode(
- (Component)target) || isTargetUndecorated())
- {
- // Now check each point is within the visible part of the screen
- int screenX = sB.x + sIn.left;
- int screenY = sB.y + sIn.top;
-
- // First make sure the size is within the visible part of the screen
- if (newW > screenW) {
- newW = screenW;
- }
- if (newH > screenH) {
- newH = screenH;
- }
-
- // Tweak the location if needed
- if (newX < screenX) {
- newX = screenX;
- } else if (newX + newW > screenX + screenW) {
- newX = screenX + screenW - newW;
- }
- if (newY < screenY) {
- newY = screenY;
- } else if (newY + newH > screenY + screenH) {
- newY = screenY + screenH - newH;
- }
- } else {
- int maxW = Math.max(screenW, sysW);
- int maxH = Math.max(screenH, sysH);
-
- // Make sure the size is withing the visible part of the screen
- // OR less that the current size of the window.
- if (newW > maxW) {
- newW = maxW;
- }
- if (newH > maxH) {
- newH = maxH;
- }
- }
-
- return new Rectangle(newX, newY, newW, newH);
- }
-
public native void repositionSecurityWarning();
@Override
public void setBounds(int x, int y, int width, int height, int op) {
- Rectangle newBounds = constrainBounds(x, y, width, height);
+ sysX = x;
+ sysY = y;
+ sysW = width;
+ sysH = height;
- sysX = newBounds.x;
- sysY = newBounds.y;
- sysW = newBounds.width;
- sysH = newBounds.height;
-
- super.setBounds(newBounds.x, newBounds.y, newBounds.width, newBounds.height, op);
+ super.setBounds(x, y, width, height, op);
}
@Override
From 4b321c2bfcb2a32fed1fb14d4d90e79a602ce400 Mon Sep 17 00:00:00 2001
From: Anthony Petrov
Date: Fri, 17 Apr 2009 16:42:14 +0400
Subject: [PATCH 52/91] 6829858: JInternalFrame is not redrawing heavyweight
children properly
The Container.recursiveApplyCurrentShape() is now recursively called for all hw containers, even those having non-null layout
Reviewed-by: art, dcherepanov
---
jdk/src/share/classes/java/awt/Container.java | 6 +-
jdk/test/java/awt/Mixing/MixingInHwPanel.java | 428 ++++++++++++++++++
2 files changed, 430 insertions(+), 4 deletions(-)
create mode 100644 jdk/test/java/awt/Mixing/MixingInHwPanel.java
diff --git a/jdk/src/share/classes/java/awt/Container.java b/jdk/src/share/classes/java/awt/Container.java
index 9a184a7a2ea..ec77fb9bc87 100644
--- a/jdk/src/share/classes/java/awt/Container.java
+++ b/jdk/src/share/classes/java/awt/Container.java
@@ -3977,10 +3977,8 @@ public class Container extends Component {
Component comp = getComponent(index);
if (!comp.isLightweight()) {
comp.applyCurrentShape();
- if (comp instanceof Container && ((Container)comp).getLayout() == null) {
- ((Container)comp).recursiveApplyCurrentShape();
- }
- } else if (comp instanceof Container &&
+ }
+ if (comp instanceof Container &&
((Container)comp).hasHeavyweightDescendants()) {
((Container)comp).recursiveApplyCurrentShape();
}
diff --git a/jdk/test/java/awt/Mixing/MixingInHwPanel.java b/jdk/test/java/awt/Mixing/MixingInHwPanel.java
new file mode 100644
index 00000000000..bafe7be402c
--- /dev/null
+++ b/jdk/test/java/awt/Mixing/MixingInHwPanel.java
@@ -0,0 +1,428 @@
+/*
+ * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+/*
+ @test %W% %E%
+ @bug 6829858
+ @summary Mixing should work inside heavyweight containers
+ @author anthony.petrov@sun.com: area=awt.mixing
+ @library ../regtesthelpers
+ @build Util
+ @run main MixingInHwPanel
+*/
+
+
+/**
+ * MixingInHwPanel.java
+ *
+ * summary: Mixing should work inside heavyweight containers
+ */
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import test.java.awt.regtesthelpers.Util;
+
+
+
+public class MixingInHwPanel
+{
+ static volatile boolean failed = true;
+
+ private static void init()
+ {
+ //*** Create instructions for the user here ***
+
+ String[] instructions =
+ {
+ "This is an AUTOMATIC test, simply wait until it is done.",
+ "The result (passed or failed) will be shown in the",
+ "message window below."
+ };
+ Sysout.createDialog( );
+ Sysout.printInstructions( instructions );
+
+ // Create the components: frame -> hwPanel -> JDesktopPane ->
+ // -> JInternalFrame -> hwButton
+ Frame frame = new Frame("Mixing in a heavyweight Panel");
+ frame.setBounds(100, 100, 640, 480);
+
+ Panel hwPanel = new Panel(new BorderLayout());
+ frame.add(hwPanel);
+
+ JDesktopPane desktop = new JDesktopPane();
+ hwPanel.add(desktop);
+
+ JInternalFrame iFrame = new JInternalFrame("one",
+ true, true, true, true);
+ iFrame.setPreferredSize(new Dimension(150, 55));
+ iFrame.setBounds(600, 100, 150, 55);
+ iFrame.setVisible(true);
+ desktop.add(iFrame);
+
+ Button button = new Button("HW Button");
+ button.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ failed = false;
+ }
+ });
+ iFrame.add(button);
+
+ // Show the frame with the hwButton slightly hidden initially
+ frame.setVisible(true);
+
+ Robot robot = Util.createRobot();
+ robot.setAutoDelay(20);
+
+ Util.waitForIdle(robot);
+
+ // Now resize the frame so that the button is fully visible
+ frame.setBounds(100, 100, 800, 480);
+ frame.validate();
+
+ Util.waitForIdle(robot);
+
+ // And click the part of the button that has been previously hidden
+ Point bLoc = button.getLocationOnScreen();
+ robot.mouseMove(bLoc.x + button.getWidth() - 6, bLoc.y + button.getHeight() / 2);
+
+ Util.waitForIdle(robot);
+
+ robot.mousePress(InputEvent.BUTTON1_MASK);
+ robot.mouseRelease(InputEvent.BUTTON1_MASK);
+
+ Util.waitForIdle(robot);
+
+ // If the click happens (the shape is reapplied), the button's action
+ // listener will make failed == false.
+ if (failed) {
+ MixingInHwPanel.fail("The HW button did not receive the click.");
+ } else {
+ MixingInHwPanel.pass();
+ }
+ }//End init()
+
+
+
+ /*****************************************************
+ * Standard Test Machinery Section
+ * DO NOT modify anything in this section -- it's a
+ * standard chunk of code which has all of the
+ * synchronisation necessary for the test harness.
+ * By keeping it the same in all tests, it is easier
+ * to read and understand someone else's test, as
+ * well as insuring that all tests behave correctly
+ * with the test harness.
+ * There is a section following this for test-
+ * classes
+ ******************************************************/
+ private static boolean theTestPassed = false;
+ private static boolean testGeneratedInterrupt = false;
+ private static String failureMessage = "";
+
+ private static Thread mainThread = null;
+
+ private static int sleepTime = 300000;
+
+ // Not sure about what happens if multiple of this test are
+ // instantiated in the same VM. Being static (and using
+ // static vars), it aint gonna work. Not worrying about
+ // it for now.
+ public static void main( String args[] ) throws InterruptedException
+ {
+ mainThread = Thread.currentThread();
+ try
+ {
+ init();
+ }
+ catch( TestPassedException e )
+ {
+ //The test passed, so just return from main and harness will
+ // interepret this return as a pass
+ return;
+ }
+ //At this point, neither test pass nor test fail has been
+ // called -- either would have thrown an exception and ended the
+ // test, so we know we have multiple threads.
+
+ //Test involves other threads, so sleep and wait for them to
+ // called pass() or fail()
+ try
+ {
+ Thread.sleep( sleepTime );
+ //Timed out, so fail the test
+ throw new RuntimeException( "Timed out after " + sleepTime/1000 + " seconds" );
+ }
+ catch (InterruptedException e)
+ {
+ //The test harness may have interrupted the test. If so, rethrow the exception
+ // so that the harness gets it and deals with it.
+ if( ! testGeneratedInterrupt ) throw e;
+
+ //reset flag in case hit this code more than once for some reason (just safety)
+ testGeneratedInterrupt = false;
+
+ if ( theTestPassed == false )
+ {
+ throw new RuntimeException( failureMessage );
+ }
+ }
+
+ }//main
+
+ public static synchronized void setTimeoutTo( int seconds )
+ {
+ sleepTime = seconds * 1000;
+ }
+
+ public static synchronized void pass()
+ {
+ Sysout.println( "The test passed." );
+ Sysout.println( "The test is over, hit Ctl-C to stop Java VM" );
+ //first check if this is executing in main thread
+ if ( mainThread == Thread.currentThread() )
+ {
+ //Still in the main thread, so set the flag just for kicks,
+ // and throw a test passed exception which will be caught
+ // and end the test.
+ theTestPassed = true;
+ throw new TestPassedException();
+ }
+ theTestPassed = true;
+ testGeneratedInterrupt = true;
+ mainThread.interrupt();
+ }//pass()
+
+ public static synchronized void fail()
+ {
+ //test writer didn't specify why test failed, so give generic
+ fail( "it just plain failed! :-)" );
+ }
+
+ public static synchronized void fail( String whyFailed )
+ {
+ Sysout.println( "The test failed: " + whyFailed );
+ Sysout.println( "The test is over, hit Ctl-C to stop Java VM" );
+ //check if this called from main thread
+ if ( mainThread == Thread.currentThread() )
+ {
+ //If main thread, fail now 'cause not sleeping
+ throw new RuntimeException( whyFailed );
+ }
+ theTestPassed = false;
+ testGeneratedInterrupt = true;
+ failureMessage = whyFailed;
+ mainThread.interrupt();
+ }//fail()
+
+}// class MixingInHwPanel
+
+//This exception is used to exit from any level of call nesting
+// when it's determined that the test has passed, and immediately
+// end the test.
+class TestPassedException extends RuntimeException
+{
+}
+
+//*********** End Standard Test Machinery Section **********
+
+
+//************ Begin classes defined for the test ****************
+
+// if want to make listeners, here is the recommended place for them, then instantiate
+// them in init()
+
+/* Example of a class which may be written as part of a test
+class NewClass implements anInterface
+ {
+ static int newVar = 0;
+
+ public void eventDispatched(AWTEvent e)
+ {
+ //Counting events to see if we get enough
+ eventCount++;
+
+ if( eventCount == 20 )
+ {
+ //got enough events, so pass
+
+ MixingInHwPanel.pass();
+ }
+ else if( tries == 20 )
+ {
+ //tried too many times without getting enough events so fail
+
+ MixingInHwPanel.fail();
+ }
+
+ }// eventDispatched()
+
+ }// NewClass class
+
+*/
+
+
+//************** End classes defined for the test *******************
+
+
+
+
+/****************************************************
+ Standard Test Machinery
+ DO NOT modify anything below -- it's a standard
+ chunk of code whose purpose is to make user
+ interaction uniform, and thereby make it simpler
+ to read and understand someone else's test.
+ ****************************************************/
+
+/**
+ This is part of the standard test machinery.
+ It creates a dialog (with the instructions), and is the interface
+ for sending text messages to the user.
+ To print the instructions, send an array of strings to Sysout.createDialog
+ WithInstructions method. Put one line of instructions per array entry.
+ To display a message for the tester to see, simply call Sysout.println
+ with the string to be displayed.
+ This mimics System.out.println but works within the test harness as well
+ as standalone.
+ */
+
+class Sysout
+{
+ private static TestDialog dialog;
+
+ public static void createDialogWithInstructions( String[] instructions )
+ {
+ dialog = new TestDialog( new Frame(), "Instructions" );
+ dialog.printInstructions( instructions );
+ dialog.setVisible(true);
+ println( "Any messages for the tester will display here." );
+ }
+
+ public static void createDialog( )
+ {
+ dialog = new TestDialog( new Frame(), "Instructions" );
+ String[] defInstr = { "Instructions will appear here. ", "" } ;
+ dialog.printInstructions( defInstr );
+ dialog.setVisible(true);
+ println( "Any messages for the tester will display here." );
+ }
+
+
+ public static void printInstructions( String[] instructions )
+ {
+ dialog.printInstructions( instructions );
+ }
+
+
+ public static void println( String messageIn )
+ {
+ dialog.displayMessage( messageIn );
+ System.out.println(messageIn);
+ }
+
+}// Sysout class
+
+/**
+ This is part of the standard test machinery. It provides a place for the
+ test instructions to be displayed, and a place for interactive messages
+ to the user to be displayed.
+ To have the test instructions displayed, see Sysout.
+ To have a message to the user be displayed, see Sysout.
+ Do not call anything in this dialog directly.
+ */
+class TestDialog extends Dialog
+{
+
+ TextArea instructionsText;
+ TextArea messageText;
+ int maxStringLength = 80;
+
+ //DO NOT call this directly, go through Sysout
+ public TestDialog( Frame frame, String name )
+ {
+ super( frame, name );
+ int scrollBoth = TextArea.SCROLLBARS_BOTH;
+ instructionsText = new TextArea( "", 15, maxStringLength, scrollBoth );
+ add( "North", instructionsText );
+
+ messageText = new TextArea( "", 5, maxStringLength, scrollBoth );
+ add("Center", messageText);
+
+ pack();
+
+ setVisible(true);
+ }// TestDialog()
+
+ //DO NOT call this directly, go through Sysout
+ public void printInstructions( String[] instructions )
+ {
+ //Clear out any current instructions
+ instructionsText.setText( "" );
+
+ //Go down array of instruction strings
+
+ String printStr, remainingStr;
+ for( int i=0; i < instructions.length; i++ )
+ {
+ //chop up each into pieces maxSringLength long
+ remainingStr = instructions[ i ];
+ while( remainingStr.length() > 0 )
+ {
+ //if longer than max then chop off first max chars to print
+ if( remainingStr.length() >= maxStringLength )
+ {
+ //Try to chop on a word boundary
+ int posOfSpace = remainingStr.
+ lastIndexOf( ' ', maxStringLength - 1 );
+
+ if( posOfSpace <= 0 ) posOfSpace = maxStringLength - 1;
+
+ printStr = remainingStr.substring( 0, posOfSpace + 1 );
+ remainingStr = remainingStr.substring( posOfSpace + 1 );
+ }
+ //else just print
+ else
+ {
+ printStr = remainingStr;
+ remainingStr = "";
+ }
+
+ instructionsText.append( printStr + "\n" );
+
+ }// while
+
+ }// for
+
+ }//printInstructions()
+
+ //DO NOT call this directly, go through Sysout
+ public void displayMessage( String messageIn )
+ {
+ messageText.append( messageIn + "\n" );
+ System.out.println(messageIn);
+ }
+
+}// TestDialog class
+
+
From 66152627379bf57f444cc706d5a0e57d77bb14c4 Mon Sep 17 00:00:00 2001
From: Vladimir Kozlov
Date: Fri, 17 Apr 2009 09:38:32 -0700
Subject: [PATCH 53/91] 6831323: Use v8plus as minimum required hardware for
current Hotspot sources
Use -xarch=v8plus as default for 32-bits VM on sparc.
Reviewed-by: never, twisti
---
hotspot/make/solaris/makefiles/sparcWorks.make | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/hotspot/make/solaris/makefiles/sparcWorks.make b/hotspot/make/solaris/makefiles/sparcWorks.make
index 501268e3d25..f88cfdfff3a 100644
--- a/hotspot/make/solaris/makefiles/sparcWorks.make
+++ b/hotspot/make/solaris/makefiles/sparcWorks.make
@@ -46,7 +46,7 @@ C_COMPILER_REV := \
$(shell $(CC) -V 2>&1 | sed -n 's/^.*[ ,\t]C[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p')
# Pick which compiler is validated
-ifeq ($(JDK_MINOR_VERSION),6)
+ifeq ($(JRE_RELEASE_VER),1.6.0)
# Validated compiler for JDK6 is SS11 (5.8)
VALIDATED_COMPILER_REV := 5.8
VALIDATED_C_COMPILER_REV := 5.8
@@ -101,18 +101,9 @@ CFLAGS += ${SOLARIS_7_OR_LATER}
# New architecture options started in SS12 (5.9), we need both styles to build.
# The older arch options for SS11 (5.8) or older and also for /usr/ccs/bin/as.
-# Note: SS12 default for 32bit sparc is now the same as v8plus, so the
-# settings below have changed all SS12 32bit sparc builds to be v8plus.
-# The older SS11 (5.8) settings have remained as they always have been.
-ifeq ($(TYPE),COMPILER2)
- ARCHFLAG_OLD/sparc = -xarch=v8plus
-else
- ifeq ($(TYPE),TIERED)
- ARCHFLAG_OLD/sparc = -xarch=v8plus
- else
- ARCHFLAG_OLD/sparc = -xarch=v8
- endif
-endif
+# Note: default for 32bit sparc is now the same as v8plus, so the
+# settings below have changed all 32bit sparc builds to be v8plus.
+ARCHFLAG_OLD/sparc = -xarch=v8plus
ARCHFLAG_NEW/sparc = -m32 -xarch=sparc
ARCHFLAG_OLD/sparcv9 = -xarch=v9
ARCHFLAG_NEW/sparcv9 = -m64 -xarch=sparc
From e13875dd4ea9df0c6da13d42d5506612692fe3e4 Mon Sep 17 00:00:00 2001
From: Tim Bell
Date: Mon, 20 Apr 2009 00:12:19 -0700
Subject: [PATCH 54/91] 6372405: Server thread hangs when fragments don't
complete because of connection abort 5104239: Java: thread deadlock 6191561:
JCK15: api/org_omg/PortableInterceptor/ClientRequestInfo/index.html#RIMethods
sometime hang 6486322: org.omg.CORBA.ORB.init() thread safety issue 6420980:
Security issue with the com.sun.corba.se.impl.orbutil.ORBUtility class
6465377: NullPointerException for RMI ORB in 1.5.0_08 6553303: Corba
application fails w/ org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203
completed: No 6438259: Wrong repository ID generated by IDLJ
Reviewed-by: darcy
---
.../encoding/BufferManagerReadStream.java | 14 ++-
.../corba/se/impl/io/ObjectStreamClass.java | 32 +++---
.../sun/corba/se/impl/oa/poa/POAFactory.java | 10 +-
.../com/sun/corba/se/impl/orb/ORBImpl.java | 97 +++++++++++--------
.../sun/corba/se/impl/orb/ORBSingleton.java | 4 +-
.../sun/corba/se/impl/orbutil/ORBUtility.java | 21 +---
.../se/impl/resolver/INSURLOperationImpl.java | 10 +-
.../SocketOrChannelConnectionImpl.java | 6 +-
.../sun/corba/se/spi/logging/data/ORBUtil.mc | 4 +-
.../com/sun/tools/corba/se/idl/Parser.java | 8 +-
.../corba/se/logutil/InputException.java | 1 -
.../src/share/classes/org/omg/CORBA/ORB.java | 4 +-
12 files changed, 114 insertions(+), 97 deletions(-)
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/encoding/BufferManagerReadStream.java b/corba/src/share/classes/com/sun/corba/se/impl/encoding/BufferManagerReadStream.java
index 4925c735495..c57942f0da1 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/encoding/BufferManagerReadStream.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/encoding/BufferManagerReadStream.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2000-2003 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -44,6 +44,7 @@ public class BufferManagerReadStream
// We should convert endOfStream to a final static dummy end node
private boolean endOfStream = true;
private BufferQueue fragmentQueue = new BufferQueue();
+ private long FRAGMENT_TIMEOUT = 60000;
// REVISIT - This should go in BufferManagerRead. But, since
// BufferManagerRead is an interface. BufferManagerRead
@@ -111,9 +112,16 @@ public class BufferManagerReadStream
throw wrapper.endOfStream() ;
}
+ boolean interrupted = false;
try {
- fragmentQueue.wait();
- } catch (InterruptedException e) {}
+ fragmentQueue.wait(FRAGMENT_TIMEOUT);
+ } catch (InterruptedException e) {
+ interrupted = true;
+ }
+
+ if (!interrupted && fragmentQueue.size() == 0) {
+ throw wrapper.bufferReadManagerTimeout();
+ }
if (receivedCancel) {
throw new RequestCanceledException(cancelReqId);
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/io/ObjectStreamClass.java b/corba/src/share/classes/com/sun/corba/se/impl/io/ObjectStreamClass.java
index c9b79dfe526..b23049c08bc 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/io/ObjectStreamClass.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/io/ObjectStreamClass.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1998-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1998-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -153,22 +153,22 @@ public class ObjectStreamClass implements java.io.Serializable {
desc = new ObjectStreamClass(cl, superdesc,
serializable, externalizable);
}
+ // Must always call init. See bug 4488137. This code was
+ // incorrectly changed to return immediately on a non-null
+ // cache result. That allowed threads to gain access to
+ // unintialized instances.
+ //
+ // History: Note, the following init() call was originally within
+ // the synchronization block, as it currently is now. Later, the
+ // init() call was moved outside the synchronization block, and
+ // the init() method used a private member variable lock, to
+ // avoid performance problems. See bug 4165204. But that lead to
+ // a deadlock situation, see bug 5104239. Hence, the init() method
+ // has now been moved back into the synchronization block. The
+ // right approach to solving these problems would be to rewrite
+ // this class, based on the latest java.io.ObjectStreamClass.
+ desc.init();
}
-
- // Must always call init. See bug 4488137. This code was
- // incorrectly changed to return immediately on a non-null
- // cache result. That allowed threads to gain access to
- // unintialized instances.
- //
- // All threads must sync on the member variable lock
- // and check the initialization state.
- //
- // Another possibility is to continue to synchronize on the
- // descriptorFor array, but that leads to poor performance
- // (see bug 4165204 "ObjectStreamClass can hold global lock
- // for a very long time").
- desc.init();
-
return desc;
}
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAFactory.java b/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAFactory.java
index 5cde4bf0ec3..c0cb1d8c100 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAFactory.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -76,6 +76,7 @@ public class POAFactory implements ObjectAdapterFactory
private ORB orb ;
private POASystemException wrapper ;
private OMGSystemException omgWrapper ;
+ private boolean isShuttingDown = false;
public POASystemException getWrapper()
{
@@ -166,6 +167,7 @@ public class POAFactory implements ObjectAdapterFactory
// pm.deactivate removes itself from poaManagers!
Iterator managers = null ;
synchronized (this) {
+ isShuttingDown = true ;
managers = (new HashSet(poaManagers)).iterator();
}
@@ -208,9 +210,15 @@ public class POAFactory implements ObjectAdapterFactory
ClosureFactory.makeFuture( rpClosure ) ) ;
}
+
public synchronized POA getRootPOA()
{
if (rootPOA == null) {
+ // See if we are trying to getRootPOA while shutting down the ORB.
+ if (isShuttingDown) {
+ throw omgWrapper.noObjectAdaptor( ) ;
+ }
+
try {
Object obj = orb.resolve_initial_references(
ORBConstants.ROOT_POA_NAME ) ;
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java b/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java
index 52b5cbf38f3..45fa6dde373 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -185,7 +185,6 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
private java.lang.Object runObj = new java.lang.Object();
private java.lang.Object shutdownObj = new java.lang.Object();
- private java.lang.Object waitForCompletionObj = new java.lang.Object();
private static final byte STATUS_OPERATING = 1;
private static final byte STATUS_SHUTTING_DOWN = 2;
private static final byte STATUS_SHUTDOWN = 3;
@@ -194,7 +193,6 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
// XXX Should we move invocation tracking to the first level server dispatcher?
private java.lang.Object invocationObj = new java.lang.Object();
- private int numInvocations = 0;
// thread local variable to store a boolean to detect deadlock in
// ORB.shutdown(true).
@@ -1245,37 +1243,48 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
public void shutdown(boolean wait_for_completion)
{
- synchronized (this) {
- checkShutdownState();
+ // to wait for completion, we would deadlock, so throw a standard
+ // OMG exception.
+ if (wait_for_completion && ((Boolean)isProcessingInvocation.get()).booleanValue()) {
+ throw omgWrapper.shutdownWaitForCompletionDeadlock() ;
}
- // Avoid more than one thread performing shutdown at a time.
- synchronized (shutdownObj) {
- checkShutdownState();
- // This is to avoid deadlock
- if (wait_for_completion &&
- isProcessingInvocation.get() == Boolean.TRUE) {
- throw omgWrapper.shutdownWaitForCompletionDeadlock() ;
- }
+ boolean doShutdown = false ;
- status = STATUS_SHUTTING_DOWN;
- // XXX access to requestDispatcherRegistry should be protected
- // by the ORBImpl instance monitor, but is not here in the
- // shutdownServants call.
- shutdownServants(wait_for_completion);
- if (wait_for_completion) {
- synchronized ( waitForCompletionObj ) {
- while (numInvocations > 0) {
- try {
- waitForCompletionObj.wait();
- } catch (InterruptedException ex) {}
- }
+ synchronized (this) {
+ checkShutdownState() ;
+
+ if (status == STATUS_SHUTTING_DOWN) {
+ if (!wait_for_completion)
+ // If we are already shutting down and don't want
+ // to wait, nothing to do: return.
+ return ;
+ } else {
+ // The ORB status was STATUS_OPERATING, so start the shutdown.
+ status = STATUS_SHUTTING_DOWN ;
+ doShutdown = true ;
+ }
+ }
+
+ // At this point, status is SHUTTING_DOWN.
+ // All shutdown calls with wait_for_completion == true must synchronize
+ // here. Only the first call will be made with doShutdown == true.
+ synchronized (shutdownObj) {
+ if (doShutdown) {
+ // shutdownServants will set all POAManagers into the
+ // INACTIVE state, causing request to be rejected.
+ // If wait_for_completion is true, this will not return until
+ // all invocations have completed.
+ shutdownServants(wait_for_completion);
+
+ synchronized (runObj) {
+ runObj.notifyAll();
+ }
+
+ synchronized (this) {
+ status = STATUS_SHUTDOWN;
}
}
- synchronized ( runObj ) {
- runObj.notifyAll();
- }
- status = STATUS_SHUTDOWN;
}
}
@@ -1314,23 +1323,13 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
{
synchronized (invocationObj) {
isProcessingInvocation.set(Boolean.TRUE);
- numInvocations++;
}
}
public void finishedDispatch()
{
synchronized (invocationObj) {
- numInvocations--;
isProcessingInvocation.set(Boolean.FALSE);
- if (numInvocations == 0) {
- synchronized (waitForCompletionObj) {
- waitForCompletionObj.notifyAll();
- }
- } else if (numInvocations < 0) {
- throw wrapper.numInvocationsAlreadyZero(
- CompletionStatus.COMPLETED_YES ) ;
- }
}
}
@@ -1341,12 +1340,24 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
*/
public synchronized void destroy()
{
- if (status == STATUS_OPERATING) {
+ boolean shutdownFirst = false ;
+
+ synchronized (this) {
+ shutdownFirst = (status == STATUS_OPERATING) ;
+ }
+
+ if (shutdownFirst) {
shutdown(true);
}
- getCorbaTransportManager().close();
- getPIHandler().destroyInterceptors() ;
- status = STATUS_DESTROYED;
+
+ synchronized (this) {
+ if (status < STATUS_DESTROYED) {
+ getCorbaTransportManager().close();
+ getPIHandler().destroyInterceptors() ;
+ status = STATUS_DESTROYED;
+ }
+ }
+
}
/**
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBSingleton.java b/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBSingleton.java
index 4c43ee67e5b..ecd9539b8aa 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBSingleton.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBSingleton.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1997-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -135,7 +135,7 @@ import com.sun.corba.se.spi.legacy.connection.LegacyServerSocketEndPointInfo;
public class ORBSingleton extends ORB
{
// This is used to support read_Object.
- private static ORB fullORB;
+ private ORB fullORB;
private static PresentationManager.StubFactoryFactory staticStubFactoryFactory =
PresentationDefaults.getStaticStubFactoryFactory() ;
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/orbutil/ORBUtility.java b/corba/src/share/classes/com/sun/corba/se/impl/orbutil/ORBUtility.java
index ab5106d580b..dd5af6e8b3b 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/orbutil/ORBUtility.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/orbutil/ORBUtility.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2000-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -806,25 +806,6 @@ public final class ORBUtility {
return result ;
}
- public static void setDaemon(Thread thread)
- {
- // Catch exceptions since setDaemon can cause a
- // security exception to be thrown under netscape
- // in the Applet mode
- final Thread finalThread = thread;
- try {
- AccessController.doPrivileged(new PrivilegedAction() {
- public java.lang.Object run() {
- finalThread.setDaemon(true);
- return null;
- }
- });
- } catch (Exception e) {
- // REVISIT: Object to get static method. Ignore it.
- dprint(new Object(), "setDaemon: Exception: " + e);
- }
- }
-
public static String operationNameAndRequestId(CorbaMessageMediator m)
{
return "op/" + m.getOperationName() + " id/" + m.getRequestId();
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/resolver/INSURLOperationImpl.java b/corba/src/share/classes/com/sun/corba/se/impl/resolver/INSURLOperationImpl.java
index 9d07b453fc9..0bb9d94a1fd 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/resolver/INSURLOperationImpl.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/resolver/INSURLOperationImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1998-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1998-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -53,7 +53,8 @@ import com.sun.corba.se.spi.orb.ORB;
import com.sun.corba.se.spi.resolver.Resolver;
import com.sun.corba.se.impl.encoding.EncapsInputStream;
-import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
+import com.sun.corba.se.impl.logging.ORBUtilSystemException;
+import com.sun.corba.se.impl.logging.OMGSystemException;
import com.sun.corba.se.impl.naming.namingutil.INSURLHandler;
import com.sun.corba.se.impl.naming.namingutil.IIOPEndpointInfo;
import com.sun.corba.se.impl.naming.namingutil.INSURL;
@@ -76,6 +77,7 @@ public class INSURLOperationImpl implements Operation
{
ORB orb;
ORBUtilSystemException wrapper ;
+ OMGSystemException omgWrapper ;
Resolver bootstrapResolver ;
// Root Naming Context for default resolution of names.
@@ -90,6 +92,8 @@ public class INSURLOperationImpl implements Operation
this.orb = orb ;
wrapper = ORBUtilSystemException.get( orb,
CORBALogDomains.ORB_RESOLVER ) ;
+ omgWrapper = OMGSystemException.get( orb,
+ CORBALogDomains.ORB_RESOLVER ) ;
this.bootstrapResolver = bootstrapResolver ;
}
@@ -126,6 +130,8 @@ public class INSURLOperationImpl implements Operation
return getIORFromString( str ) ;
else {
INSURL insURL = insURLHandler.parseURL( str ) ;
+ if (insURL == null)
+ throw omgWrapper.soBadSchemeName() ;
return resolveINSURL( insURL ) ;
}
}
diff --git a/corba/src/share/classes/com/sun/corba/se/impl/transport/SocketOrChannelConnectionImpl.java b/corba/src/share/classes/com/sun/corba/se/impl/transport/SocketOrChannelConnectionImpl.java
index e160eec73c4..5dbfedb9fea 100644
--- a/corba/src/share/classes/com/sun/corba/se/impl/transport/SocketOrChannelConnectionImpl.java
+++ b/corba/src/share/classes/com/sun/corba/se/impl/transport/SocketOrChannelConnectionImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2001-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1057,7 +1057,9 @@ public class SocketOrChannelConnectionImpl
// IIOPOutputStream will cleanup the connection info when it
// sees this exception.
- throw wrapper.writeErrorSend(e1) ;
+ SystemException exc = wrapper.writeErrorSend(e1);
+ purgeCalls(exc, false, true);
+ throw exc;
}
}
diff --git a/corba/src/share/classes/com/sun/corba/se/spi/logging/data/ORBUtil.mc b/corba/src/share/classes/com/sun/corba/se/spi/logging/data/ORBUtil.mc
index 40cdb885a26..7c46f35a117 100644
--- a/corba/src/share/classes/com/sun/corba/se/spi/logging/data/ORBUtil.mc
+++ b/corba/src/share/classes/com/sun/corba/se/spi/logging/data/ORBUtil.mc
@@ -1,6 +1,6 @@
;
-; Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
+; Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
; DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
;
; This code is free software; you can redistribute it and/or modify it
@@ -144,6 +144,8 @@
15 WARNING "Read of full message failed : bytes requested = {0} bytes read = {1} max wait time = {2} total time spent waiting = {3}")
(CREATE_LISTENER_FAILED
16 SEVERE "Unable to create listener thread on the specified port: {0}")
+ (BUFFER_READ_MANAGER_TIMEOUT
+ 17 WARNING "Timeout while reading data in buffer manager")
)
(DATA_CONVERSION
(BAD_STRINGIFIED_IOR_LEN 1 WARNING "A character did not map to the transmission code set")
diff --git a/corba/src/share/classes/com/sun/tools/corba/se/idl/Parser.java b/corba/src/share/classes/com/sun/tools/corba/se/idl/Parser.java
index 20432edf142..17221825f62 100644
--- a/corba/src/share/classes/com/sun/tools/corba/se/idl/Parser.java
+++ b/corba/src/share/classes/com/sun/tools/corba/se/idl/Parser.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1999-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -2086,8 +2086,8 @@ class Parser
if (token.type == Token.LeftBrace) {
repIDStack.push(((IDLID)repIDStack.peek ()).clone ()) ;
- ((IDLID)repIDStack.peek ()).appendToName (name);
structEntry = makeStructEntry( name, entry, false ) ;
+ ((IDLID)repIDStack.peek ()).appendToName (name);
prep.openScope (structEntry);
match (Token.LeftBrace) ;
member (structEntry) ;
@@ -2174,8 +2174,8 @@ class Parser
if (token.type == Token.Switch) {
repIDStack.push (((IDLID)repIDStack.peek ()).clone ());
- ((IDLID)repIDStack.peek ()).appendToName (name);
unionEntry = makeUnionEntry( name, entry, false ) ;
+ ((IDLID)repIDStack.peek ()).appendToName (name);
match (Token.Switch);
match (Token.LeftParen);
unionEntry.type (switchTypeSpec (unionEntry));
@@ -2641,8 +2641,8 @@ class Parser
private void exceptDcl (SymtabEntry entry) throws IOException, ParseException
{
match (Token.Exception);
- ExceptionEntry exceptEntry = stFactory.exceptionEntry (entry, (IDLID)repIDStack.peek ());
repIDStack.push (((IDLID)repIDStack.peek ()).clone ());
+ ExceptionEntry exceptEntry = stFactory.exceptionEntry (entry, (IDLID)repIDStack.peek ());
((IDLID)repIDStack.peek ()).appendToName (token.name);
exceptEntry.sourceFile (scanner.fileEntry ());
// Comment must immediately precede "exception" keyword
diff --git a/corba/src/share/classes/com/sun/tools/corba/se/logutil/InputException.java b/corba/src/share/classes/com/sun/tools/corba/se/logutil/InputException.java
index 5c1f4984e57..597d3185a6b 100644
--- a/corba/src/share/classes/com/sun/tools/corba/se/logutil/InputException.java
+++ b/corba/src/share/classes/com/sun/tools/corba/se/logutil/InputException.java
@@ -91,4 +91,3 @@ public class InputException {
}
}
-
diff --git a/corba/src/share/classes/org/omg/CORBA/ORB.java b/corba/src/share/classes/org/omg/CORBA/ORB.java
index cecdefeb3e5..dde09300f2f 100644
--- a/corba/src/share/classes/org/omg/CORBA/ORB.java
+++ b/corba/src/share/classes/org/omg/CORBA/ORB.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2005 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -289,7 +289,7 @@ abstract public class ORB {
*
* @return the singleton ORB
*/
- public static ORB init() {
+ public static synchronized ORB init() {
if (singleton == null) {
String className = getSystemProperty(ORBSingletonClassKey);
if (className == null)
From cab29c9b7a89da716082c83f0ef6e1b33b32953b Mon Sep 17 00:00:00 2001
From: Alan Bateman
Date: Mon, 20 Apr 2009 09:30:50 +0100
Subject: [PATCH 55/91] 6830721: (fc)
test/java/nio/channels/AsynchronousFileChannel/Basic.java intermittent
failure
Reviewed-by: sherman
---
.../nio/channels/AsynchronousFileChannel/Basic.java | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java b/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java
index ea9a5415923..1f37d4be11c 100644
--- a/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java
+++ b/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java
@@ -22,7 +22,7 @@
*/
/* @test
- * @bug 4607272 6822643
+ * @bug 4607272 6822643 6830721
* @summary Unit test for AsynchronousFileChannel
*/
@@ -431,10 +431,11 @@ public class Basic {
throw new RuntimeException("isCancelled not consistent");
try {
res.get();
- if (!cancelled)
+ if (cancelled)
throw new RuntimeException("CancellationException expected");
} catch (CancellationException x) {
- // expected
+ if (!cancelled)
+ throw new RuntimeException("CancellationException not expected");
} catch (ExecutionException x) {
throw new RuntimeException(x);
} catch (InterruptedException x) {
@@ -442,9 +443,11 @@ public class Basic {
}
try {
res.get(1, TimeUnit.SECONDS);
- throw new RuntimeException("CancellationException expected");
+ if (cancelled)
+ throw new RuntimeException("CancellationException expected");
} catch (CancellationException x) {
- // expected
+ if (!cancelled)
+ throw new RuntimeException("CancellationException not expected");
} catch (ExecutionException x) {
throw new RuntimeException(x);
} catch (TimeoutException x) {
From d4a0d0c66da77942c8bdbb25e1f1eebf36e026c3 Mon Sep 17 00:00:00 2001
From: Alan Bateman
Date: Mon, 20 Apr 2009 13:27:23 +0100
Subject: [PATCH 56/91] 6831461: (sample) Copy -r fails with
IllegalArgumentexception: 'maxDepth' is negative
Reviewed-by: chegar
---
jdk/src/share/sample/nio/file/Copy.java | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/jdk/src/share/sample/nio/file/Copy.java b/jdk/src/share/sample/nio/file/Copy.java
index e1d5d044ef5..bcd3af0c682 100644
--- a/jdk/src/share/sample/nio/file/Copy.java
+++ b/jdk/src/share/sample/nio/file/Copy.java
@@ -52,7 +52,7 @@ public class Copy {
/**
* Copy source file to target location. If {@code prompt} is true then
- * prompted user to overwrite target if it exists. The {@code preserve}
+ * prompt user to overwrite target if it exists. The {@code preserve}
* parameter determines if file attributes should be copied/preserved.
*/
static void copyFile(Path source, Path target, boolean prompt, boolean preserve) {
@@ -63,7 +63,7 @@ public class Copy {
try {
source.copyTo(target, options);
} catch (IOException x) {
- System.err.format("Unable to create: %s: %s%n", target, x);
+ System.err.format("Unable to copy: %s: %s%n", source, x);
}
}
}
@@ -124,13 +124,13 @@ public class Copy {
public FileVisitResult postVisitDirectory(Path dir, IOException exc) {
// fix up modification time of directory when done
if (exc == null && preserve) {
+ Path newdir = target.resolve(source.relativize(dir));
try {
BasicFileAttributes attrs = Attributes.readBasicFileAttributes(dir);
- Path newdir = target.resolve(source.relativize(dir));
Attributes.setLastModifiedTime(newdir,
attrs.lastModifiedTime(), attrs.resolution());
} catch (IOException x) {
- // ignore
+ System.err.format("Unable to copy all attributes to: %s: %s%n", newdir, x);
}
}
return CONTINUE;
@@ -191,6 +191,7 @@ public class Copy {
try {
isDir = Attributes.readBasicFileAttributes(target).isDirectory();
} catch (IOException x) {
+ // ignore (probably target does not exist)
}
// copy each source file/directory to target
@@ -201,7 +202,7 @@ public class Copy {
// follow links when copying files
EnumSet opts = EnumSet.of(FileVisitOption.FOLLOW_LINKS);
TreeCopier tc = new TreeCopier(source[i], dest, prompt, preserve);
- Files.walkFileTree(source[i], opts, -1, tc);
+ Files.walkFileTree(source[i], opts, Integer.MAX_VALUE, tc);
} else {
// not recursive so source must not be a directory
try {
@@ -209,7 +210,9 @@ public class Copy {
System.err.format("%s: is a directory%n", source[i]);
continue;
}
- } catch (IOException x) { }
+ } catch (IOException x) {
+ // assume not directory
+ }
copyFile(source[i], dest, prompt, preserve);
}
}
From 75d9b0f9860ecbcf472276cfe31fa3c1648ea191 Mon Sep 17 00:00:00 2001
From: Dmitry Cherepanov
Date: Mon, 20 Apr 2009 14:41:24 -0400
Subject: [PATCH 57/91] 6633354: AppletPanel loads Swing classes
Reviewed-by: art, anthony
---
jdk/src/share/classes/sun/applet/AppletPanel.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/jdk/src/share/classes/sun/applet/AppletPanel.java b/jdk/src/share/classes/sun/applet/AppletPanel.java
index 99b85a7bfc2..911324e150a 100644
--- a/jdk/src/share/classes/sun/applet/AppletPanel.java
+++ b/jdk/src/share/classes/sun/applet/AppletPanel.java
@@ -45,7 +45,6 @@ import java.util.*;
import java.util.Collections;
import java.util.Locale;
import java.util.WeakHashMap;
-import javax.swing.SwingUtilities;
import sun.awt.AppContext;
import sun.awt.EmbeddedFrame;
import sun.awt.SunToolkit;
@@ -450,7 +449,7 @@ abstract class AppletPanel extends Panel implements AppletStub, Runnable {
try {
final AppletPanel p = this;
- SwingUtilities.invokeAndWait(new Runnable() {
+ EventQueue.invokeAndWait(new Runnable() {
public void run() {
p.validate();
}
@@ -480,7 +479,7 @@ abstract class AppletPanel extends Panel implements AppletStub, Runnable {
final AppletPanel p = this;
final Applet a = applet;
- SwingUtilities.invokeAndWait(new Runnable() {
+ EventQueue.invokeAndWait(new Runnable() {
public void run() {
p.validate();
a.setVisible(true);
@@ -514,7 +513,7 @@ abstract class AppletPanel extends Panel implements AppletStub, Runnable {
try {
final Applet a = applet;
- SwingUtilities.invokeAndWait(new Runnable() {
+ EventQueue.invokeAndWait(new Runnable() {
public void run()
{
a.setVisible(false);
From 76fedc71adf907c993c6ca1e920f9259f224fa1c Mon Sep 17 00:00:00 2001
From: Dmitry Cherepanov
Date: Mon, 20 Apr 2009 17:05:34 +0400
Subject: [PATCH 58/91] 6770457: Using ToolTips causes inactive app window to
exhibit active window behavior
Reviewed-by: art, ant
---
.../native/sun/windows/awt_Component.cpp | 7 +++-
.../windows/native/sun/windows/awt_Window.cpp | 35 ++++++-------------
.../windows/native/sun/windows/awt_Window.h | 1 -
3 files changed, 16 insertions(+), 27 deletions(-)
diff --git a/jdk/src/windows/native/sun/windows/awt_Component.cpp b/jdk/src/windows/native/sun/windows/awt_Component.cpp
index 9db8ec4b873..fb7ae4c40e2 100644
--- a/jdk/src/windows/native/sun/windows/awt_Component.cpp
+++ b/jdk/src/windows/native/sun/windows/awt_Component.cpp
@@ -1843,8 +1843,13 @@ LRESULT AwtComponent::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
case WM_AWT_SETALWAYSONTOP: {
AwtWindow* w = (AwtWindow*)lParam;
BOOL value = (BOOL)wParam;
+ UINT flags = SWP_NOMOVE | SWP_NOSIZE;
+ // transient windows shouldn't change the owner window's position in the z-order
+ if (w->IsRetainingHierarchyZOrder()) {
+ flags |= SWP_NOOWNERZORDER;
+ }
::SetWindowPos(w->GetHWnd(), (value != 0 ? HWND_TOPMOST : HWND_NOTOPMOST),
- 0,0,0,0, SWP_NOMOVE|SWP_NOSIZE);
+ 0,0,0,0, flags);
break;
}
diff --git a/jdk/src/windows/native/sun/windows/awt_Window.cpp b/jdk/src/windows/native/sun/windows/awt_Window.cpp
index ad0400bc08b..3b0b1d3c260 100644
--- a/jdk/src/windows/native/sun/windows/awt_Window.cpp
+++ b/jdk/src/windows/native/sun/windows/awt_Window.cpp
@@ -165,7 +165,6 @@ jmethodID AwtWindow::calculateSecurityWarningPositionMID;
int AwtWindow::ms_instanceCounter = 0;
HHOOK AwtWindow::ms_hCBTFilter;
AwtWindow * AwtWindow::m_grabbedWindow = NULL;
-HWND AwtWindow::sm_retainingHierarchyZOrderInShow = NULL;
BOOL AwtWindow::sm_resizing = FALSE;
UINT AwtWindow::untrustedWindowsCounter = 0;
@@ -341,23 +340,6 @@ MsgRouting AwtWindow::WmNcMouseDown(WPARAM hitTest, int x, int y, int button) {
}
MsgRouting AwtWindow::WmWindowPosChanging(LPARAM windowPos) {
- /*
- * See 6178004.
- * Some windows shouldn't trigger a change in z-order of
- * any window from the hierarchy.
- */
- if (IsRetainingHierarchyZOrder()) {
- if (((WINDOWPOS *)windowPos)->flags & SWP_SHOWWINDOW) {
- sm_retainingHierarchyZOrderInShow = GetHWnd();
- }
- } else if (sm_retainingHierarchyZOrderInShow != NULL) {
- HWND ancestor = ::GetAncestor(sm_retainingHierarchyZOrderInShow, GA_ROOTOWNER);
- HWND windowAncestor = ::GetAncestor(GetHWnd(), GA_ROOTOWNER);
-
- if (windowAncestor == ancestor) {
- ((WINDOWPOS *)windowPos)->flags |= SWP_NOZORDER;
- }
- }
return mrDoDefault;
}
@@ -377,12 +359,6 @@ void AwtWindow::RepositionSecurityWarning(JNIEnv *env)
MsgRouting AwtWindow::WmWindowPosChanged(LPARAM windowPos) {
WINDOWPOS * wp = (WINDOWPOS *)windowPos;
- if (IsRetainingHierarchyZOrder() && wp->flags & SWP_SHOWWINDOW) {
- // By this time all the windows from the hierarchy are already notified about z-order change.
- // Thus we may and we should reset the trigger in order not to affect other changes.
- sm_retainingHierarchyZOrderInShow = NULL;
- }
-
// Reposition the warning window
if (IsUntrusted() && warningWindow != NULL) {
if (wp->flags & SWP_HIDEWINDOW) {
@@ -1251,7 +1227,16 @@ void AwtWindow::Show()
}
}
if (!done) {
- ::ShowWindow(GetHWnd(), nCmdShow);
+ // transient windows shouldn't change the owner window's position in the z-order
+ if (IsRetainingHierarchyZOrder()){
+ UINT flags = SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW | SWP_NOOWNERZORDER;
+ if (nCmdShow == SW_SHOWNA) {
+ flags |= SWP_NOACTIVATE;
+ }
+ ::SetWindowPos(GetHWnd(), HWND_TOPMOST, 0, 0, 0, 0, flags);
+ } else {
+ ::ShowWindow(GetHWnd(), nCmdShow);
+ }
}
env->DeleteLocalRef(target);
}
diff --git a/jdk/src/windows/native/sun/windows/awt_Window.h b/jdk/src/windows/native/sun/windows/awt_Window.h
index bf43150a7e8..05282f72320 100644
--- a/jdk/src/windows/native/sun/windows/awt_Window.h
+++ b/jdk/src/windows/native/sun/windows/awt_Window.h
@@ -248,7 +248,6 @@ private:
static int ms_instanceCounter;
static HHOOK ms_hCBTFilter;
static LRESULT CALLBACK CBTFilter(int nCode, WPARAM wParam, LPARAM lParam);
- static HWND sm_retainingHierarchyZOrderInShow; // a referred window in the process of show
static BOOL sm_resizing; /* in the middle of a resizing operation */
RECT m_insets; /* a cache of the insets being used */
From fbea8d87f48d20ed662c28f36b8ab7ad0cb7d5a5 Mon Sep 17 00:00:00 2001
From: Dmitry Cherepanov
Date: Mon, 20 Apr 2009 19:18:41 +0400
Subject: [PATCH 59/91] 6825362: Avoid calling peer.setZOrder on Window
instances
Reviewed-by: anthony
---
jdk/src/share/classes/java/awt/Component.java | 9 +++-
jdk/src/share/classes/java/awt/Container.java | 2 +-
jdk/src/share/classes/java/awt/Window.java | 4 ++
.../classes/sun/awt/windows/WPanelPeer.java | 41 -------------------
4 files changed, 13 insertions(+), 43 deletions(-)
diff --git a/jdk/src/share/classes/java/awt/Component.java b/jdk/src/share/classes/java/awt/Component.java
index 03743332fc1..84d7a81ae98 100644
--- a/jdk/src/share/classes/java/awt/Component.java
+++ b/jdk/src/share/classes/java/awt/Component.java
@@ -6666,7 +6666,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
// Update stacking order
- peer.setZOrder(getHWPeerAboveMe());
+ updateZOrder();
if (!isAddNotifyComplete) {
mixOnShowing();
@@ -9838,4 +9838,11 @@ public abstract class Component implements ImageObserver, MenuContainer,
return doesClassImplement(obj.getClass(), interfaceName);
}
+
+ // Note that the method is overriden in the Window class,
+ // a window doesn't need to be updated in the Z-order.
+ void updateZOrder() {
+ peer.setZOrder(getHWPeerAboveMe());
+ }
+
}
diff --git a/jdk/src/share/classes/java/awt/Container.java b/jdk/src/share/classes/java/awt/Container.java
index ec77fb9bc87..305a4fe267e 100644
--- a/jdk/src/share/classes/java/awt/Container.java
+++ b/jdk/src/share/classes/java/awt/Container.java
@@ -840,7 +840,7 @@ public class Container extends Component {
// Native container changed - need to reparent native widgets
newNativeContainer.reparentChild(comp);
}
- comp.peer.setZOrder(comp.getHWPeerAboveMe());
+ comp.updateZOrder();
if (!comp.isLightweight() && isLightweight()) {
// If component is heavyweight and one of the containers is lightweight
diff --git a/jdk/src/share/classes/java/awt/Window.java b/jdk/src/share/classes/java/awt/Window.java
index 01d9ff59d00..a95edb901d1 100644
--- a/jdk/src/share/classes/java/awt/Window.java
+++ b/jdk/src/share/classes/java/awt/Window.java
@@ -3674,6 +3674,10 @@ public class Window extends Container implements Accessible {
}); // WindowAccessor
} // static
+ // a window doesn't need to be updated in the Z-order.
+ @Override
+ void updateZOrder() {}
+
} // class Window
diff --git a/jdk/src/windows/classes/sun/awt/windows/WPanelPeer.java b/jdk/src/windows/classes/sun/awt/windows/WPanelPeer.java
index 10ca423146c..3b4af6dd1f6 100644
--- a/jdk/src/windows/classes/sun/awt/windows/WPanelPeer.java
+++ b/jdk/src/windows/classes/sun/awt/windows/WPanelPeer.java
@@ -99,45 +99,4 @@ class WPanelPeer extends WCanvasPeer implements PanelPeer {
public Insets insets() {
return getInsets();
}
-
- private native void pRestack(Object[] peers);
- private void restack(Container cont, Vector peers) {
- for (int i = 0; i < cont.getComponentCount(); i++) {
- Component comp = cont.getComponent(i);
- if (!comp.isLightweight()) {
- ComponentPeer peer = comp.getPeer();
- if (peer != null && (peer instanceof WComponentPeer))
- {
- peers.add(peer);
- } else {
- if (log.isLoggable(Level.FINE)) {
- log.log(Level.FINE,
- "peer of a {0} is null or not a WComponentPeer: {1}.",
- new Object[]{comp, peer});
- }
- }
- }
- if (comp.isLightweight() && comp instanceof Container) {
- restack((Container)comp, peers);
- }
- }
- }
-
- /**
- * @see java.awt.peer.ContainerPeer#restack
- */
- public void restack() {
- Vector peers = new Vector();
- peers.add(this);
- Container cont = (Container)target;
- restack(cont, peers);
- pRestack(peers.toArray());
- }
-
- /**
- * @see java.awt.peer.ContainerPeer#isRestackSupported
- */
- public boolean isRestackSupported() {
- return true;
- }
}
From 71315ac3a3258881e14aa07d0028a483fd3900d5 Mon Sep 17 00:00:00 2001
From: Tim Bell
Date: Mon, 20 Apr 2009 15:14:39 -0700
Subject: [PATCH 60/91] 6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes
from OpenJDK 6 6672868: Package javax.xml.ws.wsaddressing not included in
make/docs/CORE_PKGS.gmk
Reviewed-by: darcy
---
jaxws/THIRD_PARTY_README | 32 +-
jaxws/TRADEMARK | 41 +
jaxws/make/Makefile | 2 +-
jaxws/make/build.xml | 9 +
jaxws/make/jprt.properties | 18 +-
.../activation/registries/MailcapFile.java | 13 +-
.../com/sun/codemodel/internal/ClassType.java | 3 +-
.../sun/codemodel/internal/CodeWriter.java | 3 +-
.../sun/codemodel/internal/JAnnotatable.java | 3 +-
.../internal/JAnnotationArrayMember.java | 3 +-
.../internal/JAnnotationStringValue.java | 3 +-
.../codemodel/internal/JAnnotationUse.java | 3 +-
.../codemodel/internal/JAnnotationValue.java | 3 +-
.../codemodel/internal/JAnnotationWriter.java | 3 +-
.../codemodel/internal/JAnonymousClass.java | 3 +-
.../com/sun/codemodel/internal/JArray.java | 2 +-
.../sun/codemodel/internal/JArrayClass.java | 3 +-
.../sun/codemodel/internal/JArrayCompRef.java | 2 +-
.../sun/codemodel/internal/JAssignment.java | 2 +-
.../codemodel/internal/JAssignmentTarget.java | 2 +-
.../com/sun/codemodel/internal/JAtom.java | 2 +-
.../com/sun/codemodel/internal/JBlock.java | 14 +-
.../com/sun/codemodel/internal/JBreak.java | 2 +-
.../com/sun/codemodel/internal/JCase.java | 3 +-
.../com/sun/codemodel/internal/JCast.java | 2 +-
.../sun/codemodel/internal/JCatchBlock.java | 2 +-
.../com/sun/codemodel/internal/JClass.java | 4 +-
.../JClassAlreadyExistsException.java | 3 +-
.../codemodel/internal/JClassContainer.java | 5 +-
.../sun/codemodel/internal/JCodeModel.java | 20 +-
.../sun/codemodel/internal/JCommentPart.java | 3 +-
.../sun/codemodel/internal/JConditional.java | 9 +-
.../com/sun/codemodel/internal/JContinue.java | 2 +-
.../sun/codemodel/internal/JDeclaration.java | 2 +-
.../sun/codemodel/internal/JDefinedClass.java | 27 +-
.../sun/codemodel/internal/JDirectClass.java | 3 +-
.../com/sun/codemodel/internal/JDoLoop.java | 2 +-
.../sun/codemodel/internal/JDocComment.java | 3 +-
.../sun/codemodel/internal/JEnumConstant.java | 3 +-
.../com/sun/codemodel/internal/JExpr.java | 6 +-
.../sun/codemodel/internal/JExpression.java | 2 +-
.../codemodel/internal/JExpressionImpl.java | 3 +-
.../com/sun/codemodel/internal/JFieldRef.java | 2 +-
.../com/sun/codemodel/internal/JFieldVar.java | 2 +-
.../com/sun/codemodel/internal/JForEach.java | 53 +-
.../com/sun/codemodel/internal/JForLoop.java | 2 +-
.../sun/codemodel/internal/JFormatter.java | 2 +-
.../sun/codemodel/internal/JGenerable.java | 2 +-
.../sun/codemodel/internal/JGenerifiable.java | 3 +-
.../codemodel/internal/JGenerifiableImpl.java | 3 +-
.../sun/codemodel/internal/JInvocation.java | 38 +-
.../com/sun/codemodel/internal/JJavaName.java | 9 +-
.../com/sun/codemodel/internal/JLabel.java | 3 +-
.../com/sun/codemodel/internal/JMethod.java | 514 ++--
.../com/sun/codemodel/internal/JMod.java | 2 +-
.../com/sun/codemodel/internal/JMods.java | 16 +-
.../codemodel/internal/JNarrowedClass.java | 3 +-
.../com/sun/codemodel/internal/JNullType.java | 3 +-
.../com/sun/codemodel/internal/JOp.java | 2 +-
.../com/sun/codemodel/internal/JPackage.java | 2 +-
.../codemodel/internal/JPrimitiveType.java | 2 +-
.../sun/codemodel/internal/JResourceFile.java | 2 +-
.../com/sun/codemodel/internal/JReturn.java | 2 +-
.../sun/codemodel/internal/JStatement.java | 2 +-
.../codemodel/internal/JStringLiteral.java | 3 +-
.../com/sun/codemodel/internal/JSwitch.java | 3 +-
.../com/sun/codemodel/internal/JThrow.java | 2 +-
.../com/sun/codemodel/internal/JTryBlock.java | 2 +-
.../com/sun/codemodel/internal/JType.java | 2 +-
.../com/sun/codemodel/internal/JTypeVar.java | 3 +-
.../sun/codemodel/internal/JTypeWildcard.java | 3 +-
.../com/sun/codemodel/internal/JVar.java | 2 +-
.../sun/codemodel/internal/JWhileLoop.java | 2 +-
.../internal/TypedAnnotationWriter.java | 3 +-
.../codemodel/internal/fmt/JBinaryFile.java | 3 +-
.../codemodel/internal/fmt/JPropertyFile.java | 3 +-
.../internal/fmt/JSerializedObject.java | 2 +-
.../codemodel/internal/fmt/JStaticFile.java | 3 +-
.../internal/fmt/JStaticJavaFile.java | 3 +-
.../sun/codemodel/internal/fmt/JTextFile.java | 3 +-
.../sun/codemodel/internal/fmt/package.html | 24 +
.../sun/codemodel/internal/package-info.java | 3 +-
.../internal/util/ClassNameComparator.java | 3 +-
.../internal/util/EncoderFactory.java | 6 +-
.../internal/util/JavadocEscapeWriter.java | 3 +-
.../internal/util/MS1252Encoder.java | 6 +-
.../internal/util/SingleByteEncoder.java | 168 +-
.../codemodel/internal/util/Surrogate.java | 5 +-
.../internal/util/UnicodeEscapeWriter.java | 3 +-
.../internal/writer/FileCodeWriter.java | 3 +-
.../internal/writer/FilterCodeWriter.java | 3 +-
.../internal/writer/ProgressCodeWriter.java | 3 +-
.../internal/writer/PrologCodeWriter.java | 3 +-
.../writer/SingleStreamCodeWriter.java | 3 +-
.../internal/writer/ZipCodeWriter.java | 3 +-
.../istack/internal/ByteArrayDataSource.java | 3 +-
.../sun/istack/internal/FinalArrayList.java | 3 +-
.../internal/FragmentContentHandler.java | 3 +-
.../com/sun/istack/internal/Interned.java | 3 +-
.../com/sun/istack/internal/NotNull.java | 3 +-
.../com/sun/istack/internal/Nullable.java | 3 +-
.../classes/com/sun/istack/internal/Pool.java | 3 +-
.../sun/istack/internal/SAXException2.java | 3 +-
.../istack/internal/SAXParseException2.java | 3 +-
.../istack/internal/XMLStreamException2.java | 62 +
.../XMLStreamReaderToContentHandler.java | 50 +-
.../com/sun/istack/internal/package-info.java | 3 +-
.../istack/internal/tools/APTTypeVisitor.java | 3 +-
.../internal/tools/MaskingClassLoader.java} | 55 +-
.../tools/ParallelWorldClassLoader.java | 139 +
.../istack/internal/tools/package-info.java | 3 +-
.../ws/AnnotationProcessorFactoryImpl.java | 4 +-
.../sun/istack/internal/ws/package-info.java | 4 +-
.../com.sun.tools.internal.xjc.Plugin | 4 +
.../sun/tools/internal/jxc/ConfigReader.java | 3 +-
.../internal/jxc/MessageBundle.properties | 38 +-
.../com/sun/tools/internal/jxc/Messages.java | 3 +-
.../sun/tools/internal/jxc/NGCCRuntimeEx.java | 3 +-
.../tools/internal/jxc/SchemaGenerator.java | 15 +-
.../internal/jxc/apt/AnnotationParser.java | 5 +-
.../apt/AnnotationProcessorFactoryImpl.java | 3 +-
.../com/sun/tools/internal/jxc/apt/Const.java | 3 +-
.../internal/jxc/apt/ErrorReceiverImpl.java | 3 +-
.../jxc/apt/InlineAnnotationReaderImpl.java | 38 +-
.../internal/jxc/apt/MessageBundle.properties | 32 +-
.../sun/tools/internal/jxc/apt/Messages.java | 6 +-
.../sun/tools/internal/jxc/apt/Options.java | 17 +-
.../internal/jxc/apt/SchemaGenerator.java | 17 +-
.../sun/tools/internal/jxc/apt/package.html | 24 +
.../jxc/gen/config/AttributesImpl.java | 4 +-
.../internal/jxc/gen/config/Classes.java | 97 +-
.../tools/internal/jxc/gen/config/Config.java | 15 +-
.../jxc/gen/config/NGCCEventReceiver.java | 3 +-
.../jxc/gen/config/NGCCEventSource.java | 3 +-
.../internal/jxc/gen/config/NGCCHandler.java | 4 +-
.../jxc/gen/config/NGCCInterleaveFilter.java | 3 +-
.../internal/jxc/gen/config/NGCCRuntime.java | 4 +-
.../tools/internal/jxc/gen/config/Schema.java | 139 +-
.../tools/internal/jxc/gen/config/config.rng | 24 +
.../tools/internal/jxc/gen/config/config.xsd | 4 +-
.../internal/jxc/model/nav/APTNavigator.java | 24 +-
.../com/sun/tools/internal/txw2/Main.java | 222 --
.../com/sun/tools/internal/txw2/NameUtil.java | 348 ---
.../tools/internal/txw2/RELAXNGLoader.java | 57 -
.../com/sun/tools/internal/txw2/TxwTask.java | 163 --
.../relaxng/DataPatternBuilderImpl.java | 60 -
.../txw2/builder/relaxng/DatatypeFactory.java | 72 -
.../txw2/builder/relaxng/GrammarImpl.java | 57 -
.../builder/relaxng/GrammarSectionImpl.java | 80 -
.../builder/relaxng/SchemaBuilderImpl.java | 213 --
.../txw2/builder/relaxng/package.html | 3 -
.../txw2/builder/xsd/XmlSchemaBuilder.java | 282 --
.../internal/txw2/builder/xsd/package.html | 3 -
.../tools/internal/txw2/model/Attribute.java | 93 -
.../sun/tools/internal/txw2/model/Define.java | 99 -
.../tools/internal/txw2/model/Element.java | 201 --
.../sun/tools/internal/txw2/model/Leaf.java | 125 -
.../tools/internal/txw2/model/NodeSet.java | 163 --
.../com/sun/tools/internal/ws/Invoker.java | 191 +-
.../sun/tools/internal/ws/ToolVersion.java | 2 +-
.../com/sun/tools/internal/ws/WsGen.java | 35 +-
.../com/sun/tools/internal/ws/WsImport.java | 35 +-
.../ws/api/TJavaGeneratorExtension.java | 46 +
.../internal/ws/api/wsdl/TWSDLExtensible.java | 78 +
.../internal/ws/api/wsdl/TWSDLExtension.java} | 19 +-
.../ws/api/wsdl/TWSDLExtensionHandler.java | 215 ++
.../internal/ws/api/wsdl/TWSDLOperation.java} | 28 +-
.../ws/api/wsdl/TWSDLParserContext.java | 81 +
.../sun/tools/internal/ws/package-info.java | 31 +-
.../internal/ws/processor/Processor.java | 118 -
.../ws/processor/ProcessorActionVersion.java | 44 -
.../ws/processor/ProcessorConstants.java | 36 -
.../ws/processor/ProcessorException.java | 9 +-
.../ws/processor/ProcessorOptions.java | 57 -
.../ws/processor/config/ClassModelInfo.java | 61 -
.../ws/processor/config/ModelInfo.java | 118 -
.../ws/processor/config/WSDLModelInfo.java | 92 -
.../config/parser/CustomizationParser.java | 144 -
.../processor/config/parser/InputParser.java | 122 -
.../config/parser/JAXWSBindingInfoParser.java | 100 -
.../processor/config/parser/ParserUtil.java | 50 -
.../ws/processor/config/parser/Reader.java | 110 -
.../generator/CustomExceptionGenerator.java | 68 +-
.../ws/processor/generator/GeneratorBase.java | 481 +---
.../generator/GeneratorConstants.java | 46 +-
.../generator/GeneratorException.java | 5 +-
.../ws/processor/generator/GeneratorUtil.java | 128 +-
.../generator/JAXBTypeGenerator.java | 174 --
.../JavaGeneratorExtensionFacade.java} | 30 +-
.../ws/processor/generator/Names.java | 297 +-
.../ws/processor/generator/SeiGenerator.java | 175 +-
.../processor/generator/ServiceGenerator.java | 174 +-
.../generator/SimpleToBoxedUtil.java | 113 -
.../W3CAddressingJavaGeneratorExtension.java | 97 +
.../ws/processor/model/AbstractType.java | 13 +-
.../ws/processor/model/AsyncOperation.java | 26 +-
.../processor/model/AsyncOperationType.java | 4 +-
.../internal/ws/processor/model/Block.java | 30 +-
.../processor/model/ExtendedModelVisitor.java | 2 +-
.../internal/ws/processor/model/Fault.java | 57 +-
.../ws/processor/model/HeaderFault.java | 12 +-
.../internal/ws/processor/model/Message.java | 37 +-
.../internal/ws/processor/model/Model.java | 49 +-
.../ws/processor/model/ModelException.java | 4 +-
.../ws/processor/model/ModelObject.java | 32 +-
.../ws/processor/model/ModelProperties.java | 2 +-
.../ws/processor/model/ModelVisitor.java | 2 +-
.../ws/processor/model/Operation.java | 25 +-
.../ws/processor/model/Parameter.java | 29 +-
.../internal/ws/processor/model/Port.java | 78 +-
.../internal/ws/processor/model/Request.java | 9 +-
.../internal/ws/processor/model/Response.java | 9 +-
.../internal/ws/processor/model/Service.java | 17 +-
.../model/exporter/ExternalObject.java | 2 +-
.../processor/model/java/JavaArrayType.java | 2 +-
.../processor/model/java/JavaException.java | 2 +-
.../processor/model/java/JavaInterface.java | 9 +-
.../ws/processor/model/java/JavaMethod.java | 128 +-
.../processor/model/java/JavaParameter.java | 2 +-
.../processor/model/java/JavaSimpleType.java | 4 +-
.../model/java/JavaStructureMember.java | 2 +-
.../model/java/JavaStructureType.java | 12 +-
.../ws/processor/model/java/JavaType.java | 4 +-
.../model/jaxb/JAXBElementMember.java | 5 +-
.../ws/processor/model/jaxb/JAXBMapping.java | 12 +-
.../ws/processor/model/jaxb/JAXBModel.java | 16 +-
.../ws/processor/model/jaxb/JAXBProperty.java | 7 +-
.../model/jaxb/JAXBStructuredType.java | 15 +-
.../ws/processor/model/jaxb/JAXBType.java | 4 +-
.../model/jaxb/JAXBTypeAndAnnotation.java | 6 +-
.../processor/model/jaxb/JAXBTypeVisitor.java | 2 +-
.../ws/processor/model/jaxb/RpcLitMember.java | 6 +-
.../processor/model/jaxb/RpcLitStructure.java | 9 +-
.../ws/processor/model/jaxb/Util.java | 2 +-
.../modeler/JavaSimpleTypeCreator.java | 7 +-
.../ws/processor/modeler/Modeler.java | 2 +-
.../processor/modeler/ModelerConstants.java | 2 +-
.../processor/modeler/ModelerException.java | 4 +-
.../AnnotationProcessorContext.java | 117 +-
.../modeler/annotation/FaultInfo.java | 3 +-
.../annotation/MakeSafeTypeVisitor.java | 21 +-
.../modeler/annotation/MemberInfo.java | 38 +-
.../modeler/annotation/ModelBuilder.java | 33 +-
.../modeler/annotation/TypeModeler.java | 65 +-
.../modeler/annotation/TypeMoniker.java | 5 +-
.../annotation/TypeMonikerFactory.java | 13 +-
.../modeler/annotation/WebServiceAP.java | 293 +-
.../annotation/WebServiceConstants.java | 5 +-
.../WebServiceReferenceCollector.java | 87 -
.../modeler/annotation/WebServiceVisitor.java | 338 +--
.../WebServiceWrapperGenerator.java | 335 +--
.../modeler/annotation/WrapperInfo.java | 4 +-
.../modeler/wsdl/AccessorElement.java | 2 +-
.../modeler/wsdl/ClassNameAllocatorImpl.java | 8 +-
.../modeler/wsdl/ConsoleErrorReporter.java | 90 +-
.../modeler/wsdl/JAXBModelBuilder.java | 123 +-
.../ws/processor/modeler/wsdl/MimeHelper.java | 6 +-
.../modeler/{ => wsdl}/ModelerUtils.java | 35 +-
.../modeler/wsdl/PseudoSchemaBuilder.java | 130 +-
.../processor/modeler/wsdl/WSDLModeler.java | 2000 +++++++-------
.../modeler/wsdl/WSDLModelerBase.java | 619 ++---
.../ws/processor/util/ClassNameCollector.java | 28 +-
.../util/ClientProcessorEnvironment.java | 224 --
.../ws/processor/util/DirectoryUtil.java | 15 +-
.../ws/processor/util/IndentingWriter.java | 6 +-
.../processor/util/ProcessorEnvironment.java | 108 -
.../util/ProcessorEnvironmentBase.java | 119 -
.../ws/resources/ConfigurationMessages.java | 65 +
.../ws/resources/GeneratorMessages.java | 101 +
.../ws/resources/JavacompilerMessages.java | 77 +
.../internal/ws/resources/ModelMessages.java | 702 +++++
.../ws/resources/ModelerMessages.java | 1602 +++++++++++
.../ProcessorMessages.java} | 33 +-
.../internal/ws/resources/UtilMessages.java | 77 +
.../ws/resources/WebserviceapMessages.java | 893 ++++++
.../ws/resources/WscompileMessages.java | 648 +++++
.../internal/ws/resources/WsdlMessages.java | 978 +++++++
.../ws/resources/configuration.properties | 4 +-
.../ws/resources/generator.properties | 4 +-
.../ws/resources/javacompiler.properties | 8 +-
.../internal/ws/resources/model.properties | 9 +-
.../internal/ws/resources/modeler.properties | 36 +-
.../ws/resources/processor.properties | 4 +-
.../internal/ws/resources/util.properties | 4 +-
.../ws/resources/webserviceap.properties | 13 +-
.../ws/resources/wscompile.properties | 70 +-
.../internal/ws/resources/wsdl.properties | 52 +-
.../internal/ws/spi/WSToolsObjectFactory.java | 46 +-
.../tools/internal/ws/spi/package-info.java | 4 +-
.../tools/internal/ws/util/ClassNameInfo.java | 2 +-
.../internal/ws/util/ForkEntityResolver.java | 6 +-
.../internal/ws/util/JAXWSClassFactory.java | 105 -
.../internal/ws/util/JavaCompilerHelper.java | 176 --
.../sun/tools/internal/ws/util/MapBase.java | 691 -----
.../sun/tools/internal/ws/util/ToolBase.java | 142 -
.../internal/ws/util/WSDLParseException.java | 5 +-
.../ws/util/WSToolsObjectFactoryImpl.java | 15 +-
.../ws/util/xml/NodeListIterator.java | 64 -
.../ws/util/xml/PrettyPrintingXmlWriter.java | 646 -----
.../tools/internal/ws/util/xml/XmlUtil.java | 28 +-
.../tools/internal/ws/util/xml/XmlWriter.java | 643 -----
.../sun/tools/internal/ws/version.properties | 32 +-
.../wscompile/AbortException.java} | 23 +-
.../ws/wscompile/ActionConstants.java | 45 -
.../wscompile/BadCommandLineException.java} | 42 +-
.../internal/ws/wscompile/CompileTool.java | 967 -------
.../internal/ws/wscompile/ErrorReceiver.java | 158 ++
.../wscompile/ErrorReceiverFilter.java} | 63 +-
.../ws/wscompile/FilerCodeWriter.java | 22 +-
.../ws/wscompile/JavaCompilerHelper.java | 89 +
.../tools/internal/ws/wscompile/Options.java | 385 +++
.../internal/ws/wscompile/WSCodeWriter.java | 22 +-
.../internal/ws/wscompile/WsgenOptions.java | 265 ++
.../internal/ws/wscompile/WsgenTool.java | 401 +++
.../ws/wscompile/WsimportListener.java | 89 +
.../ws/wscompile/WsimportOptions.java | 364 +++
.../internal/ws/wscompile/WsimportTool.java | 248 ++
.../internal/ws/wsdl/document/Binding.java | 64 +-
.../ws/wsdl/document/BindingFault.java | 44 +-
.../ws/wsdl/document/BindingInput.java | 44 +-
.../ws/wsdl/document/BindingOperation.java | 64 +-
.../ws/wsdl/document/BindingOutput.java | 44 +-
.../ws/wsdl/document/Definitions.java | 51 +-
.../ws/wsdl/document/Documentation.java | 2 +-
.../internal/ws/wsdl/document/Fault.java | 62 +-
.../internal/ws/wsdl/document/Import.java | 10 +-
.../internal/ws/wsdl/document/Input.java | 64 +-
.../internal/ws/wsdl/document/Kinds.java | 2 +-
.../internal/ws/wsdl/document/Message.java | 36 +-
.../ws/wsdl/document/MessagePart.java | 16 +-
.../internal/ws/wsdl/document/Operation.java | 82 +-
.../ws/wsdl/document/OperationStyle.java | 2 +-
.../internal/ws/wsdl/document/Output.java | 63 +-
.../tools/internal/ws/wsdl/document/Port.java | 62 +-
.../internal/ws/wsdl/document/PortType.java | 60 +-
.../internal/ws/wsdl/document/Service.java | 46 +-
.../internal/ws/wsdl/document/Types.java | 46 +-
.../ws/wsdl/document/WSDLConstants.java | 2 +-
.../ws/wsdl/document/WSDLDocument.java | 30 +-
.../ws/wsdl/document/WSDLDocumentVisitor.java | 2 +-
.../document/WSDLDocumentVisitorBase.java | 2 +-
.../ws/wsdl/document/http/HTTPAddress.java | 12 +-
.../ws/wsdl/document/http/HTTPBinding.java | 12 +-
.../ws/wsdl/document/http/HTTPConstants.java | 2 +-
.../ws/wsdl/document/http/HTTPOperation.java | 12 +-
.../ws/wsdl/document/http/HTTPUrlEncoded.java | 13 +-
.../document/http/HTTPUrlReplacement.java | 12 +-
.../ws/wsdl/document/jaxws/CustomName.java | 2 +-
.../ws/wsdl/document/jaxws/Exception.java | 2 +-
.../ws/wsdl/document/jaxws/JAXWSBinding.java | 38 +-
.../jaxws/JAXWSBindingsConstants.java | 13 +-
.../ws/wsdl/document/jaxws/Parameter.java | 2 +-
.../ws/wsdl/document/mime/MIMEConstants.java | 2 +-
.../ws/wsdl/document/mime/MIMEContent.java | 12 +-
.../document/mime/MIMEMultipartRelated.java | 25 +-
.../ws/wsdl/document/mime/MIMEPart.java | 35 +-
.../ws/wsdl/document/mime/MIMEXml.java | 12 +-
.../ws/wsdl/document/schema/BuiltInTypes.java | 86 -
.../ws/wsdl/document/schema/Schema.java | 188 --
.../wsdl/document/schema/SchemaAttribute.java | 106 -
.../wsdl/document/schema/SchemaConstants.java | 2 +-
.../wsdl/document/schema/SchemaDocument.java | 126 -
.../wsdl/document/schema/SchemaElement.java | 347 ---
.../ws/wsdl/document/schema/SchemaEntity.java | 84 -
.../ws/wsdl/document/schema/SchemaKinds.java | 2 +-
.../ws/wsdl/document/soap/SOAP12Binding.java | 8 +-
.../wsdl/document/soap/SOAP12Constants.java | 2 +-
.../ws/wsdl/document/soap/SOAPAddress.java | 12 +-
.../ws/wsdl/document/soap/SOAPBinding.java | 12 +-
.../ws/wsdl/document/soap/SOAPBody.java | 12 +-
.../ws/wsdl/document/soap/SOAPConstants.java | 6 +-
.../ws/wsdl/document/soap/SOAPFault.java | 12 +-
.../ws/wsdl/document/soap/SOAPHeader.java | 19 +-
.../wsdl/document/soap/SOAPHeaderFault.java | 14 +-
.../ws/wsdl/document/soap/SOAPOperation.java | 13 +-
.../ws/wsdl/document/soap/SOAPStyle.java | 2 +-
.../ws/wsdl/document/soap/SOAPUse.java | 2 +-
.../ws/wsdl/framework/AbstractDocument.java | 158 +-
.../internal/ws/wsdl/framework/Defining.java | 2 +-
.../framework/DuplicateEntityException.java | 4 +-
.../internal/ws/wsdl/framework/Elemental.java | 5 +-
.../internal/ws/wsdl/framework/Entity.java | 19 +-
.../ws/wsdl/framework/EntityAction.java | 2 +-
.../wsdl/framework/EntityReferenceAction.java | 2 +-
.../framework/EntityReferenceValidator.java | 2 +-
.../wsdl/framework/ExtensibilityHelper.java | 39 +-
.../ws/wsdl/framework/Extensible.java | 38 -
.../{Extension.java => ExtensionImpl.java} | 17 +-
.../ws/wsdl/framework/ExtensionVisitor.java | 8 +-
.../wsdl/framework/ExtensionVisitorBase.java | 8 +-
.../framework/ExternalEntityReference.java | 2 +-
.../ws/wsdl/framework/GlobalEntity.java | 9 +-
.../ws/wsdl/framework/GloballyKnown.java | 2 +-
.../ws/wsdl/framework/Identifiable.java | 2 +-
.../internal/ws/wsdl/framework/Kind.java | 2 +-
.../wsdl/framework/NoSuchEntityException.java | 4 +-
.../ws/wsdl/framework/ParseException.java | 8 +-
.../ws/wsdl/framework/ParserListener.java | 4 +-
.../ws/wsdl/framework/QNameAction.java | 2 +-
...ntext.java => TWSDLParserContextImpl.java} | 68 +-
.../wsdl/framework/ValidationException.java | 5 +-
.../ws/wsdl/framework/WSDLLocation.java | 5 +-
.../ws/wsdl/framework/WriterContext.java | 212 --
.../wsdl/parser/AbstractExtensionHandler.java | 84 +
.../parser/AbstractReferenceFinderImpl.java | 111 +
.../internal/ws/wsdl/parser/Constants.java | 2 +-
.../internal/ws/wsdl/parser/DOMBuilder.java | 104 +
.../internal/ws/wsdl/parser/DOMForest.java | 417 +++
.../ws/wsdl/parser/DOMForestScanner.java | 178 ++
.../ws/wsdl/parser/ExtensionHandlerBase.java | 130 -
.../ws/wsdl/parser/HTTPExtensionHandler.java | 168 +-
.../ws/wsdl/parser/InternalizationLogic.java | 109 +
.../internal/ws/wsdl/parser/Internalizer.java | 270 +-
.../parser/JAXWSBindingExtensionHandler.java | 244 +-
.../ws/wsdl/parser/MIMEExtensionHandler.java | 138 +-
...rSubmissionAddressingExtensionHandler.java | 71 +
.../ws/wsdl/parser/MetadataFinder.java | 252 ++
.../ws/wsdl/parser/NamespaceContextImpl.java | 29 +-
.../wsdl/parser/SOAP12ExtensionHandler.java | 17 +-
.../parser/SOAPEntityReferenceValidator.java | 11 +-
.../ws/wsdl/parser/SOAPExtensionHandler.java | 264 +-
.../wsdl/parser/SchemaExtensionHandler.java | 77 -
.../internal/ws/wsdl/parser/SchemaParser.java | 353 ---
.../internal/ws/wsdl/parser/SchemaWriter.java | 158 --
.../tools/internal/ws/wsdl/parser/Util.java | 29 +-
.../ws/wsdl/parser/VersionChecker.java | 138 +
.../parser/W3CAddressingExtensionHandler.java | 142 +
.../wsdl/parser/WSDLInternalizationLogic.java | 142 +
.../internal/ws/wsdl/parser/WSDLParser.java | 980 +++----
.../internal/ws/wsdl/parser/WSDLWriter.java | 371 ---
.../ws/wsdl/parser/WhitespaceStripper.java | 124 +
.../tools/internal/xjc/AbortException.java | 2 +-
.../internal/xjc/BadCommandLineException.java | 3 +-
.../internal/xjc/ConsoleErrorReporter.java | 3 +-
.../com/sun/tools/internal/xjc/Driver.java | 15 +-
.../sun/tools/internal/xjc/ErrorReceiver.java | 11 +-
.../com/sun/tools/internal/xjc/Language.java | 3 +-
.../internal/xjc/MessageBundle.properties | 79 +-
.../com/sun/tools/internal/xjc/Messages.java | 33 +-
.../sun/tools/internal/xjc/ModelLoader.java | 30 +-
.../com/sun/tools/internal/xjc/Options.java | 186 +-
.../com/sun/tools/internal/xjc/Plugin.java | 17 +-
.../internal/xjc/ProgressCodeWriter.java | 5 +-
.../sun/tools/internal/xjc/SchemaCache.java | 3 +-
.../sun/tools/internal/xjc/XJCListener.java | 26 +-
.../xjc/addon/at_generated/PluginImpl.java | 5 +-
.../xjc/addon/code_injector/Const.java | 3 +-
.../xjc/addon/code_injector/PluginImpl.java | 3 +-
.../xjc/addon/episode/PluginImpl.java | 244 ++
.../xjc/addon/episode/package-info.java | 29 +
.../addon/locator/SourceLocationAddOn.java | 8 +-
.../addon/sync/SynchronizedMethodAddOn.java | 3 +-
.../internal/xjc/api/ClassNameAllocator.java | 3 +-
.../tools/internal/xjc/api/ErrorListener.java | 5 +-
.../tools/internal/xjc/api/J2SJAXBModel.java | 32 +-
.../sun/tools/internal/xjc/api/JAXBModel.java | 3 +-
.../tools/internal/xjc/api/JavaCompiler.java | 3 +-
.../sun/tools/internal/xjc/api/Mapping.java | 3 +-
.../sun/tools/internal/xjc/api/Property.java | 3 +-
.../sun/tools/internal/xjc/api/Reference.java | 3 +-
.../tools/internal/xjc/api/S2JJAXBModel.java | 15 +-
.../internal/xjc/api/SchemaCompiler.java | 20 +-
.../tools/internal/xjc/api/SpecVersion.java | 57 +
.../internal/xjc/api/TypeAndAnnotation.java | 3 +-
.../com/sun/tools/internal/xjc/api/XJC.java | 3 +-
.../xjc/api/impl/j2s/JAXBModelImpl.java | 44 +-
.../xjc/api/impl/j2s/JavaCompilerImpl.java | 7 +-
.../internal/xjc/api/impl/j2s/Messages.java | 3 +-
.../xjc/api/impl/j2s/Messages.properties | 25 +
.../xjc/api/impl/s2j/AbstractMappingImpl.java | 3 +-
.../xjc/api/impl/s2j/BeanMappingImpl.java | 3 +-
.../api/impl/s2j/DowngradingErrorHandler.java | 3 +-
.../xjc/api/impl/s2j/ElementAdapter.java | 3 +-
.../impl/s2j/ElementCollectionAdapter.java | 3 +-
.../xjc/api/impl/s2j/ElementMappingImpl.java | 3 +-
.../api/impl/s2j/ElementSingleAdapter.java | 3 +-
.../xjc/api/impl/s2j/JAXBModelImpl.java | 11 +-
.../xjc/api/impl/s2j/PropertyImpl.java | 3 +-
.../xjc/api/impl/s2j/SchemaCompilerImpl.java | 26 +-
.../api/impl/s2j/TypeAndAnnotationImpl.java | 3 +-
.../internal/xjc/api/impl/s2j/package.html | 24 +
.../sun/tools/internal/xjc/api/package.html | 24 +
.../internal/xjc/api/util/APTClassLoader.java | 15 +-
.../xjc/api/util/FilerCodeWriter.java | 3 +-
.../tools/internal/xjc/api/util/Messages.java | 3 +-
.../internal/xjc/api/util/Messages.properties | 25 +
.../api/util/ToolsJarNotFoundException.java | 3 +-
.../tools/internal/xjc/api/util/package.html | 24 +
.../annotation/ri/XmlIsSetWriter.java | 4 +-
.../annotation/ri/XmlLocationWriter.java | 4 +-
.../spec/XmlAccessorOrderWriter.java | 4 +-
.../spec/XmlAccessorTypeWriter.java | 4 +-
.../spec/XmlAnyAttributeWriter.java | 4 +-
.../annotation/spec/XmlAnyElementWriter.java | 4 +-
.../spec/XmlAttachmentRefWriter.java | 4 +-
.../annotation/spec/XmlAttributeWriter.java | 4 +-
.../annotation/spec/XmlElementDeclWriter.java | 4 +-
.../annotation/spec/XmlElementRefWriter.java | 4 +-
.../annotation/spec/XmlElementRefsWriter.java | 4 +-
.../spec/XmlElementWrapperWriter.java | 6 +-
.../annotation/spec/XmlElementWriter.java | 4 +-
.../annotation/spec/XmlElementsWriter.java | 4 +-
.../annotation/spec/XmlEnumValueWriter.java | 4 +-
.../annotation/spec/XmlEnumWriter.java | 4 +-
.../annotation/spec/XmlIDREFWriter.java | 4 +-
.../annotation/spec/XmlIDWriter.java | 4 +-
.../spec/XmlInlineBinaryDataWriter.java | 4 +-
.../spec/XmlJavaTypeAdapterWriter.java | 4 +-
.../annotation/spec/XmlListWriter.java | 4 +-
.../annotation/spec/XmlMimeTypeWriter.java | 4 +-
.../annotation/spec/XmlMixedWriter.java | 4 +-
.../annotation/spec/XmlNsWriter.java | 4 +-
.../annotation/spec/XmlRegistryWriter.java | 4 +-
.../annotation/spec/XmlRootElementWriter.java | 4 +-
.../annotation/spec/XmlSchemaTypeWriter.java | 4 +-
.../annotation/spec/XmlSchemaTypesWriter.java | 4 +-
.../annotation/spec/XmlSchemaWriter.java | 6 +-
.../annotation/spec/XmlSeeAlsoWriter.java | 40 +
.../annotation/spec/XmlTransientWriter.java | 4 +-
.../annotation/spec/XmlTypeWriter.java | 4 +-
.../annotation/spec/XmlValueWriter.java | 4 +-
.../xjc/generator/bean/BeanGenerator.java | 118 +-
.../xjc/generator/bean/ClassOutlineImpl.java | 3 +-
.../bean/DualObjectFactoryGenerator.java | 3 +-
.../generator/bean/ElementOutlineImpl.java | 3 +-
.../generator/bean/ImplStructureStrategy.java | 3 +-
.../generator/bean/MessageBundle.properties | 25 +
.../internal/xjc/generator/bean/Messages.java | 2 +-
.../xjc/generator/bean/MethodWriter.java | 3 +-
.../bean/ObjectFactoryGenerator.java | 3 +-
.../bean/ObjectFactoryGeneratorImpl.java | 3 +-
.../generator/bean/PackageOutlineImpl.java | 6 +-
.../bean/PrivateObjectFactoryGenerator.java | 3 +-
.../bean/PublicObjectFactoryGenerator.java | 3 +-
.../generator/bean/field/AbstractField.java | 10 +-
.../bean/field/AbstractFieldWithVar.java | 3 +-
.../bean/field/AbstractListField.java | 3 +-
.../xjc/generator/bean/field/ArrayField.java | 3 +-
.../xjc/generator/bean/field/ConstField.java | 3 +-
.../bean/field/ConstFieldRenderer.java | 3 +-
.../bean/field/DefaultFieldRenderer.java | 3 +-
.../generator/bean/field/FieldRenderer.java | 2 +-
.../bean/field/FieldRendererFactory.java | 3 +-
.../bean/field/GenericFieldRenderer.java | 3 +-
.../xjc/generator/bean/field/IsSetField.java | 3 +-
.../bean/field/IsSetFieldRenderer.java | 3 +-
.../bean/field/MessageBundle.properties | 25 +
.../xjc/generator/bean/field/Messages.java | 3 +-
.../xjc/generator/bean/field/SingleField.java | 3 +-
.../field/SinglePrimitiveAccessField.java | 3 +-
.../generator/bean/field/UnboxedField.java | 3 +-
.../bean/field/UntypedListField.java | 3 +-
.../bean/field/UntypedListFieldRenderer.java | 3 +-
.../xjc/generator/bean/field/package.html | 24 +
.../internal/xjc/generator/package-info.java | 3 +-
.../xjc/generator/util/BlockReference.java | 3 +-
.../util/ExistingBlockReference.java | 3 +-
.../generator/util/LazyBlockReference.java | 3 +-
.../generator/util/WhitespaceNormalizer.java | 3 +-
.../model/AbstractCElement.java} | 53 +-
.../xjc/model/AbstractCTypeInfoImpl.java | 10 +-
.../model/AutoClassNameAllocator.java} | 69 +-
.../tools/internal/xjc/model/CAdapter.java | 3 +-
.../tools/internal/xjc/model/CArrayInfo.java | 8 +-
.../xjc/model/CAttributePropertyInfo.java | 15 +-
.../internal/xjc/model/CBuiltinLeafInfo.java | 20 +-
.../model/Text.java => xjc/model/CClass.java} | 17 +-
.../tools/internal/xjc/model/CClassInfo.java | 137 +-
.../internal/xjc/model/CClassInfoParent.java | 3 +-
.../tools/internal/xjc/model/CClassRef.java | 133 +
.../internal/xjc/model/CCustomizable.java | 3 +-
.../internal/xjc/model/CCustomizations.java | 3 +-
.../internal/xjc/model/CDefaultValue.java | 3 +-
.../tools/internal/xjc/model/CElement.java | 7 +-
.../internal/xjc/model/CElementInfo.java | 51 +-
.../xjc/model/CElementPropertyInfo.java | 32 +-
.../internal/xjc/model/CEnumConstant.java | 3 +-
.../internal/xjc/model/CEnumLeafInfo.java | 10 +-
.../tools/internal/xjc/model/CNonElement.java | 28 +-
.../xjc/model/CPluginCustomization.java | 3 +-
.../internal/xjc/model/CPropertyInfo.java | 67 +-
.../internal/xjc/model/CPropertyVisitor.java | 3 +-
.../xjc/model/CReferencePropertyInfo.java | 25 +-
.../xjc/model/CSingleTypePropertyInfo.java | 29 +-
.../tools/internal/xjc/model/CTypeInfo.java | 9 +-
.../tools/internal/xjc/model/CTypeRef.java | 27 +-
.../xjc/model/CValuePropertyInfo.java | 9 +-
.../internal/xjc/model/CWildcardTypeInfo.java | 3 +-
.../xjc/model/ClassNameAllocatorWrapper.java | 3 +-
.../tools/internal/xjc/model/Constructor.java | 3 +-
.../sun/tools/internal/xjc/model/Model.java | 67 +-
.../internal/xjc/model/Multiplicity.java | 3 +-
.../tools/internal/xjc/model/Populatable.java | 3 +-
.../tools/internal/xjc/model/SymbolSpace.java | 3 +-
.../sun/tools/internal/xjc/model/TypeUse.java | 6 +-
.../internal/xjc/model/TypeUseFactory.java | 3 +-
.../tools/internal/xjc/model/TypeUseImpl.java | 9 +-
.../internal/xjc/model/nav/EagerNClass.java | 3 +-
.../internal/xjc/model/nav/EagerNType.java | 3 +-
.../tools/internal/xjc/model/nav/NClass.java | 3 +-
.../xjc/model/nav/NClassByJClass.java | 3 +-
.../xjc/model/nav/NParameterizedType.java | 3 +-
.../tools/internal/xjc/model/nav/NType.java | 3 +-
.../internal/xjc/model/nav/NavigatorImpl.java | 9 +-
.../tools/internal/xjc/model/nav/package.html | 24 +
.../internal/xjc/model/package-info.java | 3 +-
.../tools/internal/xjc/outline/Aspect.java | 3 +-
.../internal/xjc/outline/ClassOutline.java | 16 +-
.../internal/xjc/outline/ElementOutline.java | 3 +-
.../xjc/outline/EnumConstantOutline.java | 3 +-
.../internal/xjc/outline/EnumOutline.java | 17 +-
.../internal/xjc/outline/FieldAccessor.java | 3 +-
.../internal/xjc/outline/FieldOutline.java | 3 +-
.../tools/internal/xjc/outline/Outline.java | 3 +-
.../internal/xjc/outline/PackageOutline.java | 3 +-
.../tools/internal/xjc/outline/package.html | 24 +
.../sun/tools/internal/xjc/package-info.java | 3 +-
.../AbstractExtensionBindingChecker.java | 202 ++
.../sun/tools/internal/xjc/reader/Const.java | 3 +-
.../xjc/reader/ExtensionBindingChecker.java | 210 +-
.../xjc/reader/MessageBundle.properties | 32 +-
.../tools/internal/xjc/reader/Messages.java | 6 +-
.../internal/xjc/reader/ModelChecker.java | 15 +-
.../tools/internal/xjc/reader/RawTypeSet.java | 125 +-
.../sun/tools/internal/xjc/reader/Ring.java | 3 +-
.../tools/internal/xjc/reader/TypeUtil.java | 3 +-
.../sun/tools/internal/xjc/reader/Util.java | 3 +-
.../tools/internal/xjc/reader/dtd/Block.java | 3 +-
.../internal/xjc/reader/dtd/Element.java | 15 +-
.../xjc/reader/dtd/MessageBundle.properties | 25 +
.../internal/xjc/reader/dtd/Messages.java | 2 +-
.../internal/xjc/reader/dtd/ModelGroup.java | 3 +-
.../internal/xjc/reader/dtd/Occurence.java | 3 +-
.../internal/xjc/reader/dtd/TDTDReader.java | 29 +-
.../tools/internal/xjc/reader/dtd/Term.java | 3 +-
.../xjc/reader/dtd/bindinfo/BIAttribute.java | 3 +-
.../reader/dtd/bindinfo/BIConstructor.java | 5 +-
.../xjc/reader/dtd/bindinfo/BIContent.java | 3 +-
.../xjc/reader/dtd/bindinfo/BIConversion.java | 3 +-
.../xjc/reader/dtd/bindinfo/BIElement.java | 7 +-
.../reader/dtd/bindinfo/BIEnumeration.java | 7 +-
.../xjc/reader/dtd/bindinfo/BIInterface.java | 5 +-
.../reader/dtd/bindinfo/BIUserConversion.java | 11 +-
.../xjc/reader/dtd/bindinfo/BindInfo.java | 49 +-
.../xjc/reader/dtd/bindinfo/DOMBuilder.java | 5 +-
.../{DOM4JLocator.java => DOMLocator.java} | 7 +-
.../xjc/reader/dtd/bindinfo/DOMUtil.java | 3 +-
.../bindinfo/DTDExtensionBindingChecker.java | 88 +
.../dtd/bindinfo/MessageBundle.properties | 24 +
.../xjc/reader/dtd/bindinfo/Messages.java | 2 +-
.../xjc/reader/dtd/bindinfo/bindingfile.rng | 24 +
.../xjc/reader/dtd/bindinfo/bindingfile.xsd | 4 +-
.../xjc/reader/dtd/bindinfo/package.html | 24 +
.../internal/xjc/reader/dtd/bindinfo/xjc.xsd | 4 +-
.../internal/xjc/reader/gbind/Choice.java | 3 +-
.../xjc/reader/gbind/ConnectedComponent.java | 3 +-
.../internal/xjc/reader/gbind/Element.java | 9 +-
.../internal/xjc/reader/gbind/ElementSet.java | 3 +-
.../xjc/reader/gbind/ElementSets.java | 7 +-
.../internal/xjc/reader/gbind/Expression.java | 3 +-
.../internal/xjc/reader/gbind/Graph.java | 3 +-
.../internal/xjc/reader/gbind/OneOrMore.java | 3 +-
.../internal/xjc/reader/gbind/Sequence.java | 3 +-
.../internal/xjc/reader/gbind/SinkNode.java | 3 +-
.../internal/xjc/reader/gbind/SourceNode.java | 3 +-
.../internal/xjc/reader/gbind/package.html | 24 +
.../AbstractReferenceFinderImpl.java | 11 +-
.../ContentHandlerNamespacePrefixAdapter.java | 3 +-
.../xjc/reader/internalizer/DOMBuilder.java | 3 +-
.../xjc/reader/internalizer/DOMForest.java | 27 +-
.../reader/internalizer/DOMForestParser.java | 3 +-
.../reader/internalizer/DOMForestScanner.java | 3 +-
.../internalizer/InternalizationLogic.java | 3 +-
.../xjc/reader/internalizer/Internalizer.java | 125 +-
.../xjc/reader/internalizer/LocatorTable.java | 3 +-
.../internalizer/MessageBundle.properties | 49 +-
.../xjc/reader/internalizer/Messages.java | 18 +-
.../internalizer/NamespaceContextImpl.java | 31 +-
.../internalizer/SCDBasedBindingSet.java | 245 ++
.../reader/internalizer/VersionChecker.java | 11 +-
.../internalizer/WhitespaceStripper.java | 6 +-
.../xjc/reader/internalizer/package.html | 24 +
.../tools/internal/xjc/reader/package.html | 24 +
.../xjc/reader/relaxng/BindStyle.java | 3 +-
.../reader/relaxng/ContentModelBinder.java | 5 +-
.../xjc/reader/relaxng/DatatypeLib.java | 3 +-
.../xjc/reader/relaxng/DefineFinder.java | 3 +-
.../xjc/reader/relaxng/NameCalculator.java | 3 +-
.../xjc/reader/relaxng/RELAXNGCompiler.java | 5 +-
.../relaxng/RELAXNGInternalizationLogic.java | 3 +-
.../xjc/reader/relaxng/RawTypeSetBuilder.java | 5 +-
.../xjc/reader/relaxng/TypePatternBinder.java | 3 +-
.../xjc/reader/relaxng/TypeUseBinder.java | 3 +-
.../xjc/reader/xmlschema/Abstractifier.java | 8 +-
.../xjc/reader/xmlschema/BGMBuilder.java | 82 +-
.../xjc/reader/xmlschema/BindBlue.java | 3 +-
.../xjc/reader/xmlschema/BindGreen.java | 9 +-
.../xjc/reader/xmlschema/BindPurple.java | 6 +-
.../xjc/reader/xmlschema/BindRed.java | 5 +-
.../xjc/reader/xmlschema/BindYellow.java | 3 +-
.../reader/xmlschema/BindingComponent.java | 3 +-
.../xjc/reader/xmlschema/ClassBinder.java | 3 +-
.../reader/xmlschema/ClassBinderFilter.java | 3 +-
.../xjc/reader/xmlschema/ClassSelector.java | 66 +-
.../xjc/reader/xmlschema/CollisionInfo.java | 6 +-
.../xjc/reader/xmlschema/ColorBinder.java | 14 +-
.../reader/xmlschema/DefaultClassBinder.java | 116 +-
.../xmlschema/DefaultParticleBinder.java | 3 +-
.../xjc/reader/xmlschema/ErrorReporter.java | 3 +-
.../reader/xmlschema/ExpressionBuilder.java | 6 +-
.../xmlschema/ExpressionParticleBinder.java | 7 +-
.../xjc/reader/xmlschema/GElement.java | 3 +-
.../xjc/reader/xmlschema/GElementImpl.java | 3 +-
.../reader/xmlschema/GWildcardElement.java | 24 +-
.../reader/xmlschema/MessageBundle.properties | 36 +
.../xjc/reader/xmlschema/Messages.java | 10 +-
.../reader/xmlschema/MultiplicityCounter.java | 3 +-
.../xjc/reader/xmlschema/ParticleBinder.java | 3 +-
.../reader/xmlschema/RawTypeSetBuilder.java | 127 +-
.../xjc/reader/xmlschema/RefererFinder.java | 3 +-
.../reader/xmlschema/SimpleTypeBuilder.java | 35 +-
.../xmlschema/UnusedCustomizationChecker.java | 3 +-
.../xmlschema/WildcardNameClassBuilder.java | 2 +-
.../bindinfo/AbstractDeclarationImpl.java | 3 +-
.../bindinfo/AnnotationParserFactoryImpl.java | 47 +-
.../reader/xmlschema/bindinfo/BIClass.java | 42 +-
.../xmlschema/bindinfo/BIConversion.java | 8 +-
.../xmlschema/bindinfo/BIDeclaration.java | 7 +-
.../xjc/reader/xmlschema/bindinfo/BIDom.java | 3 +-
.../xjc/reader/xmlschema/bindinfo/BIEnum.java | 16 +-
.../xmlschema/bindinfo/BIEnumMember.java | 3 +-
.../xmlschema/bindinfo/BIGlobalBinding.java | 18 +-
.../reader/xmlschema/bindinfo/BIProperty.java | 13 +-
.../xmlschema/bindinfo/BISchemaBinding.java | 11 +-
.../xmlschema/bindinfo/BISerializable.java | 3 +-
.../xjc/reader/xmlschema/bindinfo/BIXDom.java | 3 +-
.../bindinfo/BIXPluginCustomization.java | 3 +-
.../xmlschema/bindinfo/BIXSubstitutable.java} | 41 +-
.../reader/xmlschema/bindinfo/BindInfo.java | 45 +-
.../bindinfo/CollectionTypeAttribute.java | 3 +-
.../xmlschema/bindinfo/DomHandlerEx.java | 3 +-
.../xmlschema/bindinfo/EnumMemberMode.java | 3 +-
.../xmlschema/bindinfo/ForkingFilter.java | 3 +-
.../xmlschema/bindinfo/LocalScoping.java | 3 +-
.../bindinfo/MessageBundle.properties | 25 +
.../reader/xmlschema/bindinfo/Messages.java | 2 +-
.../bindinfo/OptionalPropertyMode.java | 3 +-
.../xjc/reader/xmlschema/bindinfo/binding.rng | 24 +
.../xjc/reader/xmlschema/bindinfo/binding.xsd | 32 +-
.../xmlschema/bindinfo/package-info.java | 3 +-
.../reader/xmlschema/bindinfo/package.html | 24 +
.../xjc/reader/xmlschema/bindinfo/xjc.xsd | 10 +-
.../xjc/reader/xmlschema/bindinfo/xs.xsd | 4 +-
.../xjc/reader/xmlschema/ct/CTBuilder.java | 3 +-
.../ct/ChoiceContentComplexTypeBuilder.java | 3 +-
.../xmlschema/ct/ComplexTypeBindingMode.java | 5 +-
.../xmlschema/ct/ComplexTypeFieldBuilder.java | 5 +-
.../ct/ExtendedComplexTypeBuilder.java | 6 +-
.../xmlschema/ct/FreshComplexTypeBuilder.java | 6 +-
.../xmlschema/ct/MessageBundle.properties | 25 +
.../xjc/reader/xmlschema/ct/Messages.java | 3 +-
.../xmlschema/ct/MixedComplexTypeBuilder.java | 5 +-
.../ct/RestrictedComplexTypeBuilder.java | 14 +-
.../ct/STDerivedComplexTypeBuilder.java | 6 +-
.../parser/CustomizationContextChecker.java | 3 +-
.../parser/IncorrectNamespaceURIChecker.java | 3 +-
.../xmlschema/parser/LSInputSAXWrapper.java | 3 +-
.../xmlschema/parser/MessageBundle.properties | 25 +
.../xjc/reader/xmlschema/parser/Messages.java | 2 +-
.../parser/SchemaConstraintChecker.java | 3 +-
.../parser/XMLSchemaInternalizationLogic.java | 3 +-
.../xjc/runtime/JAXBContextFactory.java | 5 +-
.../xjc/runtime/ZeroOneBooleanAdapter.java | 3 +-
.../tools/internal/xjc/runtime/package.html | 24 +
.../xjc/util/CodeModelClassFactory.java | 9 +-
.../sun/tools/internal/xjc/util/DOMUtils.java | 4 +-
.../xjc/util/ErrorReceiverFilter.java | 3 +-
.../internal/xjc/util/ForkContentHandler.java | 4 +-
.../internal/xjc/util/ForkEntityResolver.java | 3 +-
.../xjc/util/MessageBundle.properties | 31 +
.../sun/tools/internal/xjc/util/Messages.java | 5 +-
.../internal/xjc/util/MimeTypeRange.java | 3 +-
.../xjc/util/NamespaceContextAdapter.java | 3 +-
.../tools/internal/xjc/util/NullStream.java | 3 +-
.../internal/xjc/util/ReadOnlyAdapter.java | 3 +-
.../tools/internal/xjc/util/StringCutter.java | 3 +-
.../internal/xjc/util/SubtreeCutter.java | 107 +
.../com/sun/tools/internal/xjc/util/Util.java | 25 +-
.../util/XMLStreamReaderToContentHandler.java | 337 ---
.../internal/xjc/writer/SignatureWriter.java | 3 +-
.../xml/internal/bind/AccessorFactory.java | 61 +
.../internal/bind/AccessorFactoryImpl.java | 78 +
.../internal/bind/AnyTypeAdapter.java} | 40 +-
.../xml/internal/bind/CycleRecoverable.java | 81 +
.../internal/bind/DatatypeConverterImpl.java | 68 +-
.../com/sun/xml/internal/bind/IDResolver.java | 7 +-
.../com/sun/xml/internal/bind/Locatable.java | 6 +-
.../com/sun/xml/internal/bind/Util.java | 3 +-
.../bind/ValidationEventLocatorEx.java | 6 +-
.../internal/bind/WhiteSpaceProcessor.java | 3 +-
.../internal/bind/XmlAccessorFactory.java} | 27 +-
.../internal/bind/annotation/XmlIsSet.java | 3 +-
.../internal/bind/annotation/XmlLocation.java | 3 +-
.../internal/bind/api/AccessorException.java | 3 +-
.../com/sun/xml/internal/bind/api/Bridge.java | 12 +-
.../xml/internal/bind/api/BridgeContext.java | 3 +-
.../xml/internal/bind/api/ClassResolver.java | 103 +
.../internal/bind/api/CompositeStructure.java | 3 +-
.../api/ErrorListener.java} | 58 +-
.../xml/internal/bind/api/JAXBRIContext.java | 138 +-
.../xml/internal/bind/api/RawAccessor.java | 3 +-
.../xml/internal/bind/api/TypeReference.java | 3 +-
.../internal/bind/api/impl/NameConverter.java | 3 +-
.../xml/internal/bind/api/impl/NameUtil.java | 3 +-
.../xml/internal/bind/api/package-info.java | 3 +-
.../marshaller/CharacterEscapeHandler.java | 3 +-
.../internal/bind/marshaller/DataWriter.java | 4 +-
.../bind/marshaller/DumbEscapeHandler.java | 3 +-
.../internal/bind/marshaller/Messages.java | 2 +-
.../bind/marshaller/Messages.properties | 25 +
.../bind/marshaller/MinimumEscapeHandler.java | 6 +-
.../marshaller/NamespacePrefixMapper.java | 3 +-
.../bind/marshaller/NioEscapeHandler.java | 3 +-
.../internal/bind/marshaller/SAX2DOMEx.java | 2 +-
.../internal/bind/marshaller/XMLWriter.java | 4 +-
.../bind/unmarshaller/DOMScanner.java | 6 +-
.../bind/unmarshaller/InfosetScanner.java | 3 +-
.../internal/bind/unmarshaller/Messages.java | 2 +-
.../bind/unmarshaller/Messages.properties | 25 +
.../internal/bind/unmarshaller/Patcher.java | 3 +-
.../internal/bind/util/AttributesImpl.java | 3 +-
.../util/ValidationEventLocatorExImpl.java | 6 +-
.../com/sun/xml/internal/bind/util/Which.java | 6 +-
.../xml/internal/bind/v2/ClassFactory.java | 3 +-
.../xml/internal/bind/v2/ContextFactory.java | 43 +-
.../sun/xml/internal/bind/v2/Messages.java | 3 +-
.../xml/internal/bind/v2/Messages.properties | 27 +
.../com/sun/xml/internal/bind/v2/TODO.java | 3 +-
.../internal/bind/v2/WellKnownNamespace.java | 4 +-
.../bind/v2/bytecode/ClassTailor.java | 11 +-
.../internal/bind/v2/bytecode/package.html | 24 +
.../internal/bind/v2/doc-files/packages.png | Bin 37912 -> 0 bytes
.../internal/bind/v2/doc-files/packages.vsd | Bin 97279 -> 0 bytes
.../xml/internal/bind/v2/doc-files/readme.txt | 1 -
.../AbstractInlineAnnotationReaderImpl.java | 3 +-
.../v2/model/annotation/AnnotationReader.java | 20 +-
.../v2/model/annotation/AnnotationSource.java | 3 +-
.../v2/model/annotation/ClassLocatable.java | 3 +-
.../v2/model/annotation/FieldLocatable.java | 3 +-
.../bind/v2/model/annotation/Init.java | 6 +-
.../bind/v2/model/annotation/Locatable.java | 5 +-
.../model/annotation/LocatableAnnotation.java | 7 +-
.../bind/v2/model/annotation/Messages.java | 3 +-
.../v2/model/annotation/Messages.properties | 25 +
.../v2/model/annotation/MethodLocatable.java | 3 +-
.../bind/v2/model/annotation/Quick.java | 3 +-
.../annotation/RuntimeAnnotationReader.java | 3 +-
.../RuntimeInlineAnnotationReader.java | 21 +-
.../model/annotation/XmlAttributeQuick.java | 4 +-
.../model/annotation/XmlElementDeclQuick.java | 4 +-
.../v2/model/annotation/XmlElementQuick.java | 4 +-
.../model/annotation/XmlElementRefQuick.java | 4 +-
.../model/annotation/XmlElementRefsQuick.java | 4 +-
.../v2/model/annotation/XmlEnumQuick.java | 4 +-
.../model/annotation/XmlRootElementQuick.java | 4 +-
.../v2/model/annotation/XmlSchemaQuick.java | 8 +-
.../model/annotation/XmlTransientQuick.java | 4 +-
.../v2/model/annotation/XmlTypeQuick.java | 4 +-
.../v2/model/annotation/XmlValueQuick.java | 4 +-
.../bind/v2/model/annotation/package.html | 24 +
.../internal/bind/v2/model/core/Adapter.java | 3 +-
.../bind/v2/model/core/ArrayInfo.java | 3 +-
.../v2/model/core/AttributePropertyInfo.java | 3 +-
.../bind/v2/model/core/BuiltinLeafInfo.java | 3 +-
.../bind/v2/model/core/ClassInfo.java | 10 +-
.../internal/bind/v2/model/core/Element.java | 3 +-
.../bind/v2/model/core/ElementInfo.java | 3 +-
.../v2/model/core/ElementPropertyInfo.java | 11 +-
.../bind/v2/model/core/EnumConstant.java | 3 +-
.../bind/v2/model/core/EnumLeafInfo.java | 3 +-
.../bind/v2/model/core/ErrorHandler.java | 3 +-
.../xml/internal/bind/v2/model/core/ID.java | 3 +-
.../internal/bind/v2/model/core/LeafInfo.java | 3 +-
.../bind/v2/model/core/MapPropertyInfo.java | 3 +-
.../bind/v2/model/core/MaybeElement.java | 3 +-
.../bind/v2/model/core/NonElement.java | 3 +-
.../bind/v2/model/core/NonElementRef.java | 3 +-
.../bind/v2/model/core/PropertyInfo.java | 6 +-
.../bind/v2/model/core/PropertyKind.java | 3 +-
.../xml/internal/bind/v2/model/core/Ref.java | 3 +-
.../v2/model/core/ReferencePropertyInfo.java | 11 +-
.../bind/v2/model/core/RegistryInfo.java | 3 +-
.../internal/bind/v2/model/core/TypeInfo.java | 3 +-
.../bind/v2/model/core/TypeInfoSet.java | 17 +-
.../internal/bind/v2/model/core/TypeRef.java | 3 +-
.../bind/v2/model/core/ValuePropertyInfo.java | 3 +-
.../bind/v2/model/core/WildcardMode.java | 3 +-
.../bind/v2/model/core/WildcardTypeInfo.java | 3 +-
.../bind/v2/model/core/package-info.java | 3 +-
.../bind/v2/model/impl/AnyTypeImpl.java | 3 +-
.../bind/v2/model/impl/ArrayInfoImpl.java | 3 +-
.../model/impl/AttributePropertyInfoImpl.java | 3 +-
.../v2/model/impl/BuiltinLeafInfoImpl.java | 3 +-
.../bind/v2/model/impl/ClassInfoImpl.java | 245 +-
.../v2/model/impl/ERPropertyInfoImpl.java | 15 +-
.../bind/v2/model/impl/ElementInfoImpl.java | 26 +-
.../model/impl/ElementPropertyInfoImpl.java | 3 +-
.../bind/v2/model/impl/EnumConstantImpl.java | 3 +-
.../bind/v2/model/impl/EnumLeafInfoImpl.java | 7 +-
.../bind/v2/model/impl/FieldPropertySeed.java | 3 +-
.../model/impl/GetterSetterPropertySeed.java | 3 +-
.../bind/v2/model/impl/LeafInfoImpl.java | 3 +-
.../v2/model/impl/MapPropertyInfoImpl.java | 3 +-
.../internal/bind/v2/model/impl/Messages.java | 15 +-
.../bind/v2/model/impl/Messages.properties | 51 +
.../bind/v2/model/impl/ModelBuilder.java | 134 +-
.../bind/v2/model/impl/PropertyInfoImpl.java | 91 +-
.../bind/v2/model/impl/PropertySeed.java | 3 +-
.../model/impl/ReferencePropertyInfoImpl.java | 16 +-
.../bind/v2/model/impl/RegistryInfoImpl.java | 3 +-
.../v2/model/impl/RuntimeAnyTypeImpl.java | 3 +-
.../v2/model/impl/RuntimeArrayInfoImpl.java | 3 +-
.../RuntimeAttributePropertyInfoImpl.java | 3 +-
.../impl/RuntimeBuiltinLeafInfoImpl.java | 3 +-
.../v2/model/impl/RuntimeClassInfoImpl.java | 97 +-
.../v2/model/impl/RuntimeElementInfoImpl.java | 6 +-
.../impl/RuntimeElementPropertyInfoImpl.java | 3 +-
.../model/impl/RuntimeEnumConstantImpl.java | 3 +-
.../model/impl/RuntimeEnumLeafInfoImpl.java | 3 +-
.../impl/RuntimeMapPropertyInfoImpl.java | 3 +-
.../v2/model/impl/RuntimeModelBuilder.java | 19 +-
.../RuntimeReferencePropertyInfoImpl.java | 3 +-
.../v2/model/impl/RuntimeTypeInfoSetImpl.java | 3 +-
.../v2/model/impl/RuntimeTypeRefImpl.java | 3 +-
.../impl/RuntimeValuePropertyInfoImpl.java | 3 +-
.../impl/SingleTypePropertyInfoImpl.java | 5 +-
.../bind/v2/model/impl/TypeInfoImpl.java | 3 +-
.../bind/v2/model/impl/TypeInfoSetImpl.java | 128 +-
.../bind/v2/model/impl/TypeRefImpl.java | 3 +-
.../xml/internal/bind/v2/model/impl/Util.java | 3 +-
.../v2/model/impl/ValuePropertyInfoImpl.java | 3 +-
.../internal/bind/v2/model/impl/package.html | 24 +
.../v2/model/nav/GenericArrayTypeImpl.java | 3 +-
.../internal/bind/v2/model/nav/Navigator.java | 15 +-
.../v2/model/nav/ParameterizedTypeImpl.java | 3 +-
.../v2/model/nav/ReflectionNavigator.java | 23 +-
.../bind/v2/model/nav/TypeVisitor.java | 3 +-
.../bind/v2/model/nav/WildcardTypeImpl.java | 3 +-
.../internal/bind/v2/model/nav/package.html | 24 +
.../v2/model/runtime/RuntimeArrayInfo.java | 3 +-
.../runtime/RuntimeAttributePropertyInfo.java | 3 +-
.../model/runtime/RuntimeBuiltinLeafInfo.java | 3 +-
.../v2/model/runtime/RuntimeClassInfo.java | 4 +-
.../bind/v2/model/runtime/RuntimeElement.java | 3 +-
.../v2/model/runtime/RuntimeElementInfo.java | 3 +-
.../runtime/RuntimeElementPropertyInfo.java | 3 +-
.../v2/model/runtime/RuntimeEnumLeafInfo.java | 3 +-
.../v2/model/runtime/RuntimeLeafInfo.java | 3 +-
.../model/runtime/RuntimeMapPropertyInfo.java | 3 +-
.../v2/model/runtime/RuntimeNonElement.java | 4 +-
.../model/runtime/RuntimeNonElementRef.java | 3 +-
.../v2/model/runtime/RuntimePropertyInfo.java | 3 +-
.../runtime/RuntimeReferencePropertyInfo.java | 3 +-
.../v2/model/runtime/RuntimeTypeInfo.java | 3 +-
.../v2/model/runtime/RuntimeTypeInfoSet.java | 3 +-
.../bind/v2/model/runtime/RuntimeTypeRef.java | 3 +-
.../runtime/RuntimeValuePropertyInfo.java | 3 +-
.../bind/v2/model/runtime/package-info.java | 3 +-
.../xml/internal/bind/v2/package-info.java | 3 +-
.../bind/v2/runtime/AnyTypeBeanInfo.java | 7 +-
.../bind/v2/runtime/ArrayBeanInfoImpl.java | 3 +-
.../bind/v2/runtime/AssociationMap.java | 11 +-
.../internal/bind/v2/runtime/BinderImpl.java | 6 +-
.../bind/v2/runtime/BridgeAdapter.java | 3 +-
.../bind/v2/runtime/BridgeContextImpl.java | 3 +-
.../internal/bind/v2/runtime/BridgeImpl.java | 5 +-
.../bind/v2/runtime/ClassBeanInfoImpl.java | 3 +-
.../runtime/CompositeStructureBeanInfo.java | 3 +-
.../v2/runtime/ContentHandlerAdaptor.java | 39 +-
.../internal/bind/v2/runtime/Coordinator.java | 13 +-
.../bind/v2/runtime/DomPostInitAction.java | 3 +-
.../bind/v2/runtime/ElementBeanInfoImpl.java | 34 +-
.../bind/v2/runtime/FilterTransducer.java | 3 +-
.../runtime/IllegalAnnotationException.java | 3 +-
.../runtime/IllegalAnnotationsException.java | 3 +-
.../v2/runtime/InlineBinaryTransducer.java | 3 +-
.../bind/v2/runtime/InternalBridge.java | 3 +-
.../bind/v2/runtime/JAXBContextImpl.java | 152 +-
.../internal/bind/v2/runtime/JaxBeanInfo.java | 76 +-
.../bind/v2/runtime/LeafBeanInfoImpl.java | 3 +-
.../bind/v2/runtime/LifecycleMethods.java | 47 +-
.../internal/bind/v2/runtime/Location.java | 3 +-
.../bind/v2/runtime/MarshallerImpl.java | 37 +-
.../internal/bind/v2/runtime/Messages.java | 6 +-
.../bind/v2/runtime/Messages.properties | 34 +
.../bind/v2/runtime/MimeTypedTransducer.java | 3 +-
.../xml/internal/bind/v2/runtime/Name.java | 3 +-
.../internal/bind/v2/runtime/NameBuilder.java | 3 +-
.../internal/bind/v2/runtime/NameList.java | 3 +-
.../bind/v2/runtime/NamespaceContext2.java | 13 +-
.../internal/bind/v2/runtime/RuntimeUtil.java | 3 +-
.../bind/v2/runtime/SchemaTypeTransducer.java | 3 +-
.../bind/v2/runtime/StAXPostInitAction.java | 3 +-
.../bind/v2/runtime/SwaRefAdapter.java | 3 +-
.../internal/bind/v2/runtime/Transducer.java | 3 +-
.../v2/runtime/ValueListBeanInfoImpl.java | 3 +-
.../bind/v2/runtime/XMLSerializer.java | 99 +-
.../bind/v2/runtime/output/C14nXmlOutput.java | 3 +-
.../bind/v2/runtime/output/DOMOutput.java | 3 +-
.../bind/v2/runtime/output/Encoded.java | 3 +-
.../output/FastInfosetStreamWriterOutput.java | 409 ++-
.../bind/v2/runtime/output/ForkXmlOutput.java | 9 +-
.../v2/runtime/output/InPlaceDOMOutput.java | 3 +-
.../output/IndentingUTF8XmlOutput.java | 3 +-
.../bind/v2/runtime/output/MTOMXmlOutput.java | 7 +-
.../runtime/output/NamespaceContextImpl.java | 30 +-
.../bind/v2/runtime/output/Pcdata.java | 3 +-
.../bind/v2/runtime/output/SAXOutput.java | 3 +-
.../bind/v2/runtime/output/UTF8XmlOutput.java | 10 +-
.../runtime/output/XMLEventWriterOutput.java | 7 +-
.../runtime/output/XMLStreamWriterOutput.java | 37 +-
.../bind/v2/runtime/output/XmlOutput.java | 14 +-
.../runtime/output/XmlOutputAbstractImpl.java | 11 +-
.../bind/v2/runtime/output/package-info.java | 3 +-
.../xml/internal/bind/v2/runtime/package.html | 24 +
.../v2/runtime/property/ArrayERProperty.java | 31 +-
.../property/ArrayElementLeafProperty.java | 3 +-
.../property/ArrayElementNodeProperty.java | 3 +-
.../property/ArrayElementProperty.java | 5 +-
.../v2/runtime/property/ArrayProperty.java | 5 +-
.../property/ArrayReferenceNodeProperty.java | 3 +-
.../runtime/property/AttributeProperty.java | 13 +-
.../runtime/property/ListElementProperty.java | 3 +-
.../bind/v2/runtime/property/Messages.java | 3 +-
.../v2/runtime/property/Messages.properties | 25 +
.../bind/v2/runtime/property/Property.java | 3 +-
.../v2/runtime/property/PropertyFactory.java | 3 +-
.../v2/runtime/property/PropertyImpl.java | 3 +-
.../property/SingleElementLeafProperty.java | 9 +-
.../property/SingleElementNodeProperty.java | 8 +-
.../property/SingleMapNodeProperty.java | 6 +-
.../property/SingleReferenceNodeProperty.java | 22 +-
.../property/StructureLoaderBuilder.java | 3 +-
.../bind/v2/runtime/property/TagAndType.java | 3 +-
.../runtime/property/UnmarshallerChain.java | 5 +-
.../v2/runtime/property/ValueProperty.java | 9 +-
.../bind/v2/runtime/reflect/Accessor.java | 38 +-
.../v2/runtime/reflect/AdaptedAccessor.java | 8 +-
.../v2/runtime/reflect/AdaptedLister.java | 3 +-
.../reflect/DefaultTransducedAccessor.java | 3 +-
.../bind/v2/runtime/reflect/ListIterator.java | 3 +-
.../reflect/ListTransducedAccessorImpl.java | 3 +-
.../bind/v2/runtime/reflect/Lister.java | 34 +-
.../bind/v2/runtime/reflect/Messages.java | 3 +-
.../v2/runtime/reflect/Messages.properties | 25 +
.../v2/runtime/reflect/NullSafeAccessor.java | 3 +-
.../reflect/PrimitiveArrayListerBoolean.java | 3 +-
.../reflect/PrimitiveArrayListerByte.java | 3 +-
.../PrimitiveArrayListerCharacter.java | 3 +-
.../reflect/PrimitiveArrayListerDouble.java | 3 +-
.../reflect/PrimitiveArrayListerFloat.java | 3 +-
.../reflect/PrimitiveArrayListerInteger.java | 3 +-
.../reflect/PrimitiveArrayListerLong.java | 3 +-
.../reflect/PrimitiveArrayListerShort.java | 3 +-
.../runtime/reflect/TransducedAccessor.java | 27 +-
.../runtime/reflect/opt/AccessorInjector.java | 7 +-
.../bind/v2/runtime/reflect/opt/Bean.java | 3 +-
.../bind/v2/runtime/reflect/opt/Const.java | 3 +-
.../reflect/opt/FieldAccessor_Boolean.java | 3 +-
.../reflect/opt/FieldAccessor_Byte.java | 3 +-
.../reflect/opt/FieldAccessor_Character.java | 3 +-
.../reflect/opt/FieldAccessor_Double.java | 3 +-
.../reflect/opt/FieldAccessor_Float.java | 3 +-
.../reflect/opt/FieldAccessor_Integer.java | 3 +-
.../reflect/opt/FieldAccessor_Long.java | 3 +-
.../reflect/opt/FieldAccessor_Ref.java | 3 +-
.../reflect/opt/FieldAccessor_Short.java | 3 +-
.../bind/v2/runtime/reflect/opt/Injector.java | 6 +-
.../reflect/opt/MethodAccessor_Boolean.java | 3 +-
.../reflect/opt/MethodAccessor_Byte.java | 3 +-
.../reflect/opt/MethodAccessor_Character.java | 3 +-
.../reflect/opt/MethodAccessor_Double.java | 3 +-
.../reflect/opt/MethodAccessor_Float.java | 3 +-
.../reflect/opt/MethodAccessor_Integer.java | 3 +-
.../reflect/opt/MethodAccessor_Long.java | 3 +-
.../reflect/opt/MethodAccessor_Ref.java | 3 +-
.../reflect/opt/MethodAccessor_Short.java | 3 +-
.../reflect/opt/OptimizedAccessorFactory.java | 3 +-
.../OptimizedTransducedAccessorFactory.java | 3 +-
.../bind/v2/runtime/reflect/opt/Ref.java | 3 +-
.../opt/TransducedAccessor_field_Boolean.java | 3 +-
.../opt/TransducedAccessor_field_Byte.java | 3 +-
.../opt/TransducedAccessor_field_Double.java | 3 +-
.../opt/TransducedAccessor_field_Float.java | 3 +-
.../opt/TransducedAccessor_field_Integer.java | 3 +-
.../opt/TransducedAccessor_field_Long.java | 3 +-
.../opt/TransducedAccessor_field_Short.java | 3 +-
.../TransducedAccessor_method_Boolean.java | 3 +-
.../opt/TransducedAccessor_method_Byte.java | 3 +-
.../opt/TransducedAccessor_method_Double.java | 3 +-
.../opt/TransducedAccessor_method_Float.java | 3 +-
.../TransducedAccessor_method_Integer.java | 3 +-
.../opt/TransducedAccessor_method_Long.java | 3 +-
.../opt/TransducedAccessor_method_Short.java | 3 +-
.../bind/v2/runtime/reflect/opt/package.html | 24 +
.../bind/v2/runtime/reflect/package.html | 24 +
.../v2/runtime/unmarshaller/AttributesEx.java | 3 +-
.../unmarshaller/AttributesExImpl.java | 3 +-
.../v2/runtime/unmarshaller/Base64Data.java | 3 +-
.../v2/runtime/unmarshaller/ChildLoader.java | 3 +-
.../unmarshaller/DefaultIDResolver.java | 3 +-
.../DefaultValueLoaderDecorator.java | 3 +-
.../v2/runtime/unmarshaller/Discarder.java | 5 +-
.../v2/runtime/unmarshaller/DomLoader.java | 3 +-
.../unmarshaller/FastInfosetConnector.java | 190 +-
.../v2/runtime/unmarshaller/IntArrayData.java | 3 +-
.../bind/v2/runtime/unmarshaller/IntData.java | 3 +-
.../v2/runtime/unmarshaller/Intercepter.java | 3 +-
.../unmarshaller/InterningXmlVisitor.java | 3 +-
.../unmarshaller/LeafPropertyLoader.java | 3 +-
.../bind/v2/runtime/unmarshaller/Loader.java | 3 +-
.../v2/runtime/unmarshaller/LocatorEx.java | 65 +-
.../unmarshaller/LocatorExWrapper.java | 3 +-
.../runtime/unmarshaller/MTOMDecorator.java | 3 +-
.../v2/runtime/unmarshaller/Messages.java | 3 +-
.../runtime/unmarshaller/Messages.properties | 25 +
.../bind/v2/runtime/unmarshaller/Patcher.java | 3 +-
.../v2/runtime/unmarshaller/ProxyLoader.java | 3 +-
.../v2/runtime/unmarshaller/Receiver.java | 3 +-
.../v2/runtime/unmarshaller/SAXConnector.java | 3 +-
.../bind/v2/runtime/unmarshaller/Scope.java | 29 +-
.../runtime/unmarshaller/StAXConnector.java | 3 +-
.../unmarshaller/StAXEventConnector.java | 4 +-
.../unmarshaller/StAXStreamConnector.java | 77 +-
.../runtime/unmarshaller/StructureLoader.java | 3 +-
.../bind/v2/runtime/unmarshaller/TagName.java | 3 +-
.../v2/runtime/unmarshaller/TextLoader.java | 3 +-
.../unmarshaller/UnmarshallerImpl.java | 8 +-
.../unmarshaller/UnmarshallingContext.java | 71 +-
.../unmarshaller/ValidatingUnmarshaller.java | 3 +-
.../unmarshaller/ValuePropertyLoader.java | 3 +-
.../runtime/unmarshaller/WildcardLoader.java | 9 +-
.../v2/runtime/unmarshaller/XmlVisitor.java | 3 +-
.../v2/runtime/unmarshaller/XsiNilLoader.java | 3 +-
.../runtime/unmarshaller/XsiTypeLoader.java | 17 +-
.../bind/v2/schemagen/FoolProofResolver.java | 3 +-
.../xml/internal/bind/v2/schemagen/Form.java | 3 +-
.../internal/bind/v2/schemagen/GroupKind.java | 50 +
.../v2/schemagen/Messages.java} | 24 +-
.../bind/v2/schemagen/Messages.properties | 27 +
.../internal/bind/v2/schemagen/MultiMap.java | 3 +-
.../xml/internal/bind/v2/schemagen/Tree.java | 243 ++
.../xml/internal/bind/v2/schemagen/Util.java | 3 +-
.../bind/v2/schemagen/XmlSchemaGenerator.java | 643 +++--
.../bind/v2/schemagen/episode/Bindings.java} | 43 +-
.../bind/v2/schemagen/episode/Klass.java | 39 +
.../v2/schemagen/episode/SchemaBindings.java} | 17 +-
.../v2/schemagen/episode/package-info.java | 33 +
.../bind/v2/schemagen/package-info.java | 3 +-
.../v2/schemagen/xmlschema/Annotated.java | 4 +-
.../v2/schemagen/xmlschema/Annotation.java | 4 +-
.../bind/v2/schemagen/xmlschema/Any.java | 4 +-
.../bind/v2/schemagen/xmlschema/Appinfo.java | 4 +-
.../v2/schemagen/xmlschema/AttrDecls.java | 4 +-
.../v2/schemagen/xmlschema/AttributeType.java | 4 +-
.../schemagen/xmlschema/ComplexContent.java | 4 +-
.../schemagen/xmlschema/ComplexExtension.java | 4 +-
.../xmlschema/ComplexRestriction.java | 4 +-
.../v2/schemagen/xmlschema/ComplexType.java | 14 +-
.../schemagen/xmlschema/ComplexTypeHost.java | 4 +-
.../schemagen/xmlschema/ComplexTypeModel.java | 4 +-
.../xmlschema/ContentModelContainer.java | 52 +
.../v2/schemagen/xmlschema/Documentation.java | 4 +-
.../bind/v2/schemagen/xmlschema/Element.java | 8 +-
.../v2/schemagen/xmlschema/ExplicitGroup.java | 4 +-
.../v2/schemagen/xmlschema/ExtensionType.java | 4 +-
.../schemagen/xmlschema/FixedOrDefault.java | 4 +-
.../bind/v2/schemagen/xmlschema/Import.java | 4 +-
.../bind/v2/schemagen/xmlschema/List.java | 4 +-
.../schemagen/xmlschema/LocalAttribute.java | 4 +-
.../v2/schemagen/xmlschema/LocalElement.java | 4 +-
.../schemagen/xmlschema/NestedParticle.java | 4 +-
.../v2/schemagen/xmlschema/NoFixedFacet.java | 4 +-
.../bind/v2/schemagen/xmlschema/Occurs.java | 10 +-
.../v2/schemagen/xmlschema/Particle.java} | 10 +-
.../v2/schemagen/xmlschema/Redefinable.java | 4 +-
.../bind/v2/schemagen/xmlschema/Schema.java | 12 +-
.../v2/schemagen/xmlschema/SchemaTop.java | 4 +-
.../v2/schemagen/xmlschema/SimpleContent.java | 4 +-
.../schemagen/xmlschema/SimpleDerivation.java | 4 +-
.../schemagen/xmlschema/SimpleExtension.java | 4 +-
.../xmlschema/SimpleRestriction.java | 4 +-
.../xmlschema/SimpleRestrictionModel.java | 4 +-
.../v2/schemagen/xmlschema/SimpleType.java | 4 +-
.../schemagen/xmlschema/SimpleTypeHost.java | 4 +-
.../xmlschema/TopLevelAttribute.java | 4 +-
.../schemagen/xmlschema/TopLevelElement.java | 8 +-
.../schemagen/xmlschema/TypeDefParticle.java | 4 +-
.../bind/v2/schemagen/xmlschema/TypeHost.java | 4 +-
.../bind/v2/schemagen/xmlschema/Union.java | 4 +-
.../bind/v2/schemagen/xmlschema/Wildcard.java | 10 +-
.../v2/schemagen/xmlschema/package-info.java | 3 +-
.../bind/v2/schemagen/xmlschema/package.html | 24 +
.../xmlschema/xmlschema-for-jaxb.rng | 24 +
.../bind/v2/util/ByteArrayOutputStreamEx.java | 3 +-
.../bind/v2/util/CollisionCheckStack.java | 47 +-
.../bind/v2/util/DataSourceSource.java | 3 +-
.../internal/bind/v2/util/EditDistance.java | 25 +-
.../internal/bind/v2/util/FatalAdapter.java | 3 +-
.../bind/v2/util/FlattenIterator.java | 3 +-
.../xml/internal/bind/v2/util/QNameMap.java | 3 +-
.../internal/bind/v2/util/TypeCast.java} | 47 +-
.../internal/dtdparser/DTDEventListener.java | 2 +-
.../internal/dtdparser/DTDHandlerBase.java | 2 +-
.../sun/xml/internal/dtdparser/DTDParser.java | 3 +-
.../dtdparser/EndOfInputException.java | 2 +-
.../xml/internal/dtdparser/EntityDecl.java | 3 +-
.../internal/dtdparser/ExternalEntity.java | 2 +-
.../xml/internal/dtdparser/InputEntity.java | 3 +-
.../internal/dtdparser/InternalEntity.java | 2 +-
.../internal/dtdparser/MessageCatalog.java | 3 +-
.../sun/xml/internal/dtdparser/Resolver.java | 3 +-
.../internal/dtdparser/SimpleHashtable.java | 3 +-
.../sun/xml/internal/dtdparser/XmlChars.java | 3 +-
.../sun/xml/internal/dtdparser/XmlNames.java | 3 +-
.../sun/xml/internal/dtdparser/XmlReader.java | 3 +-
.../sun/xml/internal/dtdparser/package.html | 24 +
.../dtdparser/resources/Messages.properties | 4 +-
.../fastinfoset/AbstractResourceBundle.java | 42 +-
.../fastinfoset/CommonResourceBundle.java | 48 +-
.../sun/xml/internal/fastinfoset/Decoder.java | 354 ++-
.../fastinfoset/DecoderStateTables.java | 71 +-
.../sun/xml/internal/fastinfoset/Encoder.java | 367 ++-
.../fastinfoset/EncodingConstants.java | 84 +-
.../xml/internal/fastinfoset/Notation.java | 29 +-
.../OctetBufferListener.java} | 21 +-
.../internal/fastinfoset/QualifiedName.java | 170 +-
.../internal/fastinfoset/UnparsedEntity.java | 29 +-
.../algorithm/BASE64EncodingAlgorithm.java | 117 +-
.../algorithm/BooleanEncodingAlgorithm.java | 32 +-
.../algorithm/BuiltInEncodingAlgorithm.java | 33 +-
.../BuiltInEncodingAlgorithmFactory.java | 30 +-
.../BuiltInEncodingAlgorithmState.java | 30 +-
.../algorithm/DoubleEncodingAlgorithm.java | 46 +-
.../algorithm/FloatEncodingAlgorithm.java | 34 +-
.../HexadecimalEncodingAlgorithm.java | 30 +-
...IEEE754FloatingPointEncodingAlgorithm.java | 30 +-
.../algorithm/IntEncodingAlgorithm.java | 34 +-
.../algorithm/IntegerEncodingAlgorithm.java | 30 +-
.../algorithm/LongEncodingAlgorithm.java | 44 +-
.../algorithm/ShortEncodingAlgorithm.java | 34 +-
.../algorithm/UUIDEncodingAlgorithm.java | 36 +-
.../alphabet/BuiltInRestrictedAlphabets.java | 30 +-
.../fastinfoset/dom/DOMDocumentParser.java | 131 +-
.../dom/DOMDocumentSerializer.java | 96 +-
.../org/apache/xerces/util/XMLChar.java | 4 +-
.../resources/ResourceBundle.properties | 25 +
.../fastinfoset/sax/AttributesHolder.java | 37 +-
.../internal/fastinfoset/sax/Features.java | 29 +-
.../internal/fastinfoset/sax/Properties.java | 29 +-
.../fastinfoset/sax/SAXDocumentParser.java | 359 ++-
.../sax/SAXDocumentSerializer.java | 202 +-
...AXDocumentSerializerWithPrefixMapping.java | 271 ++
.../fastinfoset/sax/SystemIdResolver.java | 29 +-
.../fastinfoset/stax/EventLocation.java | 29 +-
.../fastinfoset/stax/StAXDocumentParser.java | 297 +-
.../stax/StAXDocumentSerializer.java | 320 ++-
.../fastinfoset/stax/StAXManager.java | 29 +-
.../stax/events/AttributeBase.java | 29 +-
.../stax/events/CharactersEvent.java | 29 +-
.../fastinfoset/stax/events/CommentEvent.java | 29 +-
.../fastinfoset/stax/events/DTDEvent.java | 29 +-
.../stax/events/EmptyIterator.java | 34 +-
.../stax/events/EndDocumentEvent.java | 29 +-
.../stax/events/EndElementEvent.java | 29 +-
.../stax/events/EntityDeclarationImpl.java | 41 +-
.../stax/events/EntityReferenceEvent.java | 29 +-
.../fastinfoset/stax/events/EventBase.java | 29 +-
.../stax/events/NamespaceBase.java | 29 +-
.../events/ProcessingInstructionEvent.java | 29 +-
.../fastinfoset/stax/events/ReadIterator.java | 29 +-
.../stax/events/StAXEventAllocator.java | 29 +-
.../stax/events/StAXEventAllocatorBase.java | 29 +-
.../stax/events/StAXEventReader.java | 29 +-
.../stax/events/StAXEventWriter.java | 29 +-
.../stax/events/StAXFilteredEvent.java | 5 +-
.../stax/events/StartDocumentEvent.java | 29 +-
.../stax/events/StartElementEvent.java | 29 +-
.../fastinfoset/stax/events/Util.java | 29 +-
.../fastinfoset/stax/events/XMLConstants.java | 29 +-
.../stax/factory/StAXEventFactory.java | 29 +-
.../stax/factory/StAXInputFactory.java | 29 +-
.../stax/factory/StAXOutputFactory.java | 33 +-
.../stax/util/StAXFilteredParser.java | 29 +-
.../stax/util/StAXParserWrapper.java | 29 +-
.../tools/FI_DOM_Or_XML_DOM_SAX_SAXEvent.java | 39 +-
.../FI_SAX_Or_XML_SAX_DOM_SAX_SAXEvent.java | 58 +-
.../tools/FI_SAX_Or_XML_SAX_SAXEvent.java | 48 +-
.../fastinfoset/tools/FI_SAX_XML.java | 29 +-
.../FI_StAX_SAX_Or_XML_SAX_SAXEvent.java | 29 +-
.../fastinfoset/tools/PrintTable.java | 29 +-
.../fastinfoset/tools/SAX2StAXWriter.java | 43 +-
.../fastinfoset/tools/SAXEventSerializer.java | 31 +-
.../fastinfoset/tools/StAX2SAXReader.java | 31 +-
.../tools/TransformInputOutput.java | 119 +-
.../tools/VocabularyGenerator.java | 41 +-
.../fastinfoset/tools/XML_DOM_FI.java | 15 +-
.../fastinfoset/tools/XML_DOM_SAX_FI.java | 39 +-
.../fastinfoset/tools/XML_SAX_FI.java | 51 +-
.../fastinfoset/tools/XML_SAX_StAX_FI.java | 50 +-
.../internal/fastinfoset/util/CharArray.java | 32 +-
.../fastinfoset/util/CharArrayArray.java | 29 +-
.../fastinfoset/util/CharArrayIntMap.java | 42 +-
.../fastinfoset/util/CharArrayString.java | 29 +-
.../util/ContiguousCharArrayArray.java | 48 +-
.../util/DuplicateAttributeVerifier.java | 6 +-
.../util/FixedEntryStringIntMap.java | 38 +-
.../internal/fastinfoset/util/KeyIntMap.java | 33 +-
.../util/LocalNameQualifiedNamesMap.java | 47 +-
.../util/NamespaceContextImplementation.java | 226 ++
.../fastinfoset/util/PrefixArray.java | 41 +-
.../fastinfoset/util/QualifiedNameArray.java | 36 +-
.../fastinfoset/util/StringArray.java | 38 +-
.../fastinfoset/util/StringIntMap.java | 67 +-
.../internal/fastinfoset/util/ValueArray.java | 29 +-
.../util/ValueArrayResourceException.java | 29 +-
.../fastinfoset/vocab/ParserVocabulary.java | 59 +-
.../vocab/SerializerVocabulary.java | 29 +-
.../fastinfoset/vocab/Vocabulary.java | 29 +-
.../messaging/saaj/SOAPExceptionImpl.java | 15 +-
.../saaj/client/p2p/HttpSOAPConnection.java | 15 +-
.../client/p2p/HttpSOAPConnectionFactory.java | 15 +-
.../saaj/client/p2p/LocalStrings.properties | 25 +
.../messaging/saaj/packaging/mime/Header.java | 7 +-
.../packaging/mime/MessagingException.java | 7 +-
.../packaging/mime/MultipartDataSource.java | 8 +-
.../mime/internet/BMMimeMultipart.java | 44 +-
.../mime/internet/ContentDisposition.java | 8 +-
.../packaging/mime/internet/ContentType.java | 8 +-
.../mime/internet/HeaderTokenizer.java | 8 +-
.../mime/internet/InternetHeaders.java | 7 +-
.../packaging/mime/internet/MimeBodyPart.java | 7 +-
.../mime/internet/MimeMultipart.java | 8 +-
.../mime/internet/MimePartDataSource.java | 7 +-
.../packaging/mime/internet/MimeUtility.java | 8 +-
.../mime/internet/ParameterList.java | 8 +-
.../mime/internet/ParseException.java | 7 +-
.../mime/internet/SharedInputStream.java | 8 +-
.../packaging/mime/internet/UniqueValue.java | 7 +-
.../packaging/mime/util/ASCIIUtility.java | 7 +-
.../mime/util/BASE64DecoderStream.java | 7 +-
.../mime/util/BASE64EncoderStream.java | 7 +-
.../packaging/mime/util/BEncoderStream.java | 7 +-
.../packaging/mime/util/LineInputStream.java | 7 +-
.../saaj/packaging/mime/util/OutputUtil.java | 7 +-
.../packaging/mime/util/QDecoderStream.java | 7 +-
.../packaging/mime/util/QEncoderStream.java | 7 +-
.../packaging/mime/util/QPDecoderStream.java | 7 +-
.../packaging/mime/util/QPEncoderStream.java | 7 +-
.../packaging/mime/util/UUDecoderStream.java | 7 +-
.../packaging/mime/util/UUEncoderStream.java | 7 +-
.../saaj/soap/AttachmentPartImpl.java | 18 +-
.../messaging/saaj/soap/Envelope.java | 15 +-
.../messaging/saaj/soap/EnvelopeFactory.java | 15 +-
.../soap/FastInfosetDataContentHandler.java | 15 +-
.../saaj/soap/GifDataContentHandler.java | 20 +-
.../saaj/soap/ImageDataContentHandler.java | 16 +-
.../saaj/soap/JpegDataContentHandler.java | 18 +-
.../saaj/soap/LocalStrings.properties | 25 +
.../saaj/soap/MessageFactoryImpl.java | 15 +-
.../messaging/saaj/soap/MessageImpl.java | 27 +-
.../soap/MultipartDataContentHandler.java | 15 +-
.../saaj/soap/SAAJMetaFactoryImpl.java | 3 +-
.../messaging/saaj/soap/SOAPDocument.java | 11 +-
.../saaj/soap/SOAPDocumentFragment.java | 11 +-
.../messaging/saaj/soap/SOAPDocumentImpl.java | 11 +-
.../messaging/saaj/soap/SOAPFactoryImpl.java | 15 +-
.../messaging/saaj/soap/SOAPIOException.java | 3 +-
.../messaging/saaj/soap/SOAPPartImpl.java | 15 +-
.../soap/SOAPVersionMismatchException.java | 15 +-
.../saaj/soap/StringDataContentHandler.java | 15 +-
.../saaj/soap/XmlDataContentHandler.java | 15 +-
.../soap/dynamic/SOAPFactoryDynamicImpl.java | 11 +-
.../SOAPMessageFactoryDynamicImpl.java | 11 +-
.../saaj/soap/impl/BodyElementImpl.java | 15 +-
.../messaging/saaj/soap/impl/BodyImpl.java | 15 +-
.../messaging/saaj/soap/impl/CDATAImpl.java | 15 +-
.../messaging/saaj/soap/impl/CommentImpl.java | 15 +-
.../saaj/soap/impl/DetailEntryImpl.java | 15 +-
.../messaging/saaj/soap/impl/DetailImpl.java | 15 +-
.../saaj/soap/impl/ElementFactory.java | 15 +-
.../messaging/saaj/soap/impl/ElementImpl.java | 55 +-
.../saaj/soap/impl/EnvelopeImpl.java | 15 +-
.../saaj/soap/impl/FaultElementImpl.java | 15 +-
.../messaging/saaj/soap/impl/FaultImpl.java | 25 +-
.../saaj/soap/impl/HeaderElementImpl.java | 15 +-
.../messaging/saaj/soap/impl/HeaderImpl.java | 15 +-
.../saaj/soap/impl/LocalStrings.properties | 25 +
.../messaging/saaj/soap/impl/TextImpl.java | 15 +-
.../saaj/soap/impl/TreeException.java | 15 +-
.../saaj/soap/name/LocalStrings.properties | 25 +
.../messaging/saaj/soap/name/NameImpl.java | 15 +-
.../saaj/soap/ver1_1/Body1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/BodyElement1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/Detail1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/DetailEntry1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/Envelope1_1Impl.java | 4 +-
.../saaj/soap/ver1_1/Fault1_1Impl.java | 24 +-
.../saaj/soap/ver1_1/FaultElement1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/Header1_1Impl.java | 11 +-
.../soap/ver1_1/HeaderElement1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/LocalStrings.properties | 25 +
.../saaj/soap/ver1_1/Message1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/SOAPFactory1_1Impl.java | 19 +-
.../ver1_1/SOAPMessageFactory1_1Impl.java | 11 +-
.../saaj/soap/ver1_1/SOAPPart1_1Impl.java | 11 +-
.../saaj/soap/ver1_2/Body1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/BodyElement1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/Detail1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/DetailEntry1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/Envelope1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/Fault1_2Impl.java | 27 +-
.../saaj/soap/ver1_2/FaultElement1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/Header1_2Impl.java | 11 +-
.../soap/ver1_2/HeaderElement1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/LocalStrings.properties | 25 +
.../saaj/soap/ver1_2/Message1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/SOAPFactory1_2Impl.java | 17 +-
.../ver1_2/SOAPMessageFactory1_2Impl.java | 11 +-
.../saaj/soap/ver1_2/SOAPPart1_2Impl.java | 11 +-
.../internal/messaging/saaj/util/Base64.java | 16 +-
.../messaging/saaj/util/ByteInputStream.java | 13 +-
.../messaging/saaj/util/ByteOutputStream.java | 13 +-
.../messaging/saaj/util/CharReader.java | 15 +-
.../messaging/saaj/util/CharWriter.java | 15 +-
.../saaj/util/FastInfosetReflection.java | 15 +-
.../messaging/saaj/util/FinalArrayList.java | 2 +-
.../messaging/saaj/util/JAXMStreamSource.java | 15 +-
.../internal/messaging/saaj/util/JaxmURI.java | 16 +-
.../saaj/util/LocalStrings.properties | 25 +
.../saaj/util/LogDomainConstants.java | 15 +-
.../messaging/saaj/util/MimeHeadersUtil.java | 11 +-
.../saaj/util/NamespaceContextIterator.java | 11 +-
.../messaging/saaj/util/ParseUtil.java | 15 +-
.../messaging/saaj/util/ParserPool.java | 15 +-
.../saaj/util/RejectDoctypeSaxFilter.java | 3 +-
.../messaging/saaj/util/TeeInputStream.java | 3 +-
.../saaj/util/XMLDeclarationParser.java | 4 +-
.../EfficientStreamingTransformer.java | 3 +-
.../jvnet/fastinfoset/EncodingAlgorithm.java | 30 +-
.../EncodingAlgorithmException.java | 30 +-
.../fastinfoset/EncodingAlgorithmIndexes.java | 29 +-
.../jvnet/fastinfoset/ExternalVocabulary.java | 29 +-
.../fastinfoset/FastInfosetException.java | 30 +-
.../jvnet/fastinfoset/FastInfosetParser.java | 71 +-
.../jvnet/fastinfoset/FastInfosetResult.java | 29 +-
.../fastinfoset/FastInfosetSerializer.java | 116 +-
.../jvnet/fastinfoset/FastInfosetSource.java | 29 +-
.../jvnet/fastinfoset/RestrictedAlphabet.java | 29 +-
.../org/jvnet/fastinfoset/Vocabulary.java | 29 +-
.../VocabularyApplicationData.java | 47 +
.../sax/EncodingAlgorithmAttributes.java | 48 +-
.../sax/EncodingAlgorithmContentHandler.java | 30 +-
.../sax/ExtendedContentHandler.java | 47 +
.../fastinfoset/sax/FastInfosetReader.java | 30 +-
.../fastinfoset/sax/FastInfosetWriter.java | 8 +-
.../sax/PrimitiveTypeContentHandler.java | 29 +-
.../sax/RestrictedAlphabetContentHandler.java | 30 +-
.../EncodingAlgorithmAttributesImpl.java | 109 +-
.../helpers/FastInfosetDefaultHandler.java | 30 +-
.../stax/FastInfosetStreamReader.java | 62 +
.../stax/LowLevelFastInfosetStreamWriter.java | 207 ++
.../internal/org/jvnet/staxex/Base64Data.java | 313 +++
.../org/jvnet/staxex/Base64Encoder.java | 100 +
.../jvnet/staxex/ByteArrayOutputStreamEx.java | 69 +
.../org/jvnet/staxex/NamespaceContextEx.java | 95 +
.../org/jvnet/staxex/XMLStreamReaderEx.java | 184 ++
.../org/jvnet/staxex/XMLStreamWriterEx.java | 158 ++
.../rngom/ast/builder/Annotations.java | 3 +-
.../rngom/ast/builder/BuildException.java | 3 +-
.../rngom/ast/builder/CommentList.java | 3 +-
.../rngom/ast/builder/DataPatternBuilder.java | 3 +-
.../xml/internal/rngom/ast/builder/Div.java | 3 +-
.../ast/builder/ElementAnnotationBuilder.java | 3 +-
.../internal/rngom/ast/builder/Grammar.java | 3 +-
.../rngom/ast/builder/GrammarSection.java | 3 +-
.../internal/rngom/ast/builder/Include.java | 3 +-
.../rngom/ast/builder/IncludedGrammar.java | 3 +-
.../rngom/ast/builder/NameClassBuilder.java | 3 +-
.../rngom/ast/builder/SchemaBuilder.java | 3 +-
.../xml/internal/rngom/ast/builder/Scope.java | 3 +-
.../xml/internal/rngom/ast/om/Location.java | 3 +-
.../rngom/ast/om/ParsedElementAnnotation.java | 3 +-
.../rngom/ast/om/ParsedNameClass.java | 3 +-
.../internal/rngom/ast/om/ParsedPattern.java | 3 +-
.../rngom/ast/util/CheckingSchemaBuilder.java | 3 +-
.../internal/rngom/ast/util/LocatorImpl.java | 3 +-
.../xml/internal/rngom/ast/util/package.html | 24 +
.../internal/rngom/binary/AfterPattern.java | 3 +-
.../xml/internal/rngom/binary/Alphabet.java | 3 +-
.../rngom/binary/AttributePattern.java | 3 +-
.../internal/rngom/binary/BinaryPattern.java | 3 +-
.../internal/rngom/binary/ChoicePattern.java | 3 +-
.../rngom/binary/DataExceptPattern.java | 3 +-
.../internal/rngom/binary/DataPattern.java | 3 +-
.../binary/DuplicateAttributeDetector.java | 3 +-
.../internal/rngom/binary/ElementPattern.java | 3 +-
.../internal/rngom/binary/EmptyPattern.java | 3 +-
.../internal/rngom/binary/ErrorPattern.java | 3 +-
.../internal/rngom/binary/GroupPattern.java | 3 +-
.../rngom/binary/InterleavePattern.java | 3 +-
.../internal/rngom/binary/ListPattern.java | 3 +-
.../internal/rngom/binary/Messages.properties | 25 +
.../rngom/binary/NotAllowedPattern.java | 3 +-
.../rngom/binary/OneOrMorePattern.java | 3 +-
.../xml/internal/rngom/binary/Pattern.java | 3 +-
.../internal/rngom/binary/PatternBuilder.java | 3 +-
.../rngom/binary/PatternInterner.java | 3 +-
.../xml/internal/rngom/binary/RefPattern.java | 3 +-
.../binary/RestrictionViolationException.java | 3 +-
.../rngom/binary/SchemaBuilderImpl.java | 9 +-
.../rngom/binary/SchemaPatternBuilder.java | 3 +-
.../internal/rngom/binary/StringPattern.java | 3 +-
.../internal/rngom/binary/TextPattern.java | 3 +-
.../internal/rngom/binary/ValuePattern.java | 3 +-
.../xml/internal/rngom/binary/package.html | 24 +
.../binary/visitor/ChildElementFinder.java | 3 +-
.../rngom/binary/visitor/PatternFunction.java | 3 +-
.../rngom/binary/visitor/PatternVisitor.java | 3 +-
.../rngom/binary/visitor/PatternWalker.java | 3 +-
.../internal/rngom/digested/Annotation.java | 3 +-
.../rngom/digested/CommentListImpl.java | 3 +-
.../internal/rngom/digested/DAnnotation.java | 3 +-
.../rngom/digested/DAttributePattern.java | 3 +-
.../rngom/digested/DChoicePattern.java | 3 +-
.../rngom/digested/DContainerPattern.java | 3 +-
.../internal/rngom/digested/DDataPattern.java | 3 +-
.../xml/internal/rngom/digested/DDefine.java | 3 +-
.../rngom/digested/DElementPattern.java | 3 +-
.../rngom/digested/DEmptyPattern.java | 3 +-
.../rngom/digested/DGrammarPattern.java | 3 +-
.../rngom/digested/DGroupPattern.java | 3 +-
.../rngom/digested/DInterleavePattern.java | 3 +-
.../internal/rngom/digested/DListPattern.java | 3 +-
.../rngom/digested/DMixedPattern.java | 3 +-
.../rngom/digested/DNotAllowedPattern.java | 3 +-
.../internal/rngom/digested/DOMPrinter.java | 3 +-
.../rngom/digested/DOneOrMorePattern.java | 3 +-
.../rngom/digested/DOptionalPattern.java | 3 +-
.../xml/internal/rngom/digested/DPattern.java | 3 +-
.../rngom/digested/DPatternVisitor.java | 3 +-
.../rngom/digested/DPatternWalker.java | 3 +-
.../internal/rngom/digested/DRefPattern.java | 3 +-
.../rngom/digested/DSchemaBuilderImpl.java | 3 +-
.../internal/rngom/digested/DTextPattern.java | 3 +-
.../rngom/digested/DUnaryPattern.java | 3 +-
.../rngom/digested/DValuePattern.java | 3 +-
.../internal/rngom/digested/DXMLPrinter.java | 3 +-
.../rngom/digested/DXmlTokenPattern.java | 3 +-
.../rngom/digested/DZeroOrMorePattern.java | 3 +-
.../digested/DataPatternBuilderImpl.java | 3 +-
.../ElementAnnotationBuilderImpl.java | 3 +-
.../rngom/digested/ElementWrapper.java | 3 +-
.../rngom/digested/GrammarBuilderImpl.java | 3 +-
.../internal/rngom/digested/IncludeImpl.java | 3 +-
.../sun/xml/internal/rngom/digested/Main.java | 3 +-
.../rngom/digested/PatternParseable.java | 3 +-
.../xml/internal/rngom/digested/package.html | 24 +
.../dt/CachedDatatypeLibraryFactory.java | 3 +-
.../dt/CascadingDatatypeLibraryFactory.java | 3 +-
.../DoNothingDatatypeLibraryFactoryImpl.java | 3 +-
.../dt/builtin/BuiltinDatatypeBuilder.java | 3 +-
.../dt/builtin/BuiltinDatatypeLibrary.java | 3 +-
.../BuiltinDatatypeLibraryFactory.java | 3 +-
.../builtin/CompatibilityDatatypeLibrary.java | 3 +-
.../rngom/dt/builtin/Messages.properties | 25 +
.../internal/rngom/dt/builtin/package.html | 24 +
.../xml/internal/rngom/nc/AnyNameClass.java | 3 +-
.../rngom/nc/AnyNameExceptNameClass.java | 3 +-
.../internal/rngom/nc/ChoiceNameClass.java | 3 +-
.../sun/xml/internal/rngom/nc/NameClass.java | 3 +-
.../rngom/nc/NameClassBuilderImpl.java | 3 +-
.../internal/rngom/nc/NameClassVisitor.java | 3 +-
.../internal/rngom/nc/NameClassWalker.java | 3 +-
.../xml/internal/rngom/nc/NsNameClass.java | 3 +-
.../rngom/nc/NsNameExceptNameClass.java | 3 +-
.../xml/internal/rngom/nc/NullNameClass.java | 3 +-
.../internal/rngom/nc/OverlapDetector.java | 3 +-
.../internal/rngom/nc/SimpleNameClass.java | 3 +-
.../sun/xml/internal/rngom/nc/package.html | 24 +
.../sun/xml/internal/rngom/parse/Context.java | 3 +-
.../rngom/parse/IllegalSchemaException.java | 3 +-
.../internal/rngom/parse/Messages.properties | 25 +
.../xml/internal/rngom/parse/Parseable.java | 3 +-
.../rngom/parse/compact/CompactParseable.java | 3 +-
.../rngom/parse/compact/CompactSyntax.java | 3 +-
.../parse/compact/CompactSyntaxConstants.java | 3 +-
.../compact/CompactSyntaxTokenManager.java | 3 +-
.../rngom/parse/compact/EOFException.java | 3 +-
.../parse/compact/EscapeSyntaxException.java | 3 +-
.../rngom/parse/compact/JavaCharStream.java | 3 +-
.../rngom/parse/compact/Messages.properties | 25 +
.../rngom/parse/compact/ParseException.java | 3 +-
.../internal/rngom/parse/compact/Token.java | 3 +-
.../rngom/parse/compact/TokenMgrError.java | 3 +-
.../compact/UCode_UCodeESC_CharStream.java | 3 +-
.../rngom/parse/host/AnnotationsHost.java | 3 +-
.../xml/internal/rngom/parse/host/Base.java | 3 +-
.../rngom/parse/host/CommentListHost.java | 3 +-
.../parse/host/DataPatternBuilderHost.java | 3 +-
.../internal/rngom/parse/host/DivHost.java | 3 +-
.../host/ElementAnnotationBuilderHost.java | 3 +-
.../rngom/parse/host/GrammarHost.java | 3 +-
.../rngom/parse/host/GrammarSectionHost.java | 3 +-
.../rngom/parse/host/IncludeHost.java | 3 +-
.../rngom/parse/host/LocationHost.java | 3 +-
.../parse/host/NameClassBuilderHost.java | 3 +-
.../host/ParsedElementAnnotationHost.java | 3 +-
.../rngom/parse/host/ParsedNameClassHost.java | 3 +-
.../rngom/parse/host/ParsedPatternHost.java | 3 +-
.../rngom/parse/host/SchemaBuilderHost.java | 3 +-
.../internal/rngom/parse/host/ScopeHost.java | 3 +-
.../internal/rngom/parse/host/package.html | 24 +
.../internal/rngom/parse/xml/DtdContext.java | 3 +-
.../rngom/parse/xml/Messages.properties | 25 +
.../rngom/parse/xml/SAXParseable.java | 3 +-
.../rngom/parse/xml/SchemaParser.java | 3 +-
.../xml/internal/rngom/util/Localizer.java | 3 +-
.../com/sun/xml/internal/rngom/util/Uri.java | 3 +-
.../sun/xml/internal/rngom/util/Utf16.java | 3 +-
.../rngom/xml/sax/AbstractLexicalHandler.java | 3 +-
.../rngom/xml/sax/JAXPXMLReaderCreator.java | 3 +-
.../rngom/xml/sax/XMLReaderCreator.java | 3 +-
.../rngom/xml/sax/XmlBaseHandler.java | 3 +-
.../internal/rngom/xml/util/EncodingMap.java | 3 +-
.../xml/internal/rngom/xml/util/Naming.java | 3 +-
.../rngom/xml/util/WellKnownNamespaces.java | 3 +-
.../stream/buffer/AbstractCreator.java | 188 ++
.../buffer/AbstractCreatorProcessor.java | 140 +
.../stream/buffer/AbstractProcessor.java | 246 ++
.../stream/buffer/AttributesHolder.java | 192 ++
.../stream/buffer/FragmentedArray.java} | 75 +-
.../stream/buffer/MutableXMLStreamBuffer.java | 246 ++
.../stream/buffer/XMLStreamBuffer.java | 473 ++++
.../buffer/XMLStreamBufferException.java | 40 +
.../stream/buffer/XMLStreamBufferMark.java | 76 +
.../stream/buffer/XMLStreamBufferResult.java | 117 +
.../stream/buffer/XMLStreamBufferSource.java | 102 +
.../sax/DefaultWithLexicalHandler.java} | 32 +-
.../internal/stream/buffer/sax/Features.java} | 27 +-
.../stream/buffer/sax/Properties.java | 33 +
.../stream/buffer/sax/SAXBufferCreator.java | 265 ++
.../stream/buffer/sax/SAXBufferProcessor.java | 671 +++++
.../buffer/stax/NamespaceContexHelper.java | 289 ++
.../buffer/stax/StreamBufferCreator.java | 81 +
.../stax/StreamReaderBufferCreator.java | 339 +++
.../stax/StreamReaderBufferProcessor.java | 1081 ++++++++
.../stax/StreamWriterBufferCreator.java | 269 ++
.../stax/StreamWriterBufferProcessor.java | 464 ++++
.../com/sun/xml/internal/txw2/Attribute.java | 3 +-
.../com/sun/xml/internal/txw2/Cdata.java | 3 +-
.../com/sun/xml/internal/txw2/Comment.java | 3 +-
.../xml/internal/txw2/ContainerElement.java | 3 +-
.../com/sun/xml/internal/txw2/Content.java | 3 +-
.../sun/xml/internal/txw2/ContentVisitor.java | 3 +-
.../sun/xml/internal/txw2/DatatypeWriter.java | 3 +-
.../com/sun/xml/internal/txw2/Document.java | 3 +-
.../sun/xml/internal/txw2/EndDocument.java | 3 +-
.../com/sun/xml/internal/txw2/EndTag.java | 3 +-
.../txw2/IllegalAnnotationException.java | 3 +-
.../txw2/IllegalSignatureException.java | 3 +-
.../sun/xml/internal/txw2/NamespaceDecl.java | 3 +-
.../xml/internal/txw2/NamespaceResolver.java | 3 +-
.../xml/internal/txw2/NamespaceSupport.java | 4 +-
.../com/sun/xml/internal/txw2/Pcdata.java | 3 +-
.../sun/xml/internal/txw2/StartDocument.java | 3 +-
.../com/sun/xml/internal/txw2/StartTag.java | 3 +-
.../com/sun/xml/internal/txw2/TXW.java | 3 +-
.../com/sun/xml/internal/txw2/Text.java | 3 +-
.../sun/xml/internal/txw2/TxwException.java | 3 +-
.../sun/xml/internal/txw2/TypedXmlWriter.java | 3 +-
.../txw2/annotation/XmlAttribute.java | 3 +-
.../internal/txw2/annotation/XmlCDATA.java | 3 +-
.../internal/txw2/annotation/XmlElement.java | 3 +-
.../txw2/annotation/XmlNamespace.java | 3 +-
.../internal/txw2/annotation/XmlValue.java | 3 +-
.../xml/internal/txw2/annotation/package.html | 24 +
.../txw2/output/CharacterEscapeHandler.java | 4 +-
.../xml/internal/txw2/output/DataWriter.java | 4 +-
.../output/DelegatingXMLStreamWriter.java | 170 ++
.../internal/txw2/output/DomSerializer.java | 9 +-
.../txw2/output/DumbEscapeHandler.java | 4 +-
.../internal/txw2/output/DumpSerializer.java | 3 +-
.../txw2/output/IndentingXMLFilter.java | 311 +++
.../txw2/output/IndentingXMLStreamWriter.java | 194 ++
.../internal/txw2/output/ResultFactory.java | 3 +-
.../internal/txw2/output/SaxSerializer.java | 19 +-
.../internal/txw2/output/StaxSerializer.java | 9 +-
.../txw2/output/StreamSerializer.java | 7 +-
.../xml/internal/txw2/output/XMLWriter.java | 4 +-
.../internal/txw2/output/XmlSerializer.java | 2 +-
.../sun/xml/internal/txw2/output/package.html | 24 +
.../com/sun/xml/internal/txw2/package.html | 24 +
.../com/sun/xml/internal/ws/Closeable.java | 61 +
.../ws/addressing/EndpointReferenceUtil.java | 368 +++
.../internal/ws/addressing/ProblemAction.java | 65 +
.../ws/addressing/ProblemHeaderQName.java | 49 +
.../ws/addressing/W3CAddressingConstants.java | 115 +
.../internal/ws/addressing/WsaClientTube.java | 104 +
.../internal/ws/addressing/WsaServerTube.java | 353 +++
.../xml/internal/ws/addressing/WsaTube.java | 346 +++
.../internal/ws/addressing/WsaTubeHelper.java | 330 +++
.../ws/addressing/WsaTubeHelperImpl.java | 89 +
.../model/ActionNotSupportedException.java} | 28 +-
.../model/InvalidMapException.java} | 29 +-
.../model/MapRequiredException.java} | 19 +-
.../MemberSubmissionAddressingConstants.java | 77 +
.../ws/addressing/v200408/ProblemAction.java} | 54 +-
.../v200408/ProblemHeaderQName.java | 49 +
.../addressing/v200408/WsaTubeHelperImpl.java | 90 +
.../sun/xml/internal/ws/api/BindingID.java | 411 +++
.../xml/internal/ws/api/BindingIDFactory.java | 66 +
.../ws/api/DistributedPropertySet.java | 145 +
.../xml/internal/ws/api/EndpointAddress.java | 205 ++
.../internal/ws/api/FeatureConstructor.java | 66 +
.../sun/xml/internal/ws/api/PropertySet.java | 422 +++
.../sun/xml/internal/ws/api/SOAPVersion.java | 219 ++
.../sun/xml/internal/ws/api/WSBinding.java | 123 +
.../internal/ws/api/WSFeatureList.java} | 63 +-
.../sun/xml/internal/ws/api/WSService.java | 148 +
.../ws/api/addressing/AddressingVersion.java | 744 +++++
.../internal/ws/api/addressing/EPRHeader.java | 110 +
.../ws/api/addressing/OneWayFeature.java | 165 ++
.../OutboundReferenceParameterHeader.java | 330 +++
.../api/addressing/WSEndpointReference.java | 954 +++++++
.../ws/api/addressing/package-info.java | 28 +
.../ws/api/client/ClientPipelineHook.java | 73 +
.../client/SelectOptimalEncodingFeature.java | 89 +
.../ws/api/client/ServiceInterceptor.java | 127 +
.../api/client/ServiceInterceptorFactory.java | 102 +
.../internal/ws/api/client/WSPortInfo.java | 64 +
.../api/fastinfoset/FastInfosetFeature.java | 78 +
.../internal/ws/api/message/Attachment.java | 86 +
.../ws/api/message/AttachmentSet.java | 70 +
.../message/ExceptionHasMessage.java} | 27 +-
.../xml/internal/ws/api/message/Header.java | 325 +++
.../internal/ws/api/message/HeaderList.java | 794 ++++++
.../xml/internal/ws/api/message/Headers.java | 159 ++
.../xml/internal/ws/api/message/Message.java | 672 +++++
.../xml/internal/ws/api/message/Messages.java | 360 +++
.../xml/internal/ws/api/message/Packet.java | 763 +++++
.../message/package-info.java} | 10 +-
.../message/stream/InputStreamMessage.java | 89 +
.../message/stream/StreamBasedMessage.java} | 70 +-
.../stream/XMLStreamReaderMessage.java | 73 +
.../ws/api/model/CheckedException.java | 100 +
.../internal/ws/api/model/ExceptionType.java | 52 +
.../xml/internal/ws/api/model/JavaMethod.java | 122 +
.../internal/ws/api/model/MEP.java} | 36 +-
.../xml/internal/ws/api/model/Parameter.java | 163 ++
.../ws/{ => api}/model/ParameterBinding.java | 39 +-
.../xml/internal/ws/api/model/SEIModel.java | 171 ++
.../ws/api/model/soap/SOAPBinding.java | 101 +
.../ws/api/model/wsdl/WSDLBoundOperation.java | 67 +
.../ws/api/model/wsdl/WSDLBoundPortType.java | 106 +
.../ws/api/model/wsdl/WSDLDescriptorKind.java | 60 +
.../ws/api/model/wsdl/WSDLExtensible.java | 85 +
.../ws/api/model/wsdl/WSDLExtension.java | 48 +
.../model/wsdl/WSDLFault.java} | 27 +-
.../ws/api/model/wsdl/WSDLFeaturedObject.java | 61 +
.../model/wsdl/WSDLInput.java} | 52 +-
.../ws/api/model/wsdl/WSDLMessage.java} | 19 +-
.../internal/ws/api/model/wsdl/WSDLModel.java | 124 +
.../ws/api/model/wsdl/WSDLObject.java} | 28 +-
.../ws/api/model/wsdl/WSDLOperation.java | 115 +
.../model/wsdl/WSDLOutput.java} | 55 +-
.../internal/ws/api/model/wsdl/WSDLPart.java | 56 +
.../model/wsdl/WSDLPartDescriptor.java} | 32 +-
.../model/wsdl/WSDLPort.java} | 66 +-
.../ws/api/model/wsdl/WSDLPortType.java | 58 +
.../ws/api/model/wsdl/WSDLService.java | 68 +
.../Stub.java => api/package-info.java} | 49 +-
.../api/pipe/ClientPipeAssemblerContext.java | 102 +
.../api/pipe/ClientTubeAssemblerContext.java | 231 ++
.../sun/xml/internal/ws/api/pipe/Codec.java | 238 ++
.../sun/xml/internal/ws/api/pipe/Codecs.java | 82 +
.../xml/internal/ws/api/pipe/ContentType.java | 60 +
.../sun/xml/internal/ws/api/pipe/Engine.java | 90 +
.../sun/xml/internal/ws/api/pipe/Fiber.java | 771 ++++++
.../pipe/FiberContextSwitchInterceptor.java | 105 +
.../xml/internal/ws/api/pipe/NextAction.java | 139 +
.../sun/xml/internal/ws/api/pipe/Pipe.java | 346 +++
.../xml/internal/ws/api/pipe/PipeCloner.java | 81 +
.../ws/api/pipe/PipelineAssembler.java | 119 +
.../ws/api/pipe/PipelineAssemblerFactory.java | 96 +
.../ws/api/pipe/SOAPBindingCodec.java} | 20 +-
.../api/pipe/ServerPipeAssemblerContext.java | 108 +
.../api/pipe/ServerTubeAssemblerContext.java | 234 ++
.../pipe/StreamSOAPCodec.java} | 34 +-
.../sun/xml/internal/ws/api/pipe/Stubs.java | 253 ++
.../ws/api/pipe/TransportPipeFactory.java | 116 +
.../ws/api/pipe/TransportTubeFactory.java | 137 +
.../sun/xml/internal/ws/api/pipe/Tube.java | 397 +++
.../xml/internal/ws/api/pipe/TubeCloner.java | 113 +
.../ws/api/pipe/TubelineAssembler.java | 104 +
.../ws/api/pipe/TubelineAssemblerFactory.java | 134 +
.../pipe/helper/AbstractFilterPipeImpl.java | 121 +
.../pipe/helper/AbstractFilterTubeImpl.java | 80 +
.../ws/api/pipe/helper/AbstractPipeImpl.java} | 53 +-
.../ws/api/pipe/helper/AbstractTubeImpl.java | 107 +
.../ws/api/pipe/helper/PipeAdapter.java | 127 +
.../ws/api/pipe/helper/package-info.java | 35 +
.../internal/ws/api/pipe/package-info.java | 29 +
.../server/AbstractServerAsyncTransport.java | 159 ++
.../xml/internal/ws/api/server/Adapter.java | 132 +
.../internal/ws/api/server/AsyncProvider.java | 116 +
.../ws/api/server/AsyncProviderCallback.java | 65 +
.../ws/api/server/BoundEndpoint.java} | 44 +-
.../xml/internal/ws/api/server/Container.java | 97 +
.../ws/api/server/ContainerResolver.java | 94 +
.../api/server/DocumentAddressResolver.java | 78 +
.../ws/api/server/EndpointAwareCodec.java} | 24 +-
.../ws/api/server/InstanceResolver.java | 230 ++
.../server/InstanceResolverAnnotation.java | 61 +
.../xml/internal/ws/api/server/Invoker.java | 126 +
.../xml/internal/ws/api/server/Module.java | 73 +
.../ws/api/server/PortAddressResolver.java | 62 +
.../ws/api/server/ResourceInjector.java | 73 +
.../internal/ws/api/server/SDDocument.java | 154 ++
.../ws/api/server/SDDocumentFilter.java | 55 +
.../ws/api/server/SDDocumentSource.java | 132 +
.../ws/api/server/ServerPipelineHook.java | 99 +
.../ws/api/server/ServiceDefinition.java | 79 +
.../ws/api/server/TransportBackChannel.java | 66 +
.../internal/ws/api/server/WSEndpoint.java | 485 ++++
.../ws/api/server/WSWebServiceContext.java | 52 +
.../xml/internal/ws/api/server/WebModule.java | 56 +
.../api/server/WebServiceContextDelegate.java | 151 +
.../internal/ws/api/server/package-info.java | 31 +
.../api/streaming/XMLStreamReaderFactory.java | 367 +++
.../api/streaming/XMLStreamWriterFactory.java | 305 ++
.../ws/api/wsdl/parser/MetaDataResolver.java | 50 +
.../wsdl/parser/MetadataResolverFactory.java | 53 +
.../wsdl/parser/ServiceDescriptor.java} | 38 +-
.../api/wsdl/parser/WSDLParserExtension.java | 282 ++
.../parser/WSDLParserExtensionContext.java | 46 +
.../ws/api/wsdl/parser/XMLEntityResolver.java | 77 +
.../ws/api/wsdl/parser/package-info.java | 29 +
.../api/wsdl/writer/WSDLGenExtnContext.java | 90 +
.../wsdl/writer/WSDLGeneratorExtension.java | 270 ++
.../xml/internal/ws/binding/BindingImpl.java | 245 +-
.../binding/{http => }/HTTPBindingImpl.java | 64 +-
.../internal/ws/binding/SOAPBindingImpl.java | 188 ++
.../ws/binding/WebServiceFeatureList.java | 309 +++
.../ws/binding/soap/SOAPBindingImpl.java | 226 --
.../ws/client/AsyncHandlerService.java | 68 -
.../AsyncInvoker.java} | 31 +-
.../internal/ws/client/AsyncResponseImpl.java | 130 +
.../ws/client/BindingProviderProperties.java | 85 +-
.../ws/client/ClientTransportException.java | 12 +-
.../internal/ws/client/ContactInfoBase.java | 136 -
.../ws/client/ContactInfoListImpl.java | 64 -
.../ws/client/ContentNegotiation.java | 77 +-
.../xml/internal/ws/client/ContextMap.java | 248 --
.../internal/ws/client/EndpointIFBase.java | 137 -
.../internal/ws/client/EndpointIFContext.java | 123 -
.../client/EndpointIFInvocationHandler.java | 215 --
.../ws/client/HandlerConfiguration.java | 115 +
.../ws/client/HandlerConfigurator.java | 182 ++
.../sun/xml/internal/ws/client/PortInfo.java | 170 ++
.../xml/internal/ws/client/PortInfoBase.java | 87 -
.../internal/ws/client/RequestContext.java | 359 ++-
.../internal/ws/client/ResponseContext.java | 139 +-
...ider.java => ResponseContextReceiver.java} | 24 +-
.../xml/internal/ws/client/ResponseImpl.java | 118 +
.../xml/internal/ws/client/SCAnnotations.java | 88 +
.../xml/internal/ws/client/SEIPortInfo.java | 68 +
.../internal/ws/client/SenderException.java | 4 +-
.../internal/ws/client/ServiceContext.java | 148 -
.../ws/client/ServiceContextBuilder.java | 157 --
.../com/sun/xml/internal/ws/client/Stub.java | 406 +++
.../internal/ws/client/WSServiceDelegate.java | 750 +++--
.../client/dispatch/DataSourceDispatch.java | 79 +
.../ws/client/dispatch/DispatchBase.java | 710 -----
.../ws/client/dispatch/DispatchContext.java | 80 -
.../ws/client/dispatch/DispatchImpl.java | 457 +++
.../ws/client/dispatch/JAXBDispatch.java | 113 +
.../ws/client/dispatch/MessageDispatch.java | 60 +
.../client/dispatch/RESTSourceDispatch.java | 80 +
.../ws/client/dispatch/ResponseImpl.java | 132 -
.../client/dispatch/SOAPMessageDispatch.java | 101 +
.../client/dispatch/SOAPSourceDispatch.java | 98 +
.../impl/DispatchContactInfoList.java | 73 -
.../dispatch/impl/DispatchDelegate.java | 119 -
.../impl/encoding/DispatchSerializer.java | 326 ---
.../dispatch/impl/encoding/DispatchUtil.java | 72 -
.../protocol/MessageDispatcherHelper.java | 76 -
.../xml/internal/ws/client/package-info.java | 146 +-
.../internal/ws/client/sei/AsyncBuilder.java | 244 ++
.../ws/client/sei/AsyncMethodHandler.java | 243 ++
.../internal/ws/client/sei/BodyBuilder.java | 285 ++
.../ws/client/sei/CallbackMethodHandler.java | 56 +
.../internal/ws/client/sei/MessageFiller.java | 178 ++
.../internal/ws/client/sei/MethodHandler.java | 67 +
.../ws/client/sei/PollingMethodHandler.java | 45 +
.../ws/client/sei/ResponseBuilder.java | 649 +++++
.../xml/internal/ws/client/sei/SEIStub.java | 142 +
.../ws/client/sei/SyncMethodHandler.java | 266 ++
.../internal/ws/client/sei/ValueGetter.java | 90 +
.../internal/ws/client/sei/ValueSetter.java | 128 +
.../internal/ws/client/sei/package-info.java | 29 +
.../xml/internal/ws/developer/EPRRecipe.java | 132 +
.../ws/developer/JAXWSProperties.java | 78 +-
.../developer/MemberSubmissionAddressing.java | 93 +
.../MemberSubmissionAddressingFeature.java | 97 +
.../MemberSubmissionEndpointReference.java | 200 ++
.../ws/developer/ServerSideException.java} | 43 +-
.../Encoder.java => developer/Stateful.java} | 65 +-
.../ws/developer/StatefulFeature.java} | 47 +-
.../developer/StatefulWebServiceManager.java | 381 +++
.../ws/developer/WSBindingProvider.java | 102 +
.../internal/ws/developer/package-info.java | 29 +
.../AbstractXMLStreamWriterExImpl.java | 83 +
.../internal/ws/encoding/ContentTypeImpl.java | 79 +
.../ws/encoding/EncoderDecoderBase.java | 140 -
.../encoding/JAXWSAttachmentMarshaller.java | 227 --
.../encoding/JAXWSAttachmentUnmarshaller.java | 121 -
.../xml/internal/ws/encoding/MimeCodec.java | 154 ++
.../ws/encoding/MimeMultipartParser.java | 480 ++++
.../xml/internal/ws/encoding/MtomCodec.java | 560 ++++
.../ws/encoding/SOAPBindingCodec.java | 439 +++
.../ws/encoding/StreamSOAP11Codec.java | 73 +
.../ws/encoding/StreamSOAP12Codec.java | 78 +
.../internal/ws/encoding/StreamSOAPCodec.java | 304 ++
.../xml/internal/ws/encoding/SwACodec.java | 74 +
.../xml/internal/ws/encoding/TagInfoset.java | 219 ++
.../ws/encoding/XMLHTTPBindingCodec.java | 363 +++
.../fastinfoset/FastInfosetCodec.java | 281 ++
.../fastinfoset/FastInfosetMIMETypes.java} | 64 +-
.../FastInfosetStreamReaderFactory.java | 71 +
.../FastInfosetStreamReaderRecyclable.java} | 34 +-
.../FastInfosetStreamSOAP11Codec.java | 69 +
.../FastInfosetStreamSOAP12Codec.java | 70 +
.../FastInfosetStreamSOAPCodec.java | 178 ++
.../ws/encoding/internal/InternalEncoder.java | 34 -
.../ws/encoding/jaxb/JAXBBeanInfo.java | 111 -
.../ws/encoding/jaxb/JAXBBridgeInfo.java | 153 -
.../ws/encoding/jaxb/JAXBTypeSerializer.java | 219 --
.../ws/encoding/jaxb/RpcLitPayload.java | 78 -
.../jaxb/RpcLitPayloadSerializer.java | 138 -
.../ws/encoding/simpletype/EncoderUtils.java | 142 -
.../encoding/soap/ClientEncoderDecoder.java | 343 ---
.../soap/DeserializationException.java | 4 +-
.../ws/encoding/soap/EncoderDecoder.java | 406 ---
.../ws/encoding/soap/SOAP12Constants.java | 8 +-
.../ws/encoding/soap/SOAPConstants.java | 8 +-
.../ws/encoding/soap/SOAPDecoder.java | 680 -----
.../ws/encoding/soap/SOAPEncoder.java | 780 ------
.../encoding/soap/SerializationException.java | 4 +-
.../ws/encoding/soap/SerializerConstants.java | 2 +-
.../encoding/soap/ServerEncoderDecoder.java | 236 --
.../soap/client/SOAP12XMLDecoder.java | 350 ---
.../soap/client/SOAP12XMLEncoder.java | 135 -
.../encoding/soap/client/SOAPXMLDecoder.java | 581 ----
.../encoding/soap/client/SOAPXMLEncoder.java | 265 --
.../soap/internal/AttachmentBlock.java | 435 ---
.../ws/encoding/soap/internal/BodyBlock.java | 86 -
.../encoding/soap/internal/DelegateBase.java | 102 -
.../soap/internal/InternalMessage.java | 103 -
.../soap/internal/MessageInfoBase.java | 195 --
.../SOAP12NotUnderstoodHeaderBlock.java | 72 -
.../ws/encoding/soap/message/FaultCode.java | 93 -
.../encoding/soap/message/FaultCodeEnum.java | 74 -
.../ws/encoding/soap/message/FaultReason.java | 70 -
.../soap/message/FaultReasonText.java | 69 -
.../encoding/soap/message/FaultSubcode.java | 102 -
.../soap/message/SOAP12FaultInfo.java | 241 --
.../encoding/soap/message/SOAPFaultInfo.java | 104 -
.../ws/encoding/soap/server/ProviderSED.java | 84 -
.../soap/server/SOAP12XMLDecoder.java | 188 --
.../soap/server/SOAP12XMLEncoder.java | 135 -
.../encoding/soap/server/SOAPXMLDecoder.java | 204 --
.../encoding/soap/server/SOAPXMLEncoder.java | 253 --
.../streaming/SOAP12NamespaceConstants.java | 2 +-
.../streaming/SOAPNamespaceConstants.java | 2 +-
.../internal/ws/encoding/xml/XMLCodec.java | 90 +
.../internal/ws/encoding/xml/XMLDecoder.java | 116 -
.../ws/encoding/xml/XMLEPTFactory.java | 38 -
.../internal/ws/encoding/xml/XMLEncoder.java | 87 -
.../internal/ws/encoding/xml/XMLMessage.java | 1184 +++-----
.../sun/xml/internal/ws/fault/CodeType.java | 87 +
.../sun/xml/internal/ws/fault/DetailType.java | 82 +
.../xml/internal/ws/fault/ExceptionBean.java | 193 ++
.../ReasonType.java} | 41 +-
.../xml/internal/ws/fault/SOAP11Fault.java | 179 ++
.../xml/internal/ws/fault/SOAP12Fault.java | 213 ++
.../internal/ws/fault/SOAPFaultBuilder.java | 496 ++++
.../xml/internal/ws/fault/SubcodeType.java | 84 +
.../sun/xml/internal/ws/fault/TextType.java | 59 +
.../ws/handler/ClientLogicalHandlerTube.java | 196 ++
.../ws/handler/ClientSOAPHandlerTube.java | 197 ++
.../ws/handler/HandlerChainCaller.java | 1064 -------
.../ws/handler/HandlerChainsModel.java | 116 +-
.../internal/ws/handler/HandlerContext.java | 174 --
.../internal/ws/handler/HandlerException.java | 4 +-
.../internal/ws/handler/HandlerProcessor.java | 411 +++
.../ws/handler/HandlerResolverImpl.java | 129 -
.../xml/internal/ws/handler/HandlerTube.java | 280 ++
.../ws/handler/LogicalMessageContextImpl.java | 119 +-
.../ws/handler/LogicalMessageImpl.java | 257 +-
.../ws/handler/MessageContextImpl.java | 196 +-
.../ws/handler/MessageContextUtil.java | 151 -
...Impl.java => MessageUpdatableContext.java} | 78 +-
.../xml/internal/ws/handler/PortInfoImpl.java | 20 +-
.../ws/handler/SHDSOAPMessageContext.java | 116 -
.../ws/handler/SOAPHandlerContext.java | 112 -
.../ws/handler/SOAPHandlerProcessor.java | 101 +
.../ws/handler/SOAPMessageContextImpl.java | 208 +-
.../ws/handler/ServerLogicalHandlerTube.java | 199 ++
.../ws/handler/ServerSOAPHandlerTube.java | 206 ++
.../ws/handler/XMLHandlerContext.java | 124 -
.../ws/handler/XMLHandlerProcessor.java | 70 +
.../ws/handler/XMLLogicalMessageImpl.java | 91 -
.../xml/internal/ws/handler/package-info.java | 101 -
.../ws/message/AbstractHeaderImpl.java | 142 +
.../ws/message/AbstractMessageImpl.java | 221 ++
.../ws/message/AttachmentSetImpl.java | 81 +
.../message/AttachmentUnmarshallerImpl.java | 82 +
.../ws/message/ByteArrayAttachment.java | 110 +
.../xml/internal/ws/message/DOMHeader.java | 121 +
.../xml/internal/ws/message/DOMMessage.java | 149 +
.../ws/message/DataHandlerAttachment.java | 113 +
.../internal/ws/message/EmptyMessageImpl.java | 126 +
.../ws/message/FaultDetailHeader.java | 117 +
.../internal/ws/message/JAXBAttachment.java | 127 +
.../ws/message/MimeAttachmentSet.java | 111 +
.../ws/message/ProblemActionHeader.java | 135 +
.../internal/ws/message/RelatesToHeader.java | 81 +
.../ws/message/RootElementSniffer.java | 81 +
.../xml/internal/ws/message/StringHeader.java | 109 +
.../runtime/Tie.java => message/Util.java} | 28 +-
.../internal/ws/message/XMLReaderImpl.java | 81 +
.../jaxb/AttachmentMarshallerImpl.java | 100 +
.../ws/message/jaxb/JAXBBridgeSource.java | 125 +
.../internal/ws/message/jaxb/JAXBHeader.java | 194 ++
.../internal/ws/message/jaxb/JAXBMessage.java | 313 +++
.../ws/message/jaxb/MarshallerBridge.java | 121 +
.../ws/message/jaxb/package-info.java} | 24 +-
.../package-info.java} | 13 +-
.../internal/ws/message/saaj/SAAJHeader.java | 54 +
.../internal/ws/message/saaj/SAAJMessage.java | 504 ++++
.../message/source/PayloadSourceMessage.java | 59 +
.../message/source/ProtocolSourceMessage.java | 130 +
.../ws/message/source/SourceUtils.java | 253 ++
.../message/stream/OutboundStreamHeader.java | 167 ++
.../stream/PayloadStreamReaderMessage.java | 116 +
.../ws/message/stream/StreamAttachment.java | 107 +
.../ws/message/stream/StreamHeader.java | 233 ++
.../ws/message/stream/StreamHeader11.java | 82 +
.../ws/message/stream/StreamHeader12.java | 87 +
.../ws/message/stream/StreamMessage.java | 446 +++
.../ws/model/AbstractSEIModelImpl.java | 490 ++++
...ception.java => CheckedExceptionImpl.java} | 59 +-
.../sun/xml/internal/ws/model/JavaMethod.java | 236 --
.../xml/internal/ws/model/JavaMethodImpl.java | 326 +++
.../{Parameter.java => ParameterImpl.java} | 94 +-
.../xml/internal/ws/model/RuntimeModel.java | 621 -----
.../ws/{modeler => model}/RuntimeModeler.java | 632 ++---
.../RuntimeModelerException.java | 6 +-
.../xml/internal/ws/model/SOAPSEIModel.java | 95 +
.../internal/ws/model/WrapperParameter.java | 80 +-
.../internal/ws/model/soap/SOAPBinding.java | 130 -
.../ws/model/soap/SOAPBindingImpl.java | 70 +
.../ws/model/soap/SOAPRuntimeModel.java | 408 ---
.../ws/model/wsdl/AbstractExtensibleImpl.java | 139 +
.../wsdl/AbstractFeaturedObjectImpl.java | 78 +
.../ws/model/wsdl/AbstractObjectImpl.java | 62 +
.../ws/model/wsdl/WSDLBoundOperationImpl.java | 382 +++
.../ws/model/wsdl/WSDLBoundPortTypeImpl.java | 237 ++
.../wsdl/WSDLFaultImpl.java} | 35 +-
.../internal/ws/model/wsdl/WSDLInputImpl.java | 82 +
.../ws/model/wsdl/WSDLMessageImpl.java | 61 +
.../internal/ws/model/wsdl/WSDLModelImpl.java | 233 ++
.../ws/model/wsdl/WSDLOperationImpl.java | 143 +
.../wsdl/WSDLOutputImpl.java} | 66 +-
.../wsdl/WSDLPartDescriptorImpl.java} | 44 +-
.../internal/ws/model/wsdl/WSDLPartImpl.java | 81 +
.../internal/ws/model/wsdl/WSDLPortImpl.java | 119 +
.../ws/model/wsdl/WSDLPortTypeImpl.java | 83 +
.../ws/model/wsdl/WSDLProperties.java} | 63 +-
.../ws/model/wsdl/WSDLServiceImpl.java | 110 +
.../com/sun/xml/internal/ws/package-info.java | 12 +-
.../internal/ws/pept/encoding/Decoder.java | 67 -
.../xml/internal/ws/pept/ept/Acceptor.java | 51 -
.../xml/internal/ws/pept/ept/ContactInfo.java | 55 -
.../internal/ws/pept/ept/ContactInfoList.java | 52 -
.../ws/pept/ept/ContactInfoListIterator.java | 61 -
.../xml/internal/ws/pept/ept/EPTFactory.java | 104 -
.../xml/internal/ws/pept/ept/MessageInfo.java | 149 -
.../ws/pept/presentation/MessageStruct.java | 222 --
.../ws/pept/presentation/TargetFinder.java | 56 -
.../internal/ws/pept/presentation/Tie.java | 76 -
.../ws/pept/protocol/Interceptors.java | 56 -
.../ws/pept/protocol/MessageDispatcher.java | 67 -
.../ws/protocol/soap/ClientMUTube.java | 92 +
.../xml/internal/ws/protocol/soap/MUTube.java | 194 ++
.../ws/protocol/soap/ServerMUTube.java | 76 +
.../soap/VersionMismatchException.java | 65 +
.../soap/client/SOAPMessageDispatcher.java | 1012 -------
.../protocol/soap/server/ProviderSOAPMD.java | 153 -
.../soap/server/SOAPMessageDispatcher.java | 632 -----
.../ws/protocol/xml/XMLMessageException.java | 4 +-
.../xml/client/XMLMessageDispatcher.java | 976 -------
.../ws/protocol/xml/server/ProviderXMLMD.java | 114 -
.../xml/server/XMLMessageDispatcher.java | 512 ----
.../ws/resources/AddressingMessages.java | 341 +++
.../internal/ws/resources/ClientMessages.java | 369 +++
.../ws/resources/DispatchMessages.java | 221 ++
.../ws/resources/EncodingMessages.java | 173 ++
.../ws/resources/HandlerMessages.java | 125 +
.../ws/resources/HttpserverMessages.java | 53 +
.../ws/resources/ModelerMessages.java | 281 ++
.../ws/resources/ProviderApiMessages.java | 149 +
.../internal/ws/resources/SenderMessages.java | 89 +
.../internal/ws/resources/ServerMessages.java | 697 +++++
.../internal/ws/resources/SoapMessages.java | 113 +
.../ws/resources/StreamingMessages.java | 269 ++
.../internal/ws/resources/UtilMessages.java | 137 +
.../ws/resources/WsdlmodelMessages.java | 78 +
.../ws/resources/WsservletMessages.java | 1913 +++++++++++++
.../ws/resources/XmlmessageMessages.java | 173 ++
.../ws/resources/addressing.properties | 53 +
.../internal/ws/resources/client.properties | 31 +-
.../internal/ws/resources/dispatch.properties | 21 +-
.../internal/ws/resources/encoding.properties | 8 +-
.../internal/ws/resources/handler.properties | 5 +-
.../ws/resources/httpserver.properties | 6 +-
.../internal/ws/resources/modeler.properties | 19 +-
.../ws/resources/providerApi.properties | 35 +
.../internal/ws/resources/sender.properties | 4 +-
.../internal/ws/resources/server.properties | 43 +-
.../xml/internal/ws/resources/soap.properties | 5 +-
.../ws/resources/streaming.properties | 5 +-
.../xml/internal/ws/resources/util.properties | 5 +-
.../ws/resources/wsdlmodel.properties | 31 +
.../ws/resources/wsservlet.properties | 11 +-
.../ws/resources/xmlmessage.properties | 4 +-
.../ws/server/AbstractInstanceResolver.java | 254 ++
.../server/AbstractMultiInstanceResolver.java | 90 +
.../ws/server/AbstractWebServiceContext.java | 97 +
.../internal/ws/server/AppMsgContextImpl.java | 158 --
...Impl.java => DefaultResourceInjector.java} | 32 +-
.../sun/xml/internal/ws/server/DocInfo.java | 100 -
.../internal/ws/server/EPTFactoryBase.java | 116 -
.../ws/server/EPTFactoryFactoryBase.java | 148 -
.../internal/ws/server/EndpointFactory.java | 541 ++++
.../ws/server/EndpointMessageContextImpl.java | 191 ++
.../xml/internal/ws/server/InvokerTube.java | 168 ++
.../sun/xml/internal/ws/server/PeptTie.java | 93 -
.../internal/ws/server/RuntimeContext.java | 124 -
.../ws/server/RuntimeEndpointInfo.java | 846 ------
.../internal/ws/server/SDDocumentImpl.java | 322 +++
.../ws/server/ServerPropertyConstants.java | 2 +-
.../internal/ws/server/ServerRtException.java | 7 +-
.../ws/server/ServiceDefinitionImpl.java | 119 +
.../ws/server/SingletonResolver.java} | 44 +-
.../ws/server/StatefulInstanceResolver.java | 420 +++
.../com/sun/xml/internal/ws/server/Tie.java | 110 -
.../ws/server/UnsupportedMediaException.java} | 38 +-
.../internal/ws/server/WSDLGenResolver.java | 289 +-
.../xml/internal/ws/server/WSDLPatcher.java | 437 ++-
.../internal/ws/server/WSEndpointImpl.java | 308 +++
.../internal/ws/server/XMLEPTFactoryImpl.java | 115 -
.../xml/internal/ws/server/package-info.java | 114 +-
.../provider/AsyncProviderInvokerTube.java | 134 +
.../MessageProviderArgumentBuilder.java} | 32 +-
.../provider/ProviderArgumentsBuilder.java | 80 +
...rModel.java => ProviderEndpointModel.java} | 110 +-
.../server/provider/ProviderInvokerTube.java | 57 +
.../ws/server/provider/ProviderPeptTie.java | 86 -
.../provider/SOAPProviderArgumentBuilder.java | 161 ++
.../provider/SyncProviderInvokerTube.java | 92 +
.../provider/XMLProviderArgumentBuilder.java | 102 +
.../ws/server/sei/ActionBasedDispatcher.java | 98 +
.../ws/server/sei/DispatchException.java | 44 +
.../server/sei/EndpointArgumentsBuilder.java | 628 +++++
.../server/sei/EndpointMethodDispatcher.java | 55 +
.../sei/EndpointMethodDispatcherGetter.java | 67 +
.../ws/server/sei/EndpointMethodHandler.java | 280 ++
.../sei/EndpointResponseMessageBuilder.java | 297 ++
.../ws/server/sei/EndpointValueSetter.java | 123 +
.../internal/ws/server/sei/MessageFiller.java | 178 ++
.../sei/PayloadQNameBasedDispatcher.java | 94 +
.../ws/server/sei/SEIInvokerTube.java | 99 +
.../internal/ws/server/sei/ValueGetter.java | 92 +
.../sun/xml/internal/ws/spi/ProviderImpl.java | 163 +-
.../xml/internal/ws/spi/runtime/Binding.java | 37 -
.../spi/runtime/ClientTransportFactory.java | 35 -
.../ws/spi/runtime/InternalSoapEncoder.java | 57 -
.../ws/spi/runtime/RuntimeEndpointInfo.java | 130 -
.../ws/spi/runtime/SystemHandlerDelegate.java | 114 -
.../runtime/SystemHandlerDelegateFactory.java | 143 -
.../internal/ws/spi/runtime/WSConnection.java | 107 -
.../xml/internal/ws/streaming/Attributes.java | 2 +-
.../ws/streaming/DOMStreamReader.java | 532 ++--
.../internal/ws/streaming/PrefixFactory.java | 2 +-
.../ws/streaming/PrefixFactoryImpl.java | 2 +-
.../ws/streaming/SourceReaderFactory.java | 78 +-
.../ws/streaming/TidyXMLStreamReader.java | 204 +-
.../xml/internal/ws/streaming/XMLReader.java | 4 +-
.../ws/streaming/XMLReaderException.java | 4 +-
.../streaming/XMLStreamReaderException.java | 4 +-
.../ws/streaming/XMLStreamReaderFactory.java | 259 --
.../ws/streaming/XMLStreamReaderUtil.java | 52 +-
.../streaming/XMLStreamWriterException.java | 4 +-
.../ws/streaming/XMLStreamWriterFactory.java | 118 -
.../ws/streaming/XMLStreamWriterUtil.java | 40 +-
.../ws/transport/DeferredTransportPipe.java | 134 +
.../xml/internal/ws/transport/Headers.java | 12 +-
.../ws/transport/WSConnectionImpl.java | 189 --
.../http/DeploymentDescriptorParser.java | 564 ++++
.../ws/transport/http/HttpAdapter.java | 545 ++++
.../ws/transport/http/HttpAdapterList.java | 133 +
.../ws/transport/http/ResourceLoader.java | 72 +
.../ws/transport/http/WSHTTPConnection.java | 257 ++
.../ws/transport/http/client/CookieJar.java | 2 +-
.../http/client/HttpClientTransport.java | 491 ++--
.../client/HttpClientTransportFactory.java | 69 -
.../ws/transport/http/client/HttpCookie.java | 2 +-
.../http/client/HttpResponseProperties.java} | 57 +-
.../http/client/HttpTransportPipe.java | 221 ++
.../transport/http/client/RfcDateParser.java | 9 +-
.../http/server/EndpointDocInfo.java | 101 -
.../http/server/EndpointEntityResolver.java | 76 -
.../transport/http/server/EndpointImpl.java | 246 +-
.../transport/http/server/HttpEndpoint.java | 307 +-
.../http/server/ServerConnectionImpl.java | 343 ++-
.../ws/transport/http/server/ServerMgr.java | 35 +-
.../transport/http/server/WSHttpHandler.java | 256 +-
.../http/server/WebServiceContextImpl.java | 63 -
.../local/client/LocalClientTransport.java | 167 --
.../client/LocalClientTransportFactory.java | 61 -
.../local/server/LocalConnectionImpl.java | 74 -
.../local/server/LocalWSContextImpl.java | 56 -
.../xml/internal/ws/util/ASCIIUtility.java | 2 +-
.../sun/xml/internal/ws/util/Base64Util.java | 177 --
.../xml/internal/ws/util/ByteArrayBuffer.java | 47 +-
.../internal/ws/util/ByteArrayDataSource.java | 2 +-
.../xml/internal/ws/util/CompletedFuture.java | 69 +
.../sun/xml/internal/ws/util/Constants.java | 2 +-
.../com/sun/xml/internal/ws/util/DOMUtil.java | 184 +-
.../ws/util/FastInfosetReflection.java | 244 +-
.../xml/internal/ws/util/FastInfosetUtil.java | 85 +-
.../ws/util/HandlerAnnotationInfo.java | 2 +-
.../ws/util/HandlerAnnotationProcessor.java | 80 +-
.../sun/xml/internal/ws/util/JAXWSUtils.java | 2 +-
.../xml/internal/ws/util/MessageInfoUtil.java | 106 -
.../internal/ws/util/NamespaceSupport.java | 22 +-
.../internal/ws/util/NoCloseInputStream.java | 50 +
.../internal/ws/util/NoCloseOutputStream.java | 50 +
.../com/sun/xml/internal/ws/util/Pool.java | 144 +
.../sun/xml/internal/ws/util/QNameMap.java | 485 ++++
...or.java => ReadOnlyPropertyException.java} | 38 +-
.../xml/internal/ws/util/RuntimeVersion.java | 2 +-
.../internal/ws/util/SOAPConnectionUtil.java | 217 --
.../sun/xml/internal/ws/util/SOAPUtil.java | 187 --
...on.java => ServiceConfigurationError.java} | 52 +-
.../xml/internal/ws/util/ServiceFinder.java | 378 +++
.../sun/xml/internal/ws/util/StringUtils.java | 2 +-
.../xml/internal/ws/util/UtilException.java | 4 +-
.../com/sun/xml/internal/ws/util/Version.java | 9 +-
.../sun/xml/internal/ws/util/VersionUtil.java | 2 +-
.../internal/ws/util/XMLConnectionUtil.java | 149 -
.../ws/util/exception/JAXWSExceptionBase.java | 74 +-
.../LocatableWebServiceException.java | 106 +
.../ws/util/localization/Localizable.java | 2 +-
.../localization/LocalizableImpl.java} | 32 +-
.../util/localization/LocalizableMessage.java | 2 +-
.../LocalizableMessageFactory.java | 2 +-
.../ws/util/localization/Localizer.java | 14 +-
.../ws/util/localization/NullLocalizable.java | 2 +-
.../xml/internal/ws/util/pipe/DumpTube.java | 143 +
.../ws/util/pipe/StandalonePipeAssembler.java | 91 +
.../ws/util/pipe/StandaloneTubeAssembler.java | 91 +
.../ws/util/resources/Messages_en.properties | 4 +-
.../xml/internal/ws/util/version.properties | 31 +-
.../sun/xml/internal/ws/util/xml/CDATA.java | 2 +-
.../xml/ContentHandlerToXMLStreamWriter.java | 283 ++
.../internal/ws/util/xml/DummyLocation.java} | 36 +-
.../ws/util/xml/NamedNodeMapIterator.java | 2 +-
.../ws/util/xml/NodeListIterator.java | 2 +-
.../xml/internal/ws/util/xml/StAXResult.java | 89 +
.../xml/internal/ws/util/xml/StAXSource.java | 6 +-
.../ws/util/xml/XMLStreamReaderFilter.java | 239 ++
.../xml/XMLStreamReaderToXMLStreamWriter.java | 219 ++
.../ws/util/xml/XMLStreamWriterFilter.java | 183 ++
.../sun/xml/internal/ws/util/xml/XmlUtil.java | 82 +-
.../sun/xml/internal/ws/wsdl/WSDLContext.java | 177 --
.../xml/internal/ws/wsdl/parser/Binding.java | 116 -
.../ws/wsdl/parser/BindingOperation.java | 175 --
.../parser/DelegatingParserExtension.java | 187 ++
.../ws/wsdl/parser/EntityResolverWrapper.java | 67 +
.../parser/ErrorHandler.java} | 26 +-
.../wsdl/parser/FoolProofParserExtension.java | 139 +
.../parser/InaccessibleWSDLException.java | 91 +
.../ws/wsdl/parser/MIMEConstants.java | 4 +-
...bmissionAddressingWSDLParserExtension.java | 121 +
.../ws/wsdl/parser/MexEntityResolver.java | 79 +
.../internal/ws/wsdl/parser/ParserUtil.java | 12 +-
.../ws/wsdl/parser/RuntimeWSDLParser.java | 779 ++++--
.../ws/wsdl/parser/SOAPConstants.java | 4 +-
.../W3CAddressingWSDLParserExtension.java | 282 ++
.../ws/wsdl/parser/WSDLConstants.java | 3 +-
.../internal/ws/wsdl/parser/WSDLDocument.java | 253 --
.../WSDLParserExtensionContextImpl.java | 55 +
.../parser/WSDLParserExtensionFacade.java | 347 +++
.../writer/UsingAddressing.java} | 33 +-
.../W3CAddressingWSDLGeneratorExtension.java | 127 +
.../ws/wsdl/writer/WSDLGenerator.java | 870 ++++--
.../writer/WSDLGeneratorExtensionFacade.java | 143 +
.../internal/ws/wsdl/writer/WSDLResolver.java | 75 +
.../ws/wsdl/writer/document/Binding.java | 2 +-
.../writer/document/BindingOperationType.java | 2 +-
.../ws/wsdl/writer/document/Definitions.java | 2 +-
.../ws/wsdl/writer/document/Documented.java | 2 +-
.../ws/wsdl/writer/document/Fault.java | 2 +-
.../ws/wsdl/writer/document/FaultType.java | 2 +-
.../ws/wsdl/writer/document/Import.java | 2 +-
.../ws/wsdl/writer/document/Message.java | 2 +-
.../ws/wsdl/writer/document/OpenAtts.java | 2 +-
.../ws/wsdl/writer/document/Operation.java | 2 +-
.../ws/wsdl/writer/document/ParamType.java | 2 +-
.../ws/wsdl/writer/document/Part.java | 2 +-
.../ws/wsdl/writer/document/Port.java | 2 +-
.../ws/wsdl/writer/document/PortType.java | 2 +-
.../ws/wsdl/writer/document/Service.java | 2 +-
.../document/StartWithExtensionsType.java | 2 +-
.../ws/wsdl/writer/document/Types.java | 2 +-
.../ws/wsdl/writer/document/http/Address.java | 2 +-
.../ws/wsdl/writer/document/http/Binding.java | 2 +-
.../wsdl/writer/document/http/Operation.java | 2 +-
.../writer/document/http/package-info.java | 2 +-
.../ws/wsdl/writer/document/package-info.java | 2 +-
.../ws/wsdl/writer/document/soap/Body.java | 2 +-
.../wsdl/writer/document/soap/BodyType.java | 2 +-
.../ws/wsdl/writer/document/soap/Header.java | 2 +-
.../writer/document/soap/HeaderFault.java | 2 +-
.../writer/document/soap/SOAPAddress.java | 2 +-
.../writer/document/soap/SOAPBinding.java | 2 +-
.../wsdl/writer/document/soap/SOAPFault.java | 2 +-
.../writer/document/soap/SOAPOperation.java | 2 +-
.../writer/document/soap/package-info.java | 2 +-
.../ws/wsdl/writer/document/soap12/Body.java | 2 +-
.../wsdl/writer/document/soap12/BodyType.java | 2 +-
.../wsdl/writer/document/soap12/Header.java | 2 +-
.../writer/document/soap12/HeaderFault.java | 2 +-
.../writer/document/soap12/SOAPAddress.java | 2 +-
.../writer/document/soap12/SOAPBinding.java | 2 +-
.../writer/document/soap12/SOAPFault.java | 2 +-
.../writer/document/soap12/SOAPOperation.java | 2 +-
.../writer/document/soap12/package-info.java | 2 +-
.../ws/wsdl/writer/document/xsd/Import.java | 2 +-
.../ws/wsdl/writer/document/xsd/Schema.java | 2 +-
.../writer/document/xsd/package-info.java | 2 +-
.../xml/internal/xsom/ForeignAttributes.java | 3 +-
.../com/sun/xml/internal/xsom/SCD.java | 175 ++
.../sun/xml/internal/xsom/XSAnnotation.java | 13 +-
.../sun/xml/internal/xsom/XSAttContainer.java | 3 +-
.../sun/xml/internal/xsom/XSAttGroupDecl.java | 3 +-
.../xml/internal/xsom/XSAttributeDecl.java | 3 +-
.../sun/xml/internal/xsom/XSAttributeUse.java | 3 +-
.../sun/xml/internal/xsom/XSComplexType.java | 3 +-
.../sun/xml/internal/xsom/XSComponent.java | 61 +-
.../sun/xml/internal/xsom/XSContentType.java | 3 +-
.../sun/xml/internal/xsom/XSDeclaration.java | 5 +-
.../sun/xml/internal/xsom/XSElementDecl.java | 16 +-
.../com/sun/xml/internal/xsom/XSFacet.java | 3 +-
.../internal/xsom/XSIdentityConstraint.java | 3 +-
.../xml/internal/xsom/XSListSimpleType.java | 3 +-
.../sun/xml/internal/xsom/XSModelGroup.java | 3 +-
.../xml/internal/xsom/XSModelGroupDecl.java | 3 +-
.../com/sun/xml/internal/xsom/XSNotation.java | 3 +-
.../com/sun/xml/internal/xsom/XSParticle.java | 3 +-
.../xsom/XSRestrictionSimpleType.java | 3 +-
.../com/sun/xml/internal/xsom/XSSchema.java | 10 +-
.../sun/xml/internal/xsom/XSSchemaSet.java | 34 +-
.../sun/xml/internal/xsom/XSSimpleType.java | 34 +-
.../com/sun/xml/internal/xsom/XSTerm.java | 3 +-
.../com/sun/xml/internal/xsom/XSType.java | 3 +-
.../xml/internal/xsom/XSUnionSimpleType.java | 3 +-
.../com/sun/xml/internal/xsom/XSVariety.java | 3 +-
.../com/sun/xml/internal/xsom/XSWildcard.java | 3 +-
.../com/sun/xml/internal/xsom/XSXPath.java | 3 +-
.../com/sun/xml/internal/xsom/XmlString.java | 3 +-
.../internal/xsom/impl/AnnotationImpl.java | 18 +-
.../internal/xsom/impl/AttGroupDeclImpl.java | 2 +-
.../internal/xsom/impl/AttributeDeclImpl.java | 3 +-
.../internal/xsom/impl/AttributeUseImpl.java | 2 +-
.../internal/xsom/impl/AttributesHolder.java | 23 +-
.../internal/xsom/impl/ComplexTypeImpl.java | 15 +-
.../xml/internal/xsom/impl/ComponentImpl.java | 53 +-
.../com/sun/xml/internal/xsom/impl/Const.java | 3 +-
.../internal/xsom/impl/ContentTypeImpl.java | 3 +-
.../internal/xsom/impl/DeclarationImpl.java | 8 +-
.../xml/internal/xsom/impl/ElementDecl.java | 3 +-
.../sun/xml/internal/xsom/impl/EmptyImpl.java | 3 +-
.../sun/xml/internal/xsom/impl/FacetImpl.java | 3 +-
.../xsom/impl/ForeignAttributesImpl.java | 3 +-
.../xsom/impl/IdentityConstraintImpl.java | 3 +-
.../xsom/impl/ListSimpleTypeImpl.java | 7 +-
.../xsom/impl/ModelGroupDeclImpl.java | 3 +-
.../internal/xsom/impl/ModelGroupImpl.java | 3 +-
.../xml/internal/xsom/impl/NotationImpl.java | 3 +-
.../xml/internal/xsom/impl/ParticleImpl.java | 3 +-
.../com/sun/xml/internal/xsom/impl/Ref.java | 2 +-
.../xsom/impl/RestrictionSimpleTypeImpl.java | 13 +-
.../xml/internal/xsom/impl/SchemaImpl.java | 61 +-
.../xml/internal/xsom/impl/SchemaSetImpl.java | 155 +-
.../internal/xsom/impl/SimpleTypeImpl.java | 12 +-
.../com/sun/xml/internal/xsom/impl/UName.java | 3 +-
.../xsom/impl/UnionSimpleTypeImpl.java | 9 +-
.../com/sun/xml/internal/xsom/impl/Util.java | 3 +-
.../xml/internal/xsom/impl/WildcardImpl.java | 3 +-
.../sun/xml/internal/xsom/impl/XPathImpl.java | 3 +-
.../sun/xml/internal/xsom/impl/package.html | 24 +
.../xsom/impl/parser/BaseContentRef.java | 65 +
.../impl/parser/DefaultAnnotationParser.java | 2 +-
.../internal/xsom/impl/parser/DelayedRef.java | 7 +-
.../internal/xsom/impl/parser/Messages.java | 5 +-
.../xsom/impl/parser/Messages.properties | 29 +-
.../xsom/impl/parser/Messages_ja.properties | 25 +
.../xsom/impl/parser/NGCCRuntimeEx.java | 22 +-
.../xsom/impl/parser/ParserContext.java | 17 +-
.../xml/internal/xsom/impl/parser/Patch.java | 2 +-
.../xsom/impl/parser/PatcherManager.java | 3 +-
.../impl/parser/SAXParserFactoryAdaptor.java | 2 +-
.../xsom/impl/parser/SchemaDocumentImpl.java | 3 +-
.../impl/parser/SubstGroupBaseTypeRef.java | 2 +-
.../internal/xsom/impl/parser/datatypes.xsd | 4 +-
.../internal/xsom/impl/parser/package.html | 24 +
.../impl/parser/state/AttributesImpl.java | 4 +-
.../impl/parser/state/NGCCEventReceiver.java | 3 +-
.../impl/parser/state/NGCCEventSource.java | 3 +-
.../xsom/impl/parser/state/NGCCHandler.java | 4 +-
.../parser/state/NGCCInterleaveFilter.java | 3 +-
.../xsom/impl/parser/state/NGCCRuntime.java | 4 +-
.../xsom/impl/parser/state/Schema.java | 1069 ++++---
.../impl/parser/state/SimpleType_List.java | 135 +-
.../parser/state/SimpleType_Restriction.java | 293 +-
.../impl/parser/state/SimpleType_Union.java | 227 +-
.../xsom/impl/parser/state/annotation.java | 23 +-
.../impl/parser/state/attributeDeclBody.java | 351 ++-
.../impl/parser/state/attributeGroupDecl.java | 221 +-
.../xsom/impl/parser/state/attributeUses.java | 861 +++---
.../xsom/impl/parser/state/complexType.java | 2194 ++++++++-------
.../complexType_complexContent_body.java | 73 +-
.../impl/parser/state/elementDeclBody.java | 1215 ++++----
.../xsom/impl/parser/state/erSet.java | 13 +-
.../xsom/impl/parser/state/ersSet.java | 13 +-
.../xsom/impl/parser/state/facet.java | 75 +-
.../impl/parser/state/foreignAttributes.java | 3 +-
.../xsom/impl/parser/state/group.java | 207 +-
.../impl/parser/state/identityConstraint.java | 295 +-
.../xsom/impl/parser/state/importDecl.java | 203 +-
.../xsom/impl/parser/state/includeDecl.java | 51 +-
.../impl/parser/state/modelGroupBody.java | 87 +-
.../xsom/impl/parser/state/notation.java | 287 +-
.../xsom/impl/parser/state/occurs.java | 109 +-
.../xsom/impl/parser/state/particle.java | 733 +++--
.../xsom/impl/parser/state/qname.java | 13 +-
.../xsom/impl/parser/state/qualification.java | 3 +-
.../xsom/impl/parser/state/redefine.java | 199 +-
.../xsom/impl/parser/state/simpleType.java | 255 +-
.../xsom/impl/parser/state/wildcardBody.java | 217 +-
.../xsom/impl/parser/state/xpath.java | 159 +-
.../xsom/impl/scd/AbstractAxisImpl.java | 186 ++
.../sun/xml/internal/xsom/impl/scd/Axis.java | 578 ++++
.../xml/internal/xsom/impl/scd/Iterators.java | 214 ++
.../xsom/impl/scd/ParseException.java | 216 ++
.../xml/internal/xsom/impl/scd/SCDImpl.java | 83 +
.../xml/internal/xsom/impl/scd/SCDParser.java | 561 ++++
.../xsom/impl/scd/SCDParserConstants.java | 93 +
.../xsom/impl/scd/SCDParserTokenManager.java | 2457 +++++++++++++++++
.../xsom/impl/scd/SimpleCharStream.java | 463 ++++
.../sun/xml/internal/xsom/impl/scd/Step.java | 186 ++
.../sun/xml/internal/xsom/impl/scd/Token.java | 105 +
.../internal/xsom/impl/scd/TokenMgrError.java | 157 ++
.../xsom/impl/util/DraconianErrorHandler.java | 2 +-
.../xsom/impl/util/FilterIterator.java | 71 -
.../impl/util/ResourceEntityResolver.java | 2 +-
.../xsom/impl/util/SchemaTreeTraverser.java | 3 +-
.../internal/xsom/impl/util/SchemaWriter.java | 2 +-
.../sun/xml/internal/xsom/impl/util/Uri.java | 24 +
.../com/sun/xml/internal/xsom/package.html | 24 +
.../xsom/parser/AnnotationContext.java | 3 +-
.../xsom/parser/AnnotationParser.java | 3 +-
.../xsom/parser/AnnotationParserFactory.java | 3 +-
.../xml/internal/xsom/parser/JAXPParser.java | 3 +-
.../internal/xsom/parser/SchemaDocument.java | 3 +-
.../xml/internal/xsom/parser/XMLParser.java | 3 +-
.../xml/internal/xsom/parser/XSOMParser.java | 3 +-
.../sun/xml/internal/xsom/parser/package.html | 24 +
.../xsom/util/ComponentNameFunction.java | 4 +-
.../internal/xsom/util/DeferedCollection.java | 157 ++
.../xsom/util/DomAnnotationParserFactory.java | 15 +-
.../xml/internal/xsom/util/NameGetter.java | 3 +-
.../internal/xsom/util/NameGetter.properties | 27 +-
.../xml/internal/xsom/util/SimpleTypeSet.java | 3 +-
.../xml/internal/xsom/util/TypeClosure.java | 3 +-
.../sun/xml/internal/xsom/util/TypeSet.java | 3 +-
.../sun/xml/internal/xsom/util/XSFinder.java | 3 +-
.../internal/xsom/util/XSFunctionFilter.java | 3 +-
.../xsom/visitor/XSContentTypeFunction.java | 3 +-
.../xsom/visitor/XSContentTypeVisitor.java | 3 +-
.../xml/internal/xsom/visitor/XSFunction.java | 3 +-
.../xsom/visitor/XSSimpleTypeFunction.java | 3 +-
.../xsom/visitor/XSSimpleTypeVisitor.java | 3 +-
.../internal/xsom/visitor/XSTermFunction.java | 3 +-
.../xsom/visitor/XSTermFunctionWithParam.java | 3 +-
.../internal/xsom/visitor/XSTermVisitor.java | 3 +-
.../xml/internal/xsom/visitor/XSVisitor.java | 3 +-
.../xsom/visitor/XSWildcardFunction.java | 3 +-
.../xsom/visitor/XSWildcardVisitor.java | 3 +-
.../xml/internal/xsom/visitor/package.html | 24 +
.../activation/ActivationDataFlavor.java | 5 +-
.../javax/activation/MailcapCommandMap.java | 10 +-
.../classes/javax/activation/MimeType.java | 25 +-
.../activation/MimeTypeParameterList.java | 10 +-
.../classes/javax/xml/bind/ContextFinder.java | 81 +-
.../xml/bind/DataBindingException.java} | 28 +-
.../javax/xml/bind/DatatypeConverter.java | 3 +-
.../javax/xml/bind/DatatypeConverterImpl.java | 915 ++++++
.../xml/bind/DatatypeConverterInterface.java | 1 +
.../share/classes/javax/xml/bind/Element.java | 1 +
.../javax/xml/bind/GetPropertyAction.java | 43 +
.../share/classes/javax/xml/bind/JAXB.java | 628 +++++
.../classes/javax/xml/bind/JAXBContext.java | 1 +
.../classes/javax/xml/bind/JAXBElement.java | 2 +-
.../classes/javax/xml/bind/JAXBException.java | 1 +
.../javax/xml/bind/MarshalException.java | 1 +
.../classes/javax/xml/bind/Marshaller.java | 29 +-
.../javax/xml/bind/Messages.properties | 25 +
.../javax/xml/bind/NotIdentifiableEvent.java | 1 +
.../javax/xml/bind/ParseConversionEvent.java | 1 +
.../javax/xml/bind/PrintConversionEvent.java | 1 +
.../javax/xml/bind/PropertyException.java | 1 +
.../javax/xml/bind/SchemaOutputResolver.java | 3 +-
.../xml/bind/TypeConstraintException.java | 1 +
.../javax/xml/bind/UnmarshalException.java | 1 +
.../classes/javax/xml/bind/Unmarshaller.java | 7 +-
.../javax/xml/bind/UnmarshallerHandler.java | 1 +
.../javax/xml/bind/ValidationEvent.java | 1 +
.../xml/bind/ValidationEventHandler.java | 1 +
.../xml/bind/ValidationEventLocator.java | 1 +
.../javax/xml/bind/ValidationException.java | 1 +
.../classes/javax/xml/bind/Validator.java | 1 +
.../javax/xml/bind/WhiteSpaceProcessor.java | 197 ++
.../xml/bind/annotation/XmlAccessOrder.java | 3 +-
.../xml/bind/annotation/XmlAccessType.java | 3 +-
.../xml/bind/annotation/XmlAccessorOrder.java | 29 +-
.../xml/bind/annotation/XmlAccessorType.java | 1 +
.../xml/bind/annotation/XmlAttribute.java | 1 +
.../javax/xml/bind/annotation/XmlElement.java | 3 +-
.../xml/bind/annotation/XmlElementRef.java | 2 +-
.../bind/annotation/XmlElementWrapper.java | 19 +-
.../javax/xml/bind/annotation/XmlID.java | 1 +
.../javax/xml/bind/annotation/XmlIDREF.java | 1 +
.../javax/xml/bind/annotation/XmlList.java | 1 -
.../javax/xml/bind/annotation/XmlNs.java | 1 +
.../javax/xml/bind/annotation/XmlNsForm.java | 5 +-
.../javax/xml/bind/annotation/XmlSchema.java | 66 +-
.../javax/xml/bind/annotation/XmlSeeAlso.java | 79 +
.../xml/bind/annotation/XmlTransient.java | 12 +-
.../javax/xml/bind/annotation/XmlType.java | 3 +-
.../javax/xml/bind/annotation/XmlValue.java | 1 +
.../annotation/adapters/HexBinaryAdapter.java | 2 +
.../adapters/NormalizedStringAdapter.java | 5 +-
.../bind/annotation/adapters/XmlAdapter.java | 7 +-
.../adapters/XmlJavaTypeAdapter.java | 1 +
.../xml/bind/annotation/adapters/package.html | 49 +-
.../javax/xml/bind/annotation/package.html | 50 +-
.../bind/attachment/AttachmentMarshaller.java | 1 -
.../attachment/AttachmentUnmarshaller.java | 1 -
.../javax/xml/bind/attachment/package.html | 49 +-
.../bind/helpers/AbstractMarshallerImpl.java | 27 +-
.../helpers/AbstractUnmarshallerImpl.java | 1 +
.../DefaultValidationEventHandler.java | 1 +
.../xml/bind/helpers/Messages.properties | 25 +
.../helpers/NotIdentifiableEventImpl.java | 1 +
.../helpers/ParseConversionEventImpl.java | 1 +
.../helpers/PrintConversionEventImpl.java | 1 +
.../xml/bind/helpers/ValidationEventImpl.java | 1 +
.../helpers/ValidationEventLocatorImpl.java | 1 +
.../javax/xml/bind/helpers/package.html | 49 +-
.../share/classes/javax/xml/bind/package.html | 49 +-
.../javax/xml/bind/util/Messages.properties | 25 +
.../bind/util/ValidationEventCollector.java | 10 +-
.../classes/javax/xml/bind/util/package.html | 49 +-
.../javax/xml/soap/AttachmentPart.java | 13 +-
.../share/classes/javax/xml/soap/Detail.java | 13 +-
.../classes/javax/xml/soap/DetailEntry.java | 13 +-
.../classes/javax/xml/soap/FactoryFinder.java | 13 +-
.../javax/xml/soap/MessageFactory.java | 13 +-
.../classes/javax/xml/soap/MimeHeader.java | 13 +-
.../classes/javax/xml/soap/MimeHeaders.java | 13 +-
.../share/classes/javax/xml/soap/Name.java | 15 +-
.../share/classes/javax/xml/soap/Node.java | 13 +-
.../javax/xml/soap/SAAJMetaFactory.java | 24 +-
.../classes/javax/xml/soap/SAAJResult.java | 9 +-
.../classes/javax/xml/soap/SOAPBody.java | 15 +-
.../javax/xml/soap/SOAPBodyElement.java | 13 +-
.../javax/xml/soap/SOAPConnection.java | 13 +-
.../javax/xml/soap/SOAPConnectionFactory.java | 13 +-
.../classes/javax/xml/soap/SOAPConstants.java | 13 +-
.../classes/javax/xml/soap/SOAPElement.java | 13 +-
.../javax/xml/soap/SOAPElementFactory.java | 13 +-
.../classes/javax/xml/soap/SOAPEnvelope.java | 13 +-
.../classes/javax/xml/soap/SOAPException.java | 13 +-
.../classes/javax/xml/soap/SOAPFactory.java | 13 +-
.../classes/javax/xml/soap/SOAPFault.java | 13 +-
.../javax/xml/soap/SOAPFaultElement.java | 13 +-
.../classes/javax/xml/soap/SOAPHeader.java | 13 +-
.../javax/xml/soap/SOAPHeaderElement.java | 13 +-
.../classes/javax/xml/soap/SOAPMessage.java | 13 +-
.../classes/javax/xml/soap/SOAPPart.java | 13 +-
.../share/classes/javax/xml/soap/Text.java | 13 +-
.../share/classes/javax/xml/soap/package.html | 50 +-
.../share/classes/javax/xml/ws/Action.java | 77 +
.../classes/javax/xml/ws/AsyncHandler.java | 2 +-
.../share/classes/javax/xml/ws/Binding.java | 51 +-
.../classes/javax/xml/ws/BindingProvider.java | 169 +-
.../classes/javax/xml/ws/BindingType.java | 2 +-
.../share/classes/javax/xml/ws/Dispatch.java | 16 +-
.../share/classes/javax/xml/ws/Endpoint.java | 451 +--
.../javax/xml/ws/EndpointReference.java | 190 ++
.../classes/javax/xml/ws/FaultAction.java | 63 +
.../share/classes/javax/xml/ws/Holder.java | 2 +-
.../classes/javax/xml/ws/LogicalMessage.java | 13 +-
.../javax/xml/ws/ProtocolException.java | 14 +-
.../share/classes/javax/xml/ws/Provider.java | 8 +-
.../classes/javax/xml/ws/RequestWrapper.java | 12 +-
.../classes/javax/xml/ws/RespectBinding.java | 107 +
.../javax/xml/ws/RespectBindingFeature.java | 126 +
.../share/classes/javax/xml/ws/Response.java | 6 +-
.../classes/javax/xml/ws/ResponseWrapper.java | 12 +-
.../share/classes/javax/xml/ws/Service.java | 904 ++++--
.../classes/javax/xml/ws/ServiceMode.java | 10 +-
.../classes/javax/xml/ws/WebEndpoint.java | 2 +-
.../share/classes/javax/xml/ws/WebFault.java | 6 +-
.../javax/xml/ws/WebServiceClient.java | 2 +-
.../javax/xml/ws/WebServiceContext.java | 154 +-
.../javax/xml/ws/WebServiceException.java | 2 +-
.../javax/xml/ws/WebServiceFeature.java | 81 +
.../javax/xml/ws/WebServicePermission.java | 2 +-
.../classes/javax/xml/ws/WebServiceRef.java | 8 +-
.../classes/javax/xml/ws/WebServiceRefs.java | 2 +-
.../javax/xml/ws/handler/HandlerResolver.java | 2 +-
.../xml/ws/handler/LogicalMessageContext.java | 4 +-
.../javax/xml/ws/handler/MessageContext.java | 277 +-
.../javax/xml/ws/handler/PortInfo.java | 2 +-
.../classes/javax/xml/ws/handler/package.html | 24 +
.../xml/ws/handler/soap/SOAPHandler.java | 4 +-
.../ws/handler/soap/SOAPMessageContext.java | 22 +-
.../javax/xml/ws/handler/soap/package.html | 24 +
.../classes/javax/xml/ws/http/package.html | 24 +
.../share/classes/javax/xml/ws/package.html | 24 +
.../classes/javax/xml/ws/soap/Addressing.java | 108 +
.../javax/xml/ws/soap/AddressingFeature.java | 162 ++
.../share/classes/javax/xml/ws/soap/MTOM.java | 69 +
.../javax/xml/ws/soap/MTOMFeature.java | 134 +
.../javax/xml/ws/soap/SOAPBinding.java | 6 +-
.../javax/xml/ws/soap/SOAPFaultException.java | 2 +-
.../classes/javax/xml/ws/soap/package.html | 24 +
.../javax/xml/ws/spi/FactoryFinder.java | 40 +-
.../classes/javax/xml/ws/spi/Provider.java | 205 +-
.../javax/xml/ws/spi/ServiceDelegate.java | 741 +++--
.../ws/spi/WebServiceFeatureAnnotation.java | 73 +
.../classes/javax/xml/ws/spi/package.html | 26 +-
.../ws/wsaddressing/W3CEndpointReference.java | 155 ++
.../W3CEndpointReferenceBuilder.java | 259 ++
.../xml/ws/wsaddressing/package-info.java | 29 +
.../javax/xml/ws/wsaddressing/package.html | 29 +
.../org/relaxng/datatype/Datatype.java | 262 ++
.../org/relaxng/datatype/DatatypeBuilder.java | 70 +
.../relaxng/datatype/DatatypeException.java} | 58 +-
.../org/relaxng/datatype/DatatypeLibrary.java | 62 +
.../datatype/DatatypeLibraryFactory.java} | 36 +-
.../datatype/DatatypeStreamingValidator.java | 71 +
.../relaxng/datatype/ValidationContext.java | 91 +
.../helpers/DatatypeLibraryLoader.java | 262 ++
.../helpers/ParameterlessDatatypeBuilder.java | 67 +
.../helpers/StreamingValidatorImpl.java | 80 +
2692 files changed, 120166 insertions(+), 63522 deletions(-)
create mode 100644 jaxws/TRADEMARK
create mode 100644 jaxws/src/share/classes/com/sun/istack/internal/XMLStreamException2.java
rename jaxws/src/share/classes/com/sun/{xml/internal/ws/util/xml => istack/internal}/XMLStreamReaderToContentHandler.java (93%)
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/AntErrorListener.java => istack/internal/tools/MaskingClassLoader.java} (51%)
create mode 100644 jaxws/src/share/classes/com/sun/istack/internal/tools/ParallelWorldClassLoader.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/Main.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/NameUtil.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/RELAXNGLoader.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/TxwTask.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DataPatternBuilderImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DatatypeFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarSectionImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/SchemaBuilderImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/package.html
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/XmlSchemaBuilder.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/package.html
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Attribute.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Define.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Element.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Leaf.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/txw2/model/NodeSet.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/api/TJavaGeneratorExtension.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensible.java
rename jaxws/src/share/classes/com/sun/{xml/internal/ws/model/Mode.java => tools/internal/ws/api/wsdl/TWSDLExtension.java} (80%)
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensionHandler.java
rename jaxws/src/share/classes/com/sun/{xml/internal/ws/model/ExceptionType.java => tools/internal/ws/api/wsdl/TWSDLOperation.java} (74%)
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLParserContext.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/Processor.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorActionVersion.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorConstants.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorOptions.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ClassModelInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ModelInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/WSDLModelInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/CustomizationParser.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/InputParser.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/JAXWSBindingInfoParser.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/ParserUtil.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/Reader.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/generator/JAXBTypeGenerator.java
rename jaxws/src/share/classes/com/sun/tools/internal/{txw2/builder/relaxng/DivImpl.java => ws/processor/generator/JavaGeneratorExtensionFacade.java} (59%)
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/generator/SimpleToBoxedUtil.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/generator/W3CAddressingJavaGeneratorExtension.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/modeler/annotation/WebServiceReferenceCollector.java
rename jaxws/src/share/classes/com/sun/tools/internal/ws/processor/modeler/{ => wsdl}/ModelerUtils.java (93%)
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/util/ClientProcessorEnvironment.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/util/ProcessorEnvironment.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/processor/util/ProcessorEnvironmentBase.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/ConfigurationMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/GeneratorMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/JavacompilerMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/ModelMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/ModelerMessages.java
rename jaxws/src/share/classes/com/sun/tools/internal/ws/{processor/ProcessorNotificationListener.java => resources/ProcessorMessages.java} (57%)
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/UtilMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/WebserviceapMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/WscompileMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/resources/WsdlMessages.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/util/JAXWSClassFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/util/JavaCompilerHelper.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/util/MapBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/util/ToolBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/util/xml/NodeListIterator.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/util/xml/PrettyPrintingXmlWriter.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/util/xml/XmlWriter.java
rename jaxws/src/share/classes/com/sun/tools/internal/{txw2/ErrorListener.java => ws/wscompile/AbortException.java} (73%)
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/ActionConstants.java
rename jaxws/src/share/classes/com/sun/{xml/internal/ws/transport/local/LocalMessage.java => tools/internal/ws/wscompile/BadCommandLineException.java} (61%)
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/CompileTool.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/ErrorReceiver.java
rename jaxws/src/share/classes/com/sun/tools/internal/{txw2/ConsoleErrorReporter.java => ws/wscompile/ErrorReceiverFilter.java} (55%)
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/JavaCompilerHelper.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/Options.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/WsgenOptions.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/WsgenTool.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/WsimportListener.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/WsimportOptions.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/document/schema/BuiltInTypes.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/document/schema/Schema.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/document/schema/SchemaAttribute.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/document/schema/SchemaDocument.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/document/schema/SchemaElement.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/document/schema/SchemaEntity.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/framework/Extensible.java
rename jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/framework/{Extension.java => ExtensionImpl.java} (75%)
rename jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/framework/{ParserContext.java => TWSDLParserContextImpl.java} (74%)
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/framework/WriterContext.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/AbstractExtensionHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/AbstractReferenceFinderImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/DOMBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/DOMForest.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/DOMForestScanner.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/ExtensionHandlerBase.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/InternalizationLogic.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/MemberSubmissionAddressingExtensionHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/MetadataFinder.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/SchemaExtensionHandler.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/SchemaParser.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/SchemaWriter.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/VersionChecker.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/W3CAddressingExtensionHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/WSDLInternalizationLogic.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/WSDLWriter.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/ws/wsdl/parser/WhitespaceStripper.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/addon/episode/PluginImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/addon/episode/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/api/SpecVersion.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/generator/annotation/spec/XmlSeeAlsoWriter.java
rename jaxws/src/share/classes/com/sun/tools/internal/{txw2/model/Value.java => xjc/model/AbstractCElement.java} (58%)
rename jaxws/src/share/classes/com/sun/tools/internal/{txw2/model/XmlNode.java => xjc/model/AutoClassNameAllocator.java} (50%)
rename jaxws/src/share/classes/com/sun/tools/internal/{txw2/model/Text.java => xjc/model/CClass.java} (78%)
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/model/CClassRef.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/reader/AbstractExtensionBindingChecker.java
rename jaxws/src/share/classes/com/sun/tools/internal/xjc/reader/dtd/bindinfo/{DOM4JLocator.java => DOMLocator.java} (95%)
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/reader/dtd/bindinfo/DTDExtensionBindingChecker.java
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/reader/internalizer/SCDBasedBindingSet.java
rename jaxws/src/share/classes/com/sun/tools/internal/{txw2/model/prop/XmlItemProp.java => xjc/reader/xmlschema/bindinfo/BIXSubstitutable.java} (61%)
create mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/util/SubtreeCutter.java
delete mode 100644 jaxws/src/share/classes/com/sun/tools/internal/xjc/util/XMLStreamReaderToContentHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/AccessorFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/AccessorFactoryImpl.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/Data.java => xml/internal/bind/AnyTypeAdapter.java} (63%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/CycleRecoverable.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/util/xml/NullEntityResolver.java => xml/internal/bind/XmlAccessorFactory.java} (68%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/api/ClassResolver.java
rename jaxws/src/share/classes/com/sun/xml/internal/{ws/pept/Delegate.java => bind/api/ErrorListener.java} (53%)
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/doc-files/packages.png
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/doc-files/packages.vsd
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/doc-files/readme.txt
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/schemagen/GroupKind.java
rename jaxws/src/share/classes/com/sun/xml/internal/{ws/encoding/soap/message/SOAPMsgCreateException.java => bind/v2/schemagen/Messages.java} (69%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/schemagen/Messages.properties
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/schemagen/Tree.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/XmlSchemaLoader.java => xml/internal/bind/v2/schemagen/episode/Bindings.java} (63%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/schemagen/episode/Klass.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/prop/LeafElementProp.java => xml/internal/bind/v2/schemagen/episode/SchemaBindings.java} (77%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/schemagen/episode/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/bind/v2/schemagen/xmlschema/ContentModelContainer.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/builder/relaxng/CommentListImpl.java => xml/internal/bind/v2/schemagen/xmlschema/Particle.java} (80%)
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/CycleIterator.java => xml/internal/bind/v2/util/TypeCast.java} (61%)
rename jaxws/src/share/classes/com/sun/xml/internal/{ws/spi/runtime/WebServiceContext.java => fastinfoset/OctetBufferListener.java} (69%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/fastinfoset/sax/SAXDocumentSerializerWithPrefixMapping.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/fastinfoset/util/NamespaceContextImplementation.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/fastinfoset/VocabularyApplicationData.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/fastinfoset/sax/ExtendedContentHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/fastinfoset/stax/FastInfosetStreamReader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/fastinfoset/stax/LowLevelFastInfosetStreamWriter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/staxex/Base64Data.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/staxex/Base64Encoder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/staxex/ByteArrayOutputStreamEx.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/staxex/NamespaceContextEx.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/staxex/XMLStreamReaderEx.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/org/jvnet/staxex/XMLStreamWriterEx.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/AbstractCreator.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/AbstractCreatorProcessor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/AbstractProcessor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/AttributesHolder.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/processor/config/HandlerChainInfo.java => xml/internal/stream/buffer/FragmentedArray.java} (53%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/MutableXMLStreamBuffer.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/XMLStreamBuffer.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/XMLStreamBufferException.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/XMLStreamBufferMark.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/XMLStreamBufferResult.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/XMLStreamBufferSource.java
rename jaxws/src/share/classes/com/sun/xml/internal/{ws/encoding/soap/SOAPVersion.java => stream/buffer/sax/DefaultWithLexicalHandler.java} (59%)
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/processor/ProcessorAction.java => xml/internal/stream/buffer/sax/Features.java} (61%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/sax/Properties.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/sax/SAXBufferCreator.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/sax/SAXBufferProcessor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/stax/NamespaceContexHelper.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/stax/StreamBufferCreator.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/stax/StreamReaderBufferCreator.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/stax/StreamReaderBufferProcessor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/stax/StreamWriterBufferCreator.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/stream/buffer/stax/StreamWriterBufferProcessor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/txw2/output/DelegatingXMLStreamWriter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/txw2/output/IndentingXMLFilter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/txw2/output/IndentingXMLStreamWriter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/Closeable.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/EndpointReferenceUtil.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/ProblemAction.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/ProblemHeaderQName.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/W3CAddressingConstants.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/WsaClientTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/WsaServerTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/WsaTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/WsaTubeHelper.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/WsaTubeHelperImpl.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{wsdl/parser/Service.java => addressing/model/ActionNotSupportedException.java} (71%)
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{wsdl/parser/Message.java => addressing/model/InvalidMapException.java} (71%)
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{wsdl/parser/PortType.java => addressing/model/MapRequiredException.java} (77%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/v200408/MemberSubmissionAddressingConstants.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/wsdl/parser/ExtensionHandler.java => xml/internal/ws/addressing/v200408/ProblemAction.java} (53%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/v200408/ProblemHeaderQName.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/addressing/v200408/WsaTubeHelperImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/BindingID.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/BindingIDFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/DistributedPropertySet.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/EndpointAddress.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/FeatureConstructor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/PropertySet.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/SOAPVersion.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/WSBinding.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/Node.java => xml/internal/ws/api/WSFeatureList.java} (54%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/WSService.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/addressing/AddressingVersion.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/addressing/EPRHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/addressing/OneWayFeature.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/addressing/OutboundReferenceParameterHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/addressing/WSEndpointReference.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/addressing/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/client/ClientPipelineHook.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/client/SelectOptimalEncodingFeature.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/client/ServiceInterceptor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/client/ServiceInterceptorFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/client/WSPortInfo.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/fastinfoset/FastInfosetFeature.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/Attachment.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/AttachmentSet.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{encoding/soap/message/SOAPMsgFactoryCreateException.java => api/message/ExceptionHasMessage.java} (57%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/Header.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/HeaderList.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/Headers.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/Message.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/Messages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/Packet.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/ClientTransportFactoryTypes.java => api/message/package-info.java} (79%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/stream/InputStreamMessage.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/processor/util/GeneratedFileInfo.java => xml/internal/ws/api/message/stream/StreamBasedMessage.java} (52%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/message/stream/XMLStreamReaderMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/CheckedException.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/ExceptionType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/JavaMethod.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/prop/ValueProp.java => xml/internal/ws/api/model/MEP.java} (69%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/Parameter.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{ => api}/model/ParameterBinding.java (81%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/SEIModel.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/soap/SOAPBinding.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLBoundOperation.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLBoundPortType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLDescriptorKind.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLExtensible.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLExtension.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/Invoker.java => api/model/wsdl/WSDLFault.java} (62%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLFeaturedObject.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/MessageContext.java => api/model/wsdl/WSDLInput.java} (52%)
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/prop/AttributeProp.java => xml/internal/ws/api/model/wsdl/WSDLMessage.java} (78%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/Empty.java => xml/internal/ws/api/model/wsdl/WSDLObject.java} (72%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLOperation.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/SOAPMessageContext.java => api/model/wsdl/WSDLOutput.java} (51%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLPart.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{encoding/soap/internal/HeaderBlock.java => api/model/wsdl/WSDLPartDescriptor.java} (69%)
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{encoding/soap/internal/MessageBlock.java => api/model/wsdl/WSDLPort.java} (58%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLPortType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLService.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{pept/presentation/Stub.java => api/package-info.java} (59%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/ClientPipeAssemblerContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/ClientTubeAssemblerContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/Codec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/Codecs.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/ContentType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/Engine.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/Fiber.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/FiberContextSwitchInterceptor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/NextAction.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/Pipe.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/PipeCloner.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/PipelineAssembler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/PipelineAssemblerFactory.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/prop/ElementProp.java => xml/internal/ws/api/pipe/SOAPBindingCodec.java} (73%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/ServerPipeAssemblerContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/ServerTubeAssemblerContext.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/MtomCallback.java => api/pipe/StreamSOAPCodec.java} (57%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/Stubs.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/TransportPipeFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/TransportTubeFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/Tube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/TubeCloner.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/TubelineAssembler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/TubelineAssemblerFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/helper/AbstractFilterPipeImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/helper/AbstractFilterTubeImpl.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/Grammar.java => xml/internal/ws/api/pipe/helper/AbstractPipeImpl.java} (57%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/helper/AbstractTubeImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/helper/PipeAdapter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/helper/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/pipe/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/AbstractServerAsyncTransport.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/Adapter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/AsyncProvider.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/AsyncProviderCallback.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/WriterNode.java => xml/internal/ws/api/server/BoundEndpoint.java} (59%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/Container.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/ContainerResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/DocumentAddressResolver.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/prop/Prop.java => xml/internal/ws/api/server/EndpointAwareCodec.java} (68%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/InstanceResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/InstanceResolverAnnotation.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/Invoker.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/Module.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/PortAddressResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/ResourceInjector.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/SDDocument.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/SDDocumentFilter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/SDDocumentSource.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/ServerPipelineHook.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/ServiceDefinition.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/TransportBackChannel.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/WSEndpoint.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/WSWebServiceContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/WebModule.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/WebServiceContextDelegate.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/server/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamReaderFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamWriterFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/parser/MetaDataResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/parser/MetadataResolverFactory.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{wsdl/writer/WSDLOutputResolver.java => api/wsdl/parser/ServiceDescriptor.java} (60%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/parser/WSDLParserExtension.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/parser/WSDLParserExtensionContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/parser/XMLEntityResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/parser/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/writer/WSDLGenExtnContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/api/wsdl/writer/WSDLGeneratorExtension.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/binding/{http => }/HTTPBindingImpl.java (52%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/binding/SOAPBindingImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/binding/WebServiceFeatureList.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/binding/soap/SOAPBindingImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/AsyncHandlerService.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/package-info.java => client/AsyncInvoker.java} (58%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/AsyncResponseImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/ContactInfoBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/ContactInfoListImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/ContextMap.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/EndpointIFBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/EndpointIFContext.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/EndpointIFInvocationHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/HandlerConfiguration.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/HandlerConfigurator.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/PortInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/PortInfoBase.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/client/{InternalBindingProvider.java => ResponseContextReceiver.java} (72%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/ResponseImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/SCAnnotations.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/SEIPortInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/ServiceContext.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/ServiceContextBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/Stub.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/DataSourceDispatch.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/DispatchBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/DispatchContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/DispatchImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/JAXBDispatch.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/MessageDispatch.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/RESTSourceDispatch.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/ResponseImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/SOAPMessageDispatch.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/SOAPSourceDispatch.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/impl/DispatchContactInfoList.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/impl/DispatchDelegate.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/impl/encoding/DispatchSerializer.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/impl/encoding/DispatchUtil.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/dispatch/impl/protocol/MessageDispatcherHelper.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/AsyncBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/AsyncMethodHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/BodyBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/CallbackMethodHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/MessageFiller.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/MethodHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/PollingMethodHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/ResponseBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/SEIStub.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/SyncMethodHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/ValueGetter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/ValueSetter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/client/sei/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/developer/EPRRecipe.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/developer/MemberSubmissionAddressing.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/developer/MemberSubmissionAddressingFeature.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/developer/MemberSubmissionEndpointReference.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/Ref.java => xml/internal/ws/developer/ServerSideException.java} (60%)
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{pept/encoding/Encoder.java => developer/Stateful.java} (53%)
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/model/List.java => xml/internal/ws/developer/StatefulFeature.java} (59%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/developer/StatefulWebServiceManager.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/developer/WSBindingProvider.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/developer/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/AbstractXMLStreamWriterExImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/ContentTypeImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/EncoderDecoderBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/JAXWSAttachmentMarshaller.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/JAXWSAttachmentUnmarshaller.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/MimeCodec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/MimeMultipartParser.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/MtomCodec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/SOAPBindingCodec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/StreamSOAP11Codec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/StreamSOAP12Codec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/StreamSOAPCodec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/SwACodec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/TagInfoset.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/XMLHTTPBindingCodec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetCodec.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/TxwOptions.java => xml/internal/ws/encoding/fastinfoset/FastInfosetMIMETypes.java} (50%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetStreamReaderFactory.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/processor/config/Configuration.java => xml/internal/ws/encoding/fastinfoset/FastInfosetStreamReaderRecyclable.java} (60%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetStreamSOAP11Codec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetStreamSOAP12Codec.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/fastinfoset/FastInfosetStreamSOAPCodec.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/internal/InternalEncoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/jaxb/JAXBBeanInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/jaxb/JAXBBridgeInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/jaxb/JAXBTypeSerializer.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/jaxb/RpcLitPayload.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/jaxb/RpcLitPayloadSerializer.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/simpletype/EncoderUtils.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/ClientEncoderDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/EncoderDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/SOAPDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/SOAPEncoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/ServerEncoderDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/client/SOAP12XMLDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/client/SOAP12XMLEncoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/client/SOAPXMLDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/client/SOAPXMLEncoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/internal/AttachmentBlock.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/internal/BodyBlock.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/internal/DelegateBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/internal/InternalMessage.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/internal/MessageInfoBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/internal/SOAP12NotUnderstoodHeaderBlock.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/message/FaultCode.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/message/FaultCodeEnum.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/message/FaultReason.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/message/FaultReasonText.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/message/FaultSubcode.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/message/SOAP12FaultInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/message/SOAPFaultInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/server/ProviderSED.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/server/SOAP12XMLDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/server/SOAP12XMLEncoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/server/SOAPXMLDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/soap/server/SOAPXMLEncoder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/xml/XMLCodec.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/xml/XMLDecoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/xml/XMLEPTFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/encoding/xml/XMLEncoder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/CodeType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/DetailType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/ExceptionBean.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{client/ContactInfoListIteratorBase.java => fault/ReasonType.java} (62%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/SOAP11Fault.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/SOAP12Fault.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/SOAPFaultBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/SubcodeType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/fault/TextType.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/ClientLogicalHandlerTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/ClientSOAPHandlerTube.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/HandlerChainCaller.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/HandlerContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/HandlerProcessor.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/HandlerResolverImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/HandlerTube.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/MessageContextUtil.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/handler/{XMLLogicalMessageContextImpl.java => MessageUpdatableContext.java} (61%)
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/SHDSOAPMessageContext.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/SOAPHandlerContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/SOAPHandlerProcessor.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/ServerLogicalHandlerTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/ServerSOAPHandlerTube.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/XMLHandlerContext.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/XMLHandlerProcessor.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/XMLLogicalMessageImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/handler/package-info.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/AbstractHeaderImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/AbstractMessageImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/AttachmentSetImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/AttachmentUnmarshallerImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/ByteArrayAttachment.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/DOMHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/DOMMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/DataHandlerAttachment.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/EmptyMessageImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/FaultDetailHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/JAXBAttachment.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/MimeAttachmentSet.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/ProblemActionHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/RelatesToHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/RootElementSniffer.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/StringHeader.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/Tie.java => message/Util.java} (65%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/XMLReaderImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/jaxb/AttachmentMarshallerImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/jaxb/JAXBBridgeSource.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/jaxb/JAXBHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/jaxb/JAXBMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/jaxb/MarshallerBridge.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/SchemaBuilder.java => xml/internal/ws/message/jaxb/package-info.java} (68%)
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{spi/runtime/StubBase.java => message/package-info.java} (80%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/saaj/SAAJHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/saaj/SAAJMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/source/PayloadSourceMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/source/ProtocolSourceMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/source/SourceUtils.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/stream/OutboundStreamHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/stream/PayloadStreamReaderMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/stream/StreamAttachment.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/stream/StreamHeader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/stream/StreamHeader11.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/stream/StreamHeader12.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/message/stream/StreamMessage.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/AbstractSEIModelImpl.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/model/{CheckedException.java => CheckedExceptionImpl.java} (66%)
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/JavaMethod.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/JavaMethodImpl.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/model/{Parameter.java => ParameterImpl.java} (65%)
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/RuntimeModel.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{modeler => model}/RuntimeModeler.java (68%)
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{modeler => model}/RuntimeModelerException.java (92%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/SOAPSEIModel.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/soap/SOAPBinding.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/soap/SOAPBindingImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/soap/SOAPRuntimeModel.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/AbstractExtensibleImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/AbstractFeaturedObjectImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/AbstractObjectImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLBoundOperationImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLBoundPortTypeImpl.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{wsdl/parser/Part.java => model/wsdl/WSDLFaultImpl.java} (62%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLInputImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLMessageImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLModelImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLOperationImpl.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{wsdl/parser/PortTypeOperation.java => model/wsdl/WSDLOutputImpl.java} (52%)
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{wsdl/parser/Port.java => model/wsdl/WSDLPartDescriptorImpl.java} (65%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLPartImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLPortImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLPortTypeImpl.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/processor/config/HandlerInfo.java => xml/internal/ws/model/wsdl/WSDLProperties.java} (51%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/model/wsdl/WSDLServiceImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/encoding/Decoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/ept/Acceptor.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/ept/ContactInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/ept/ContactInfoList.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/ept/ContactInfoListIterator.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/ept/EPTFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/ept/MessageInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/presentation/MessageStruct.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/presentation/TargetFinder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/presentation/Tie.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/protocol/Interceptors.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/pept/protocol/MessageDispatcher.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/soap/ClientMUTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/soap/MUTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/soap/ServerMUTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/soap/VersionMismatchException.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/soap/client/SOAPMessageDispatcher.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/soap/server/ProviderSOAPMD.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/soap/server/SOAPMessageDispatcher.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/xml/client/XMLMessageDispatcher.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/xml/server/ProviderXMLMD.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/protocol/xml/server/XMLMessageDispatcher.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/AddressingMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/ClientMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/DispatchMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/EncodingMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/HandlerMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/HttpserverMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/ModelerMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/ProviderApiMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/SenderMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/ServerMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/SoapMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/StreamingMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/UtilMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/WsdlmodelMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/WsservletMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/XmlmessageMessages.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/addressing.properties
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/providerApi.properties
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/resources/wsdlmodel.properties
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/AbstractInstanceResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/AbstractMultiInstanceResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/AbstractWebServiceContext.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/AppMsgContextImpl.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/server/{TargetFinderImpl.java => DefaultResourceInjector.java} (63%)
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/DocInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/EPTFactoryBase.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/EPTFactoryFactoryBase.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/EndpointFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/EndpointMessageContextImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/InvokerTube.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/PeptTie.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/RuntimeContext.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/RuntimeEndpointInfo.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/SDDocumentImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/ServiceDefinitionImpl.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/builder/relaxng/ElementAnnotationBuilderImpl.java => xml/internal/ws/server/SingletonResolver.java} (50%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/StatefulInstanceResolver.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/Tie.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/processor/config/parser/ClassModelParser.java => xml/internal/ws/server/UnsupportedMediaException.java} (56%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/WSEndpointImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/XMLEPTFactoryImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/AsyncProviderInvokerTube.java
rename jaxws/src/share/classes/com/sun/{tools/internal/txw2/builder/relaxng/AnnotationsImpl.java => xml/internal/ws/server/provider/MessageProviderArgumentBuilder.java} (56%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/ProviderArgumentsBuilder.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/{ProviderModel.java => ProviderEndpointModel.java} (53%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/ProviderInvokerTube.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/ProviderPeptTie.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/SOAPProviderArgumentBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/SyncProviderInvokerTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/provider/XMLProviderArgumentBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/ActionBasedDispatcher.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/DispatchException.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/EndpointArgumentsBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/EndpointMethodDispatcher.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/EndpointMethodDispatcherGetter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/EndpointMethodHandler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/EndpointResponseMessageBuilder.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/EndpointValueSetter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/MessageFiller.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/PayloadQNameBasedDispatcher.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/SEIInvokerTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/server/sei/ValueGetter.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/spi/runtime/Binding.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/spi/runtime/ClientTransportFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/spi/runtime/InternalSoapEncoder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/spi/runtime/RuntimeEndpointInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/spi/runtime/SystemHandlerDelegate.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/spi/runtime/SystemHandlerDelegateFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/spi/runtime/WSConnection.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/streaming/XMLStreamReaderFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/streaming/XMLStreamWriterFactory.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/DeferredTransportPipe.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/WSConnectionImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/DeploymentDescriptorParser.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/HttpAdapter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/HttpAdapterList.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/ResourceLoader.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/WSHTTPConnection.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/client/HttpClientTransportFactory.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{client/WSFuture.java => transport/http/client/HttpResponseProperties.java} (53%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/client/HttpTransportPipe.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/server/EndpointDocInfo.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/server/EndpointEntityResolver.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/http/server/WebServiceContextImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/local/client/LocalClientTransport.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/local/client/LocalClientTransportFactory.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/local/server/LocalConnectionImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/transport/local/server/LocalWSContextImpl.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/Base64Util.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/CompletedFuture.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/MessageInfoUtil.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/NoCloseInputStream.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/NoCloseOutputStream.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/Pool.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/QNameMap.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/util/{NullIterator.java => ReadOnlyPropertyException.java} (64%)
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/SOAPConnectionUtil.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/SOAPUtil.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/util/{SunStAXReflection.java => ServiceConfigurationError.java} (55%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/ServiceFinder.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/XMLConnectionUtil.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/exception/LocatableWebServiceException.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{client/ClientConfigurationException.java => util/localization/LocalizableImpl.java} (62%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/pipe/DumpTube.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/pipe/StandalonePipeAssembler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/pipe/StandaloneTubeAssembler.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/ContentHandlerToXMLStreamWriter.java
rename jaxws/src/share/classes/com/sun/{tools/internal/ws/processor/config/ConfigurationException.java => xml/internal/ws/util/xml/DummyLocation.java} (63%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/StAXResult.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/XMLStreamReaderFilter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/XMLStreamReaderToXMLStreamWriter.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/XMLStreamWriterFilter.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/WSDLContext.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/Binding.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/BindingOperation.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/DelegatingParserExtension.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/EntityResolverWrapper.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{model/soap/Use.java => wsdl/parser/ErrorHandler.java} (76%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/FoolProofParserExtension.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/InaccessibleWSDLException.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/MemberSubmissionAddressingWSDLParserExtension.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/MexEntityResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/W3CAddressingWSDLParserExtension.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/WSDLDocument.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/WSDLParserExtensionContextImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/parser/WSDLParserExtensionFacade.java
rename jaxws/src/share/classes/com/sun/xml/internal/ws/{encoding/simpletype/SimpleTypeConstants.java => wsdl/writer/UsingAddressing.java} (57%)
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/writer/W3CAddressingWSDLGeneratorExtension.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/writer/WSDLGeneratorExtensionFacade.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/ws/wsdl/writer/WSDLResolver.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/SCD.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/parser/BaseContentRef.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/AbstractAxisImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/Axis.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/Iterators.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/ParseException.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/SCDImpl.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/SCDParser.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/SCDParserConstants.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/SCDParserTokenManager.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/SimpleCharStream.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/Step.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/Token.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/scd/TokenMgrError.java
delete mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/impl/util/FilterIterator.java
create mode 100644 jaxws/src/share/classes/com/sun/xml/internal/xsom/util/DeferedCollection.java
rename jaxws/src/share/classes/{com/sun/xml/internal/ws/model/soap/Style.java => javax/xml/bind/DataBindingException.java} (66%)
create mode 100644 jaxws/src/share/classes/javax/xml/bind/DatatypeConverterImpl.java
create mode 100644 jaxws/src/share/classes/javax/xml/bind/GetPropertyAction.java
create mode 100644 jaxws/src/share/classes/javax/xml/bind/JAXB.java
create mode 100644 jaxws/src/share/classes/javax/xml/bind/WhiteSpaceProcessor.java
create mode 100644 jaxws/src/share/classes/javax/xml/bind/annotation/XmlSeeAlso.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/Action.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/EndpointReference.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/FaultAction.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/RespectBinding.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/RespectBindingFeature.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/WebServiceFeature.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/soap/Addressing.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/soap/AddressingFeature.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/soap/MTOM.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/soap/MTOMFeature.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/spi/WebServiceFeatureAnnotation.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/wsaddressing/W3CEndpointReferenceBuilder.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/wsaddressing/package-info.java
create mode 100644 jaxws/src/share/classes/javax/xml/ws/wsaddressing/package.html
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/Datatype.java
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/DatatypeBuilder.java
rename jaxws/src/share/classes/{com/sun/xml/internal/xsom/impl/util/ConcatIterator.java => org/relaxng/datatype/DatatypeException.java} (51%)
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/DatatypeLibrary.java
rename jaxws/src/share/classes/{com/sun/xml/internal/ws/encoding/soap/SOAPEPTFactory.java => org/relaxng/datatype/DatatypeLibraryFactory.java} (56%)
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/DatatypeStreamingValidator.java
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/ValidationContext.java
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/helpers/DatatypeLibraryLoader.java
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/helpers/ParameterlessDatatypeBuilder.java
create mode 100644 jaxws/src/share/classes/org/relaxng/datatype/helpers/StreamingValidatorImpl.java
diff --git a/jaxws/THIRD_PARTY_README b/jaxws/THIRD_PARTY_README
index 9f4d7e5087a..690890548f2 100644
--- a/jaxws/THIRD_PARTY_README
+++ b/jaxws/THIRD_PARTY_README
@@ -61,6 +61,28 @@ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
+
+%% This notice is provided with respect to littlecms, which may be included with this software:
+
+Little cms
+Copyright (C) 1998-2004 Marti Maria
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
%% This notice is provided with respect to zlib 1.1.3, which may be included with this software:
Acknowledgments:
@@ -115,16 +137,6 @@ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQ
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
____________________________________
This formulation of W3C's notice and license became active on August 14 1998 so as to improve compatibility with GPL. This version ensures that W3C software licensing terms are no more restrictive than GPL and consequently W3C software may be distributed in GPL packages. See the older formulation for the policy prior to this date. Please see our Copyright FAQ for common questions about using materials from our site, including specific terms and conditions for packages like libwww, Amaya, and Jigsaw. Other questions about this notice can be directed to site-policy@w3.org.
-
-%% This notice is provided with respect to jscheme.jar, which may be included with this software:
-Software License Agreement
-Copyright © 1998-2002 by Peter Norvig.
-Permission is granted to anyone to use this software, in source or object code form, on any computer system, and to modify, compile, decompile, run, and redistribute it to anyone else, subject to the following restrictions:
-1.The author makes no warranty of any kind, either expressed or implied, about the suitability of this software for any purpose.
-2.The author accepts no liability of any kind for damages or other consequences of the use of this software, even if they arise from defects in the software.
-3.The origin of this software must not be misrepresented, either by explicit claim or by omission.
-4.Altered versions must be plainly marked as such, and must not be misrepresented as being the original software. Altered versions may be distributed in packages under other licenses (such as the GNU license).
-If you find this software useful, it would be nice if you let me (peter@norvig.com) know about it, and nicer still if you send me modifications that you are willing to share. However, you are not required to do so.
%% This notice is provided with respect to PC/SC Lite for Suse Linux v. 1.1.1, which may be included with this software:
diff --git a/jaxws/TRADEMARK b/jaxws/TRADEMARK
new file mode 100644
index 00000000000..6587bafba88
--- /dev/null
+++ b/jaxws/TRADEMARK
@@ -0,0 +1,41 @@
+OpenJDK Trademark Notice
+Version 1.1, 2008/3/10
+
+OpenJDK (the "Name") is a trademark of Sun Microsystems, Inc. (the "Owner").
+Owner permits any person obtaining a copy of this software (the "Software")
+which is based on original software retrieved from one of the following
+websites: http://download.java.net/openjdk, http://hg.openjdk.java.net/jdk6,
+or http://openjdk.java.net (each a "Website", with the original software made
+available by the Owner on a Website being known as the "Website Software") to
+use the Name in package names and version strings of the Software subject to
+the following conditions:
+
+ - The Software is a substantially complete implementation of the OpenJDK
+ development kit or runtime environment code made available by Owner on a
+ Website, and the vast majority of the Software code is identical to the
+ upstream Website Software;
+
+ - No permission is hereby granted to use the Name in any other manner,
+ unless such use constitutes "fair use."
+
+ - The Owner makes no warranties of any kind respecting the Name and all
+ representations and warranties, including any implied warranty of
+ merchantability, fitness for a particular purpose or non-infringement
+ are hereby disclaimed; and
+
+ - This notice and the following legend are included in all copies of the
+ Software or portions of it:
+
+ OpenJDK is a trademark or registered trademark of Sun Microsystems,
+ Inc. in the United States and other countries.
+
+The Name may also be used in connection with descriptions of the Software that
+constitute "fair use," such as "derived from the OpenJDK code base" or "based
+on the OpenJDK source code."
+
+Owner intends to revise this Notice as necessary in order to meet the needs of
+the OpenJDK Community. Please send questions or comments about this Notice to
+Sun Microsystems at openjdk-tm@sun.com. Revisions to this Notice will be
+announced on the public mailing list announce@openjdk.java.net, to which you
+may subscribe by visiting http://mail.openjdk.java.net. The latest version of
+this Notice may be found at http://openjdk.java.net/legal.
diff --git a/jaxws/make/Makefile b/jaxws/make/Makefile
index 56696720183..3dc17bfa39f 100644
--- a/jaxws/make/Makefile
+++ b/jaxws/make/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright 2007-2009 Sun Microsystems, Inc. All Rights Reserved.
+# Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/make/build.xml b/jaxws/make/build.xml
index 9f013e992a8..5b83e558dfc 100644
--- a/jaxws/make/build.xml
+++ b/jaxws/make/build.xml
@@ -78,6 +78,15 @@
+
+
+
+
+
+
diff --git a/jaxws/make/jprt.properties b/jaxws/make/jprt.properties
index 26ffd61a5b5..6e213dd2343 100644
--- a/jaxws/make/jprt.properties
+++ b/jaxws/make/jprt.properties
@@ -24,13 +24,13 @@
#
# Properties for jprt
-jprt.tools.default.release=jdk1.7.0
+jprt.tools.default.release=openjdk6
# Specific platform list
jprt.build.platforms=\
-solaris_sparc_5.10,\
-solaris_sparcv9_5.10,\
-solaris_i586_5.10,\
+solaris_sparc_5.8,\
+solaris_sparcv9_5.8,\
+solaris_i586_5.8,\
solaris_x64_5.10,\
linux_i586,\
linux_x64,\
@@ -41,10 +41,12 @@ windows_x64
jprt.build.flavors=product
# Explicitly designate what the 32bit match is for the 64bit build
-jprt.solaris_sparcv9.build.platform.match32=solaris_sparc_5.10
-jprt.solaris_sparcv9_5.10.build.platform.match32=solaris_sparc_5.10
-jprt.solaris_x64.build.platform.match32=solaris_i586_5.10
-jprt.solaris_x64_5.10.build.platform.match32=solaris_i586_5.10
+jprt.solaris_sparcv9.build.platform.match32=solaris_sparc_5.8
+jprt.solaris_sparcv9_5.8.build.platform.match32=solaris_sparc_5.8
+jprt.solaris_sparcv9_5.10.build.platform.match32=solaris_sparc_5.8
+jprt.solaris_x64.build.platform.match32=solaris_i586_5.8
+jprt.solaris_x64_5.8.build.platform.match32=solaris_i586_5.8
+jprt.solaris_x64_5.10.build.platform.match32=solaris_i586_5.8
# Standard list of jprt test targets for this workspace
jprt.test.targets=
diff --git a/jaxws/src/share/classes/com/sun/activation/registries/MailcapFile.java b/jaxws/src/share/classes/com/sun/activation/registries/MailcapFile.java
index 6e5e6a6e7b8..5fd26866922 100644
--- a/jaxws/src/share/classes/com/sun/activation/registries/MailcapFile.java
+++ b/jaxws/src/share/classes/com/sun/activation/registries/MailcapFile.java
@@ -182,7 +182,8 @@ public class MailcapFile {
*/
public String[] getNativeCommands(String mime_type) {
String[] cmds = null;
- List v = (List)native_commands.get(mime_type.toLowerCase());
+ List v =
+ (List)native_commands.get(mime_type.toLowerCase(Locale.ENGLISH));
if (v != null) {
cmds = new String[v.size()];
cmds = (String[])v.toArray(cmds);
@@ -301,7 +302,8 @@ public class MailcapFile {
reportParseError(MailcapTokenizer.STRING_TOKEN, currentToken,
tokenizer.getCurrentTokenValue());
}
- String primaryType = tokenizer.getCurrentTokenValue().toLowerCase();
+ String primaryType =
+ tokenizer.getCurrentTokenValue().toLowerCase(Locale.ENGLISH);
String subType = "*";
// parse the '/' between primary and sub
@@ -322,7 +324,8 @@ public class MailcapFile {
reportParseError(MailcapTokenizer.STRING_TOKEN,
currentToken, tokenizer.getCurrentTokenValue());
}
- subType = tokenizer.getCurrentTokenValue().toLowerCase();
+ subType =
+ tokenizer.getCurrentTokenValue().toLowerCase(Locale.ENGLISH);
// get the next token to simplify the next step
currentToken = tokenizer.nextToken();
@@ -386,8 +389,8 @@ public class MailcapFile {
reportParseError(MailcapTokenizer.STRING_TOKEN,
currentToken, tokenizer.getCurrentTokenValue());
}
- String paramName =
- tokenizer.getCurrentTokenValue().toLowerCase();
+ String paramName = tokenizer.getCurrentTokenValue().
+ toLowerCase(Locale.ENGLISH);
// parse the '=' which separates the name from the value
currentToken = tokenizer.nextToken();
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/ClassType.java b/jaxws/src/share/classes/com/sun/codemodel/internal/ClassType.java
index 7943701af5a..845fbdb0292 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/ClassType.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/ClassType.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
/**
* This helps enable whether the JDefinedClass is a Class or Interface or
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/CodeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/CodeWriter.java
index 9e2174d9940..602e8ecb725 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/CodeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/CodeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.io.IOException;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotatable.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotatable.java
index 1c9e580fe29..c42297a82cc 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotatable.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotatable.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.lang.annotation.Annotation;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationArrayMember.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationArrayMember.java
index 12d68285f10..01b766f0cc6 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationArrayMember.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationArrayMember.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationStringValue.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationStringValue.java
index f7bc5eaeda7..07cd44f73c0 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationStringValue.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationStringValue.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationUse.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationUse.java
index df2d90cfdfb..1e9f8c6d201 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationUse.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationUse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationValue.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationValue.java
index 77e61cecc1e..a66be614977 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationValue.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationValue.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
/**
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationWriter.java
index 426ebd5d273..83fe71629f5 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnnotationWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.lang.annotation.Annotation;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnonymousClass.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnonymousClass.java
index 6a8727d3441..440d4001d6c 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAnonymousClass.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAnonymousClass.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
/**
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JArray.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JArray.java
index a9d0efd3689..d10da44d93f 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JArray.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JArray.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayClass.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayClass.java
index b6934c93c85..d86d08695cc 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayClass.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayClass.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.Iterator;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayCompRef.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayCompRef.java
index 87e78dd324d..6a433c0d4fb 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayCompRef.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JArrayCompRef.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignment.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignment.java
index d5a1934a0ab..91bfa57a68e 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignment.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignment.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignmentTarget.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignmentTarget.java
index 75368a3d0e7..f352498fd3d 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignmentTarget.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAssignmentTarget.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JAtom.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JAtom.java
index fe7bb364e5a..e4f9560f406 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JAtom.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JAtom.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JBlock.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JBlock.java
index c64b5e9c795..57d7552d7ab 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JBlock.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JBlock.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -220,16 +220,14 @@ public final class JBlock implements JGenerable, JStatement {
* @return Newly generated JInvocation
*/
public JInvocation invoke(JExpression expr, JMethod method) {
- return invoke(expr, method.name());
+ return insert(new JInvocation(expr, method));
}
/**
* Creates a static invocation statement.
*/
public JInvocation staticInvoke(JClass type, String method) {
- JInvocation i = new JInvocation(type, method);
- insert(i);
- return i;
+ return insert(new JInvocation(type, method));
}
/**
@@ -241,9 +239,7 @@ public final class JBlock implements JGenerable, JStatement {
* @return Newly generated JInvocation
*/
public JInvocation invoke(String method) {
- JInvocation i = new JInvocation((JExpression)null, method);
- insert(i);
- return i;
+ return insert(new JInvocation((JExpression)null, method));
}
/**
@@ -255,7 +251,7 @@ public final class JBlock implements JGenerable, JStatement {
* @return Newly generated JInvocation
*/
public JInvocation invoke(JMethod method) {
- return invoke(method.name());
+ return insert(new JInvocation((JExpression)null, method));
}
/**
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JBreak.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JBreak.java
index 6d82275c790..e4df8bfd412 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JBreak.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JBreak.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JCase.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JCase.java
index 3b415031129..27a4c3210e5 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JCase.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JCase.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
/**
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JCast.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JCast.java
index d840b4954b9..b427526e120 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JCast.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JCast.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JCatchBlock.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JCatchBlock.java
index 731e0b32191..a7c31207d49 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JCatchBlock.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JCatchBlock.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JClass.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JClass.java
index d4b7a9de58b..bbfd4aa685c 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JClass.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JClass.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -321,7 +321,7 @@ public abstract class JClass extends JType
/** Generates a static method invocation. */
public final JInvocation staticInvoke(JMethod method) {
- return staticInvoke(method.name());
+ return new JInvocation(this,method);
}
/** Generates a static method invocation. */
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JClassAlreadyExistsException.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JClassAlreadyExistsException.java
index 21b95114e88..850cfe837bf 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JClassAlreadyExistsException.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JClassAlreadyExistsException.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
/**
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JClassContainer.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JClassContainer.java
index 43cf24c391c..6f0e76a02d6 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JClassContainer.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JClassContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.Iterator;
@@ -146,7 +145,6 @@ public interface JClassContainer {
* newly created Annotation Type Declaration
* @exception JClassAlreadyExistsException
* When the specified class/interface was already created.
-
*/
public JDefinedClass _annotationTypeDeclaration(String name) throws JClassAlreadyExistsException;
@@ -158,7 +156,6 @@ public interface JClassContainer {
* newly created Enum
* @exception JClassAlreadyExistsException
* When the specified class/interface was already created.
-
*/
public JDefinedClass _enum (String name) throws JClassAlreadyExistsException;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JCodeModel.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JCodeModel.java
index 25791e0c1e7..1f674412186 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JCodeModel.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JCodeModel.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -446,13 +446,29 @@ public final class JCodeModel {
JClass clazz = ref(s.substring(start,idx));
+ return parseSuffix(clazz);
+ }
+
+ /**
+ * Parses additional left-associative suffixes, like type arguments
+ * and array specifiers.
+ */
+ private JClass parseSuffix(JClass clazz) throws ClassNotFoundException {
if(idx==s.length())
return clazz; // hit EOL
char ch = s.charAt(idx);
if(ch=='<')
- return parseArguments(clazz);
+ return parseSuffix(parseArguments(clazz));
+
+ if(ch=='[') {
+ if(s.charAt(idx+1)==']') {
+ idx+=2;
+ return parseSuffix(clazz.array());
+ }
+ throw new IllegalArgumentException("Expected ']' but found "+s.substring(idx+1));
+ }
return clazz;
}
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JCommentPart.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JCommentPart.java
index 3001b3c8fed..efd7eddede4 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JCommentPart.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JCommentPart.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.ArrayList;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JConditional.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JConditional.java
index 58534f4ebee..9e01118b907 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JConditional.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JConditional.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -75,6 +75,13 @@ public class JConditional implements JStatement {
return _else;
}
+ /**
+ * Creates ... else if(...) ... code.
+ */
+ public JConditional _elseif(JExpression boolExp) {
+ return _else()._if(boolExp);
+ }
+
public void state(JFormatter f) {
if(test==JExpr.TRUE) {
_then.generateBody(f);
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JContinue.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JContinue.java
index bc49f8122a9..fe89d7d7038 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JContinue.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JContinue.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JDeclaration.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JDeclaration.java
index 79ddbe154bb..50eaa1ef9fa 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JDeclaration.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JDeclaration.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JDefinedClass.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JDefinedClass.java
index b95e41524c9..ff22fae97fc 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JDefinedClass.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JDefinedClass.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -251,6 +251,13 @@ public class JDefinedClass
if (superClass == null)
throw new NullPointerException();
+ for( JClass o=superClass.outer(); o!=null; o=o.outer() ){
+ if(this==o){
+ throw new IllegalArgumentException("Illegal class inheritance loop." +
+ " Outer class " + this.name + " may not subclass from inner class: " + o.name());
+ }
+ }
+
this.superClass = superClass;
return this;
}
@@ -307,8 +314,9 @@ public class JDefinedClass
}
/**
- * This method generates reference to the JEnumConstant in
- * the class
+ * If the named enum already exists, the reference to it is returned.
+ * Otherwise this method generates a new enum reference with the given
+ * name and returns it.
*
* @param name
* The name of the constant.
@@ -316,8 +324,11 @@ public class JDefinedClass
* The generated type-safe enum constant.
*/
public JEnumConstant enumConstant(String name){
- JEnumConstant ec = new JEnumConstant(this, name);
- enumConstantsByName.put(name, ec);
+ JEnumConstant ec = enumConstantsByName.get(name);
+ if (null == ec) {
+ ec = new JEnumConstant(this, name);
+ enumConstantsByName.put(name, ec);
+ }
return ec;
}
@@ -417,7 +428,6 @@ public class JDefinedClass
* newly created Annotation Type Declaration
* @exception JClassAlreadyExistsException
* When the specified class/interface was already created.
-
*/
public JDefinedClass _annotationTypeDeclaration(String name) throws JClassAlreadyExistsException {
return _class (JMod.PUBLIC,name,ClassType.ANNOTATION_TYPE_DECL);
@@ -576,7 +586,6 @@ public class JDefinedClass
* null if not found.
*/
public JMethod getMethod(String name, JType[] argTypes) {
- outer :
for (JMethod m : methods) {
if (!m.name().equals(name))
continue;
@@ -740,8 +749,8 @@ public class JDefinedClass
f.nl().g(jdoc);
if (annotations != null){
- for( int i=0; i= 0)
- throw new IllegalArgumentException("JClass name contains '.': "
- + name);
+ throw new IllegalArgumentException("method name contains '.': " + name);
this.name = name;
}
+ private JInvocation(JGenerable object, JMethod method) {
+ this.object = object;
+ this.method =method;
+ }
+
/**
* Invokes a constructor of an object (i.e., creates
* a new object.)
@@ -131,10 +148,15 @@ public final class JInvocation extends JExpressionImpl implements JStatement {
} else {
if (isConstructor)
f.p("new").g(type).p('(');
- else if (object != null)
- f.g(object).p('.').p(name).p('(');
- else
- f.id(name).p('(');
+ else {
+ String name = this.name;
+ if(name==null) name=this.method.name();
+
+ if (object != null)
+ f.g(object).p('.').p(name).p('(');
+ else
+ f.id(name).p('(');
+ }
}
f.g(args);
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JJavaName.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JJavaName.java
index 3cf2c87da27..6b56e9251f7 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JJavaName.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JJavaName.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -51,6 +51,13 @@ public class JJavaName {
return true;
}
+ /**
+ * Checks if the given string is a valid fully qualified name.
+ */
+ public static boolean isFullyQualifiedClassName(String s) {
+ return isJavaPackageName(s);
+ }
+
/**
* Checks if the given string is a valid Java package name.
*/
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JLabel.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JLabel.java
index 84a4b575a0c..e46ba3d3724 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JLabel.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JLabel.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
/**
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JMethod.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JMethod.java
index 13c3c8b4797..b3d9f6223ca 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JMethod.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JMethod.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -38,49 +38,49 @@ import com.sun.codemodel.internal.util.ClassNameComparator;
*/
public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotatable {
- /**
- * Modifiers for this method
- */
- private JMods mods;
+ /**
+ * Modifiers for this method
+ */
+ private JMods mods;
- /**
- * Return type for this method
- */
- private JType type = null;
+ /**
+ * Return type for this method
+ */
+ private JType type = null;
- /**
- * Name of this method
- */
- private String name = null;
+ /**
+ * Name of this method
+ */
+ private String name = null;
- /**
- * List of parameters for this method's declaration
- */
- private final List params = new ArrayList();
+ /**
+ * List of parameters for this method's declaration
+ */
+ private final List params = new ArrayList();
- /**
- * Set of exceptions that this method may throw.
+ /**
+ * Set of exceptions that this method may throw.
* A set instance lazily created.
- */
- private Set _throws;
+ */
+ private Set _throws;
- /**
- * JBlock of statements that makes up the body this method
- */
- private JBlock body = null;
+ /**
+ * JBlock of statements that makes up the body this method
+ */
+ private JBlock body = null;
- private JDefinedClass outer;
+ private JDefinedClass outer;
- /**
- * javadoc comments for this JMethod
- */
- private JDocComment jdoc = null;
+ /**
+ * javadoc comments for this JMethod
+ */
+ private JDocComment jdoc = null;
- /**
- * Variable parameter for this method's varargs declaration
- * introduced in J2SE 1.5
- */
- private JVar varParam = null;
+ /**
+ * Variable parameter for this method's varargs declaration
+ * introduced in J2SE 1.5
+ */
+ private JVar varParam = null;
/**
* Annotations on this variable. Lazily created.
@@ -88,9 +88,9 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
private List annotations = null;
- private boolean isConstructor() {
- return type == null;
- }
+ private boolean isConstructor() {
+ return type == null;
+ }
/** To set the default value for the
* annotation member
@@ -98,40 +98,40 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
private JExpression defaultValue = null;
- /**
- * JMethod constructor
- *
- * @param mods
- * Modifiers for this method's declaration
- *
- * @param type
- * Return type for the method
- *
- * @param name
- * Name of this method
- */
- JMethod(JDefinedClass outer, int mods, JType type, String name) {
- this.mods = JMods.forMethod(mods);
- this.type = type;
- this.name = name;
- this.outer = outer;
- }
+ /**
+ * JMethod constructor
+ *
+ * @param mods
+ * Modifiers for this method's declaration
+ *
+ * @param type
+ * Return type for the method
+ *
+ * @param name
+ * Name of this method
+ */
+ JMethod(JDefinedClass outer, int mods, JType type, String name) {
+ this.mods = JMods.forMethod(mods);
+ this.type = type;
+ this.name = name;
+ this.outer = outer;
+ }
- /**
- * Constructor constructor
- *
- * @param mods
- * Modifiers for this constructor's declaration
- *
- * @param _class
- * JClass containing this constructor
- */
- JMethod(int mods, JDefinedClass _class) {
- this.mods = JMods.forMethod(mods);
- this.type = null;
- this.name = _class.name();
- this.outer = _class;
- }
+ /**
+ * Constructor constructor
+ *
+ * @param mods
+ * Modifiers for this constructor's declaration
+ *
+ * @param _class
+ * JClass containing this constructor
+ */
+ JMethod(int mods, JDefinedClass _class) {
+ this.mods = JMods.forMethod(mods);
+ this.type = null;
+ this.name = _class.name();
+ this.outer = _class;
+ }
private Set getThrows() {
if(_throws==null)
@@ -139,56 +139,56 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
return _throws;
}
- /**
- * Add an exception to the list of exceptions that this
- * method may throw.
- *
- * @param exception
- * Name of an exception that this method may throw
- */
- public JMethod _throws(JClass exception) {
+ /**
+ * Add an exception to the list of exceptions that this
+ * method may throw.
+ *
+ * @param exception
+ * Name of an exception that this method may throw
+ */
+ public JMethod _throws(JClass exception) {
getThrows().add(exception);
- return this;
- }
+ return this;
+ }
- public JMethod _throws(Class exception) {
- return _throws(outer.owner().ref(exception));
- }
+ public JMethod _throws(Class exception) {
+ return _throws(outer.owner().ref(exception));
+ }
- /**
- * Add the specified variable to the list of parameters
- * for this method signature.
- *
- * @param type
- * JType of the parameter being added
- *
- * @param name
- * Name of the parameter being added
- *
- * @return New parameter variable
- */
- public JVar param(int mods, JType type, String name) {
- JVar v = new JVar(JMods.forVar(mods), type, name, null);
- params.add(v);
- return v;
- }
+ /**
+ * Add the specified variable to the list of parameters
+ * for this method signature.
+ *
+ * @param type
+ * JType of the parameter being added
+ *
+ * @param name
+ * Name of the parameter being added
+ *
+ * @return New parameter variable
+ */
+ public JVar param(int mods, JType type, String name) {
+ JVar v = new JVar(JMods.forVar(mods), type, name, null);
+ params.add(v);
+ return v;
+ }
- public JVar param(JType type, String name) {
- return param(JMod.NONE, type, name);
- }
+ public JVar param(JType type, String name) {
+ return param(JMod.NONE, type, name);
+ }
- public JVar param(int mods, Class type, String name) {
- return param(mods, outer.owner()._ref(type), name);
- }
+ public JVar param(int mods, Class type, String name) {
+ return param(mods, outer.owner()._ref(type), name);
+ }
- public JVar param(Class type, String name) {
- return param(outer.owner()._ref(type), name);
- }
+ public JVar param(Class type, String name) {
+ return param(outer.owner()._ref(type), name);
+ }
- /**
- * @see #varParam(JType, String)
- */
- public JVar varParam(Class type, String name) {
+ /**
+ * @see #varParam(JType, String)
+ */
+ public JVar varParam(Class type, String name) {
return varParam(outer.owner()._ref(type),name);
}
@@ -210,25 +210,25 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
* method signature.
*/
public JVar varParam(JType type, String name) {
- if (!hasVarArgs()) {
+ if (!hasVarArgs()) {
varParam =
- new JVar(
- JMods.forVar(JMod.NONE),
- type.array(),
- name,
- null);
- return varParam;
- } else {
- throw new IllegalStateException(
- "Cannot have two varargs in a method,\n"
- + "Check if varParam method of JMethod is"
- + " invoked more than once");
-
- }
+ new JVar(
+ JMods.forVar(JMod.NONE),
+ type.array(),
+ name,
+ null);
+ return varParam;
+ } else {
+ throw new IllegalStateException(
+ "Cannot have two varargs in a method,\n"
+ + "Check if varParam method of JMethod is"
+ + " invoked more than once");
}
+ }
+
/**
* Adds an annotation to this variable.
* @param clazz
@@ -256,92 +256,106 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
return TypedAnnotationWriter.create(clazz,this);
}
- /**
- * Check if there are any varargs declared
- * for this method signature.
- */
- public boolean hasVarArgs() {
- return this.varParam!=null;
- }
+ /**
+ * Check if there are any varargs declared
+ * for this method signature.
+ */
+ public boolean hasVarArgs() {
+ return this.varParam!=null;
+ }
- public String name() {
- return name;
- }
+ public String name() {
+ return name;
+ }
- /**
- * Returns the return type.
- */
- public JType type() {
- return type;
- }
+ /**
+ * Changes the name of the method.
+ */
+ public void name(String n) {
+ this.name = n;
+ }
- /**
- * Returns all the parameter types in an array.
- * @return
- * If there's no parameter, an empty array will be returned.
- */
- public JType[] listParamTypes() {
- JType[] r = new JType[params.size()];
- for (int i = 0; i < r.length; i++)
- r[i] = params.get(i).type();
- return r;
- }
+ /**
+ * Returns the return type.
+ */
+ public JType type() {
+ return type;
+ }
- /**
- * Returns the varags parameter type.
- * @return
- * If there's no vararg parameter type, null will be returned.
- */
- public JType listVarParamType() {
- if (varParam != null)
- return varParam.type();
- else
- return null;
- }
+ /**
+ * Overrides the return type.
+ */
+ public void type(JType t) {
+ this.type = t;
+ }
- /**
- * Returns all the parameters in an array.
- * @return
- * If there's no parameter, an empty array will be returned.
- */
- public JVar[] listParams() {
- return params.toArray(new JVar[params.size()]);
- }
+ /**
+ * Returns all the parameter types in an array.
+ * @return
+ * If there's no parameter, an empty array will be returned.
+ */
+ public JType[] listParamTypes() {
+ JType[] r = new JType[params.size()];
+ for (int i = 0; i < r.length; i++)
+ r[i] = params.get(i).type();
+ return r;
+ }
- /**
- * Returns the variable parameter
- * @return
- * If there's no parameter, null will be returned.
- */
- public JVar listVarParam() {
- return varParam;
- }
+ /**
+ * Returns the varags parameter type.
+ * @return
+ * If there's no vararg parameter type, null will be returned.
+ */
+ public JType listVarParamType() {
+ if (varParam != null)
+ return varParam.type();
+ else
+ return null;
+ }
- /**
- * Returns true if the method has the specified signature.
- */
- public boolean hasSignature(JType[] argTypes) {
- JVar[] p = listParams();
- if (p.length != argTypes.length)
- return false;
+ /**
+ * Returns all the parameters in an array.
+ * @return
+ * If there's no parameter, an empty array will be returned.
+ */
+ public JVar[] listParams() {
+ return params.toArray(new JVar[params.size()]);
+ }
- for (int i = 0; i < p.length; i++)
- if (!p[i].type().equals(argTypes[i]))
- return false;
+ /**
+ * Returns the variable parameter
+ * @return
+ * If there's no parameter, null will be returned.
+ */
+ public JVar listVarParam() {
+ return varParam;
+ }
- return true;
- }
+ /**
+ * Returns true if the method has the specified signature.
+ */
+ public boolean hasSignature(JType[] argTypes) {
+ JVar[] p = listParams();
+ if (p.length != argTypes.length)
+ return false;
- /**
- * Get the block that makes up body of this method
- *
- * @return Body of method
- */
- public JBlock body() {
- if (body == null)
- body = new JBlock();
- return body;
- }
+ for (int i = 0; i < p.length; i++)
+ if (!p[i].type().equals(argTypes[i]))
+ return false;
+
+ return true;
+ }
+
+ /**
+ * Get the block that makes up body of this method
+ *
+ * @return Body of method
+ */
+ public JBlock body() {
+ if (body == null)
+ body = new JBlock();
+ return body;
+ }
/**
* Specify the default value for this annotation member
@@ -353,37 +367,37 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
this.defaultValue = value;
}
- /**
- * Creates, if necessary, and returns the class javadoc for this
- * JDefinedClass
- *
- * @return JDocComment containing javadocs for this class
- */
- public JDocComment javadoc() {
- if (jdoc == null)
- jdoc = new JDocComment(owner());
- return jdoc;
- }
+ /**
+ * Creates, if necessary, and returns the class javadoc for this
+ * JDefinedClass
+ *
+ * @return JDocComment containing javadocs for this class
+ */
+ public JDocComment javadoc() {
+ if (jdoc == null)
+ jdoc = new JDocComment(owner());
+ return jdoc;
+ }
- public void declare(JFormatter f) {
- if (jdoc != null)
- f.g(jdoc);
+ public void declare(JFormatter f) {
+ if (jdoc != null)
+ f.g(jdoc);
if (annotations != null){
for (JAnnotationUse a : annotations)
f.g(a).nl();
}
- // declare the generics parameters
- super.declare(f);
+ // declare the generics parameters
+ super.declare(f);
- f.g(mods);
- if (!isConstructor())
- f.g(type);
- f.id(name).p('(').i();
+ f.g(mods);
+ if (!isConstructor())
+ f.g(type);
+ f.id(name).p('(').i();
// when parameters are printed in new lines, we want them to be indented.
// there's a good chance no newlines happen, too, but just in case it does.
- boolean first = true;
+ boolean first = true;
for (JVar var : params) {
if (!first)
f.p(',');
@@ -392,33 +406,33 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
f.b(var);
first = false;
}
- if (hasVarArgs()) {
- if (!first)
- f.p(',');
- f.g(varParam.type().elementType());
- f.p("... ");
- f.id(varParam.name());
- }
+ if (hasVarArgs()) {
+ if (!first)
+ f.p(',');
+ f.g(varParam.type().elementType());
+ f.p("... ");
+ f.id(varParam.name());
+ }
- f.o().p(')');
- if (_throws!=null && !_throws.isEmpty()) {
- f.nl().i().p("throws").g(_throws).nl().o();
- }
+ f.o().p(')');
+ if (_throws!=null && !_throws.isEmpty()) {
+ f.nl().i().p("throws").g(_throws).nl().o();
+ }
if (defaultValue != null) {
f.p("default ");
f.g(defaultValue);
}
- if (body != null) {
- f.s(body);
- } else if (
- !outer.isInterface() && !outer.isAnnotationTypeDeclaration() && !mods.isAbstract() && !mods.isNative()) {
- // Print an empty body for non-native, non-abstract methods
- f.s(new JBlock());
- } else {
- f.p(';').nl();
- }
+ if (body != null) {
+ f.s(body);
+ } else if (
+ !outer.isInterface() && !outer.isAnnotationTypeDeclaration() && !mods.isAbstract() && !mods.isNative()) {
+ // Print an empty body for non-native, non-abstract methods
+ f.s(new JBlock());
+ } else {
+ f.p(';').nl();
}
+ }
/**
* @return
@@ -433,10 +447,10 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
* @deprecated use {@link #mods()}
*/
public JMods getMods() {
- return mods;
- }
+ return mods;
+ }
- protected JCodeModel owner() {
- return outer.owner();
- }
+ protected JCodeModel owner() {
+ return outer.owner();
+ }
}
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JMod.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JMod.java
index 0f32e76144a..64e0c93e04c 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JMod.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JMod.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JMods.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JMods.java
index daf5b8529b6..60aad8fef62 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JMods.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JMods.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -41,17 +41,17 @@ public class JMods implements JGenerable {
= JMod.FINAL;
private static int FIELD
- = (JMod.PUBLIC | JMod.PRIVATE | JMod.PROTECTED
- | JMod.STATIC | JMod.FINAL
- | JMod.TRANSIENT | JMod.VOLATILE);
+ = (JMod.PUBLIC | JMod.PRIVATE | JMod.PROTECTED
+ | JMod.STATIC | JMod.FINAL
+ | JMod.TRANSIENT | JMod.VOLATILE);
private static int METHOD
- = (JMod.PUBLIC | JMod.PRIVATE | JMod.PROTECTED | JMod.FINAL
- | JMod.ABSTRACT | JMod.STATIC | JMod.NATIVE | JMod.SYNCHRONIZED);
+ = (JMod.PUBLIC | JMod.PRIVATE | JMod.PROTECTED | JMod.FINAL
+ | JMod.ABSTRACT | JMod.STATIC | JMod.NATIVE | JMod.SYNCHRONIZED);
private static int CLASS
- = (JMod.PUBLIC | JMod.PRIVATE | JMod.PROTECTED
- | JMod.STATIC | JMod.FINAL | JMod.ABSTRACT );
+ = (JMod.PUBLIC | JMod.PRIVATE | JMod.PROTECTED
+ | JMod.STATIC | JMod.FINAL | JMod.ABSTRACT );
private static int INTERFACE = JMod.PUBLIC;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JNarrowedClass.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JNarrowedClass.java
index dc136f4c034..3320e7dd967 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JNarrowedClass.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JNarrowedClass.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.Iterator;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JNullType.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JNullType.java
index 7be3c061a66..93ff0491064 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JNullType.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JNullType.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.Collections;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JOp.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JOp.java
index cd436549591..23f75d5e4bd 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JOp.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JOp.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JPackage.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JPackage.java
index 76b0252b310..e26a961dec2 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JPackage.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JPackage.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JPrimitiveType.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JPrimitiveType.java
index 8e6fbfe87e2..f1c9283d8ff 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JPrimitiveType.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JPrimitiveType.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JResourceFile.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JResourceFile.java
index d1e09254b3c..c88d370edc6 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JResourceFile.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JResourceFile.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JReturn.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JReturn.java
index 7df52148824..a690732cefc 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JReturn.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JReturn.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JStatement.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JStatement.java
index 51a9492a6de..8df7b37c4cd 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JStatement.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JStatement.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JStringLiteral.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JStringLiteral.java
index 6178a58a1bb..afe70124d4c 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JStringLiteral.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JStringLiteral.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
/**
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JSwitch.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JSwitch.java
index 1bb0bdbfcf7..44af487e089 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JSwitch.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JSwitch.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.ArrayList;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JThrow.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JThrow.java
index 7bf099f43f4..050cf8a87d2 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JThrow.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JThrow.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JTryBlock.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JTryBlock.java
index 35cc1e5c8bb..1739e1308b1 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JTryBlock.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JTryBlock.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JType.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JType.java
index 489cc1789dc..b208d49bb12 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JType.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JType.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeVar.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeVar.java
index ce9c8bae3f8..de745686080 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeVar.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeVar.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.Iterator;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeWildcard.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeWildcard.java
index 4bb2511b09c..9412d3e3156 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeWildcard.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JTypeWildcard.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.util.Iterator;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JVar.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JVar.java
index 0a94f7339b4..15b0c4f212e 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JVar.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JVar.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/JWhileLoop.java b/jaxws/src/share/classes/com/sun/codemodel/internal/JWhileLoop.java
index 4c67388a70d..930e2be1eb1 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JWhileLoop.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JWhileLoop.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/TypedAnnotationWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/TypedAnnotationWriter.java
index 11fa7e39ea4..b58d1f50d14 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/TypedAnnotationWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/TypedAnnotationWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal;
import java.lang.reflect.InvocationHandler;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JBinaryFile.java b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JBinaryFile.java
index f53937f705b..61a22e8ffa7 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JBinaryFile.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JBinaryFile.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.fmt;
import java.io.ByteArrayOutputStream;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JPropertyFile.java b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JPropertyFile.java
index 67c09b7f4e2..81e29f04f02 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JPropertyFile.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JPropertyFile.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.fmt;
import java.io.IOException;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JSerializedObject.java b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JSerializedObject.java
index 68e8b8dbd3d..12452641a09 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JSerializedObject.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JSerializedObject.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticFile.java b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticFile.java
index 3c5d9128db3..450aac31a43 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticFile.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticFile.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.fmt;
import java.io.DataInputStream;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticJavaFile.java b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticJavaFile.java
index 234b768abdd..00d88e876ef 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticJavaFile.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JStaticJavaFile.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.fmt;
import java.io.BufferedReader;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JTextFile.java b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JTextFile.java
index ee9b629ac6e..dbc44daee95 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JTextFile.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/JTextFile.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.fmt;
import java.io.IOException;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/package.html b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/package.html
index c5227a2d1f1..2493ed41413 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/package.html
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/fmt/package.html
@@ -1,3 +1,27 @@
+
Various resource file formats (classes that implement JResourceFile
).
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/package-info.java b/jaxws/src/share/classes/com/sun/codemodel/internal/package-info.java
index 45f2d5f838c..aa7a1695eb1 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/package-info.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
/**
* Library for generating Java source code
.
*
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/util/ClassNameComparator.java b/jaxws/src/share/classes/com/sun/codemodel/internal/util/ClassNameComparator.java
index 40874364279..46b4270ff89 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/util/ClassNameComparator.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/util/ClassNameComparator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.util;
import java.util.Comparator;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/util/EncoderFactory.java b/jaxws/src/share/classes/com/sun/codemodel/internal/util/EncoderFactory.java
index c4d3f07c6b6..c759b2b249e 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/util/EncoderFactory.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/util/EncoderFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,6 +22,10 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
+/*
+ * @(#)$Id: EncoderFactory.java,v 1.3 2005/09/10 19:07:33 kohsuke Exp $
+ */
+
package com.sun.codemodel.internal.util;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/util/JavadocEscapeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/util/JavadocEscapeWriter.java
index d8947ff2d4e..6db471edcf5 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/util/JavadocEscapeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/util/JavadocEscapeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.util;
import java.io.FilterWriter;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/util/MS1252Encoder.java b/jaxws/src/share/classes/com/sun/codemodel/internal/util/MS1252Encoder.java
index 2dbcd787fdb..4fa997964ce 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/util/MS1252Encoder.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/util/MS1252Encoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,6 +22,10 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
+/*
+ * @(#)$Id: MS1252Encoder.java,v 1.2 2005/09/10 19:07:33 kohsuke Exp $
+ */
+
package com.sun.codemodel.internal.util;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/util/SingleByteEncoder.java b/jaxws/src/share/classes/com/sun/codemodel/internal/util/SingleByteEncoder.java
index 3f0d31303ad..3e025a7a5ed 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/util/SingleByteEncoder.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/util/SingleByteEncoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,10 @@
* have any questions.
*/
+/*
+ * @(#)SingleByteEncoder.java 1.14 03/01/23
+ */
+
package com.sun.codemodel.internal.util;
import java.nio.ByteBuffer;
@@ -47,109 +51,109 @@ abstract class SingleByteEncoder
private final Surrogate.Parser sgp = new Surrogate.Parser();
protected SingleByteEncoder(Charset cs,
- short[] index1, String index2,
- int mask1, int mask2, int shift)
+ short[] index1, String index2,
+ int mask1, int mask2, int shift)
{
- super(cs, 1.0f, 1.0f);
- this.index1 = index1;
- this.index2 = index2;
- this.mask1 = mask1;
- this.mask2 = mask2;
- this.shift = shift;
+ super(cs, 1.0f, 1.0f);
+ this.index1 = index1;
+ this.index2 = index2;
+ this.mask1 = mask1;
+ this.mask2 = mask2;
+ this.shift = shift;
}
public boolean canEncode(char c) {
- char testEncode;
- testEncode = index2.charAt(index1[(c & mask1) >> shift]
- + (c & mask2));
- if (testEncode == '\u0000')
- return false;
- else
- return true;
+ char testEncode;
+ testEncode = index2.charAt(index1[(c & mask1) >> shift]
+ + (c & mask2));
+ if (testEncode == '\u0000')
+ return false;
+ else
+ return true;
}
private CoderResult encodeArrayLoop(CharBuffer src, ByteBuffer dst) {
- char[] sa = src.array();
- int sp = src.arrayOffset() + src.position();
- int sl = src.arrayOffset() + src.limit();
- sp = (sp <= sl ? sp : sl);
- byte[] da = dst.array();
- int dp = dst.arrayOffset() + dst.position();
- int dl = dst.arrayOffset() + dst.limit();
- dp = (dp <= dl ? dp : dl);
+ char[] sa = src.array();
+ int sp = src.arrayOffset() + src.position();
+ int sl = src.arrayOffset() + src.limit();
+ sp = (sp <= sl ? sp : sl);
+ byte[] da = dst.array();
+ int dp = dst.arrayOffset() + dst.position();
+ int dl = dst.arrayOffset() + dst.limit();
+ dp = (dp <= dl ? dp : dl);
- try {
- while (sp < sl) {
- char c = sa[sp];
- if (Surrogate.is(c)) {
- if (sgp.parse(c, sa, sp, sl) < 0)
- return sgp.error();
- return sgp.unmappableResult();
- }
- if (c >= '\uFFFE')
- return CoderResult.unmappableForLength(1);
- if (dl - dp < 1)
- return CoderResult.OVERFLOW;
+ try {
+ while (sp < sl) {
+ char c = sa[sp];
+ if (Surrogate.is(c)) {
+ if (sgp.parse(c, sa, sp, sl) < 0)
+ return sgp.error();
+ return sgp.unmappableResult();
+ }
+ if (c >= '\uFFFE')
+ return CoderResult.unmappableForLength(1);
+ if (dl - dp < 1)
+ return CoderResult.OVERFLOW;
- char e = index2.charAt(index1[(c & mask1) >> shift]
- + (c & mask2));
+ char e = index2.charAt(index1[(c & mask1) >> shift]
+ + (c & mask2));
- // If output byte is zero because input char is zero
- // then character is mappable, o.w. fail
- if (e == '\u0000' && c != '\u0000')
- return CoderResult.unmappableForLength(1);
+ // If output byte is zero because input char is zero
+ // then character is mappable, o.w. fail
+ if (e == '\u0000' && c != '\u0000')
+ return CoderResult.unmappableForLength(1);
- sp++;
- da[dp++] = (byte)e;
- }
- return CoderResult.UNDERFLOW;
- } finally {
- src.position(sp - src.arrayOffset());
- dst.position(dp - dst.arrayOffset());
- }
+ sp++;
+ da[dp++] = (byte)e;
+ }
+ return CoderResult.UNDERFLOW;
+ } finally {
+ src.position(sp - src.arrayOffset());
+ dst.position(dp - dst.arrayOffset());
+ }
}
private CoderResult encodeBufferLoop(CharBuffer src, ByteBuffer dst) {
- int mark = src.position();
- try {
- while (src.hasRemaining()) {
- char c = src.get();
- if (Surrogate.is(c)) {
- if (sgp.parse(c, src) < 0)
- return sgp.error();
- return sgp.unmappableResult();
- }
- if (c >= '\uFFFE')
- return CoderResult.unmappableForLength(1);
- if (!dst.hasRemaining())
- return CoderResult.OVERFLOW;
+ int mark = src.position();
+ try {
+ while (src.hasRemaining()) {
+ char c = src.get();
+ if (Surrogate.is(c)) {
+ if (sgp.parse(c, src) < 0)
+ return sgp.error();
+ return sgp.unmappableResult();
+ }
+ if (c >= '\uFFFE')
+ return CoderResult.unmappableForLength(1);
+ if (!dst.hasRemaining())
+ return CoderResult.OVERFLOW;
- char e = index2.charAt(index1[(c & mask1) >> shift]
- + (c & mask2));
+ char e = index2.charAt(index1[(c & mask1) >> shift]
+ + (c & mask2));
- // If output byte is zero because input char is zero
- // then character is mappable, o.w. fail
- if (e == '\u0000' && c != '\u0000')
- return CoderResult.unmappableForLength(1);
+ // If output byte is zero because input char is zero
+ // then character is mappable, o.w. fail
+ if (e == '\u0000' && c != '\u0000')
+ return CoderResult.unmappableForLength(1);
- mark++;
- dst.put((byte)e);
- }
- return CoderResult.UNDERFLOW;
- } finally {
- src.position(mark);
- }
+ mark++;
+ dst.put((byte)e);
+ }
+ return CoderResult.UNDERFLOW;
+ } finally {
+ src.position(mark);
+ }
}
protected CoderResult encodeLoop(CharBuffer src, ByteBuffer dst) {
- if (true && src.hasArray() && dst.hasArray())
- return encodeArrayLoop(src, dst);
- else
- return encodeBufferLoop(src, dst);
+ if (true && src.hasArray() && dst.hasArray())
+ return encodeArrayLoop(src, dst);
+ else
+ return encodeBufferLoop(src, dst);
}
public byte encode(char inputChar) {
- return (byte)index2.charAt(index1[(inputChar & mask1) >> shift] +
- (inputChar & mask2));
+ return (byte)index2.charAt(index1[(inputChar & mask1) >> shift] +
+ (inputChar & mask2));
}
}
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/util/Surrogate.java b/jaxws/src/share/classes/com/sun/codemodel/internal/util/Surrogate.java
index 0081f24bf5d..9cf6b2108f1 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/util/Surrogate.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/util/Surrogate.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,7 @@ import java.nio.charset.CoderResult;
* Utility class for dealing with surrogates.
*
* @author Mark Reinhold
+ * @version 1.11, 03/01/23
*/
class Surrogate {
@@ -111,7 +112,7 @@ class Surrogate {
public Parser() { }
- private int character; // UCS-4
+ private int character; // UCS-4
private CoderResult error = CoderResult.UNDERFLOW;
private boolean isPair;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/util/UnicodeEscapeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/util/UnicodeEscapeWriter.java
index 549c89cc13b..ad09f15817a 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/util/UnicodeEscapeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/util/UnicodeEscapeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.util;
import java.io.FilterWriter;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FileCodeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FileCodeWriter.java
index 58cd9d76d7f..5a55423b4c5 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FileCodeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FileCodeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.writer;
import java.io.File;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FilterCodeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FilterCodeWriter.java
index cad99ce6155..1523d1a8d0f 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FilterCodeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/FilterCodeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.writer;
import java.io.OutputStream;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ProgressCodeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ProgressCodeWriter.java
index 4b923ad098b..1bf8f845c75 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ProgressCodeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ProgressCodeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.writer;
import java.io.File;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/PrologCodeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/PrologCodeWriter.java
index cb785a7a76e..cbb5b203ba5 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/PrologCodeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/PrologCodeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.writer;
import java.io.IOException;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/SingleStreamCodeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/SingleStreamCodeWriter.java
index 52b959739aa..10740dfa422 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/SingleStreamCodeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/SingleStreamCodeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.writer;
import java.io.FilterOutputStream;
diff --git a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ZipCodeWriter.java b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ZipCodeWriter.java
index 44975d934bb..0d345993bf5 100644
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ZipCodeWriter.java
+++ b/jaxws/src/share/classes/com/sun/codemodel/internal/writer/ZipCodeWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.codemodel.internal.writer;
import java.io.FilterOutputStream;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/ByteArrayDataSource.java b/jaxws/src/share/classes/com/sun/istack/internal/ByteArrayDataSource.java
index 74193498dbb..b11eb1bb3c3 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/ByteArrayDataSource.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/ByteArrayDataSource.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import javax.activation.DataSource;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/FinalArrayList.java b/jaxws/src/share/classes/com/sun/istack/internal/FinalArrayList.java
index 357e6ff28bc..6cc67b466e4 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/FinalArrayList.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/FinalArrayList.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import java.util.ArrayList;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/FragmentContentHandler.java b/jaxws/src/share/classes/com/sun/istack/internal/FragmentContentHandler.java
index 81a71bedee0..c9b77721c9a 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/FragmentContentHandler.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/FragmentContentHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import org.xml.sax.helpers.XMLFilterImpl;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/Interned.java b/jaxws/src/share/classes/com/sun/istack/internal/Interned.java
index 17bf5c36892..26e6bff8648 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/Interned.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/Interned.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import java.lang.annotation.Documented;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/NotNull.java b/jaxws/src/share/classes/com/sun/istack/internal/NotNull.java
index b8a103ca9f8..f31eb46f248 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/NotNull.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/NotNull.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import java.lang.annotation.Documented;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/Nullable.java b/jaxws/src/share/classes/com/sun/istack/internal/Nullable.java
index 2a785fe6db3..269d2498193 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/Nullable.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/Nullable.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import java.lang.annotation.Documented;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/Pool.java b/jaxws/src/share/classes/com/sun/istack/internal/Pool.java
index 67405219be7..957a3362e3a 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/Pool.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/Pool.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import java.util.concurrent.ConcurrentLinkedQueue;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/SAXException2.java b/jaxws/src/share/classes/com/sun/istack/internal/SAXException2.java
index 99fb6630926..558d8ce57c5 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/SAXException2.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/SAXException2.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import org.xml.sax.SAXException;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/SAXParseException2.java b/jaxws/src/share/classes/com/sun/istack/internal/SAXParseException2.java
index dfd68fe6cd6..0c6095f0a5a 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/SAXParseException2.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/SAXParseException2.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal;
import org.xml.sax.SAXParseException;
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/XMLStreamException2.java b/jaxws/src/share/classes/com/sun/istack/internal/XMLStreamException2.java
new file mode 100644
index 00000000000..c88f6aea2c4
--- /dev/null
+++ b/jaxws/src/share/classes/com/sun/istack/internal/XMLStreamException2.java
@@ -0,0 +1,62 @@
+/*
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+package com.sun.istack.internal;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.Location;
+
+/**
+ * {@link XMLStreamException} that properly handles exception chaining.
+ *
+ * @author Kohsuke Kawaguchi
+ */
+public class XMLStreamException2 extends XMLStreamException {
+ public XMLStreamException2(String msg) {
+ super(msg);
+ }
+
+ public XMLStreamException2(Throwable th) {
+ super(th);
+ }
+
+ public XMLStreamException2(String msg, Throwable th) {
+ super(msg, th);
+ }
+
+ public XMLStreamException2(String msg, Location location) {
+ super(msg, location);
+ }
+
+ public XMLStreamException2(String msg, Location location, Throwable th) {
+ super(msg, location, th);
+ }
+
+ /**
+ * {@link XMLStreamException} doesn't return the correct cause.
+ */
+ public Throwable getCause() {
+ return getNestedException();
+ }
+}
diff --git a/jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/XMLStreamReaderToContentHandler.java b/jaxws/src/share/classes/com/sun/istack/internal/XMLStreamReaderToContentHandler.java
similarity index 93%
rename from jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/XMLStreamReaderToContentHandler.java
rename to jaxws/src/share/classes/com/sun/istack/internal/XMLStreamReaderToContentHandler.java
index 5c544fcc02c..cf6c0d46d40 100644
--- a/jaxws/src/share/classes/com/sun/xml/internal/ws/util/xml/XMLStreamReaderToContentHandler.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/XMLStreamReaderToContentHandler.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,20 +22,19 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
+package com.sun.istack.internal;
-package com.sun.xml.internal.ws.util.xml;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamConstants;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
-
-import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
-import org.xml.sax.Locator;
import org.xml.sax.SAXException;
+import org.xml.sax.Locator;
+import org.xml.sax.Attributes;
import org.xml.sax.helpers.AttributesImpl;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.namespace.QName;
+
/**
* This is a simple utility class that adapts StAX events from an
* {@link XMLStreamReader} to SAX events on a
@@ -43,6 +42,7 @@ import org.xml.sax.helpers.AttributesImpl;
* parser technologies.
*
* @author Ryan.Shoemaker@Sun.COM
+ * @version 1.0
*/
public class XMLStreamReaderToContentHandler {
@@ -56,6 +56,11 @@ public class XMLStreamReaderToContentHandler {
// event that was fired (such as end element)
private boolean eagerQuit;
+ /**
+ * If true, not start/endDocument event.
+ */
+ private boolean fragment;
+
/**
* Construct a new StAX to SAX adapter that will convert a StAX event
* stream into a SAX event stream.
@@ -65,10 +70,11 @@ public class XMLStreamReaderToContentHandler {
* @param saxCore
* SAXevent sink
*/
- public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, ContentHandler saxCore, boolean eagerQuit) {
+ public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, ContentHandler saxCore, boolean eagerQuit, boolean fragment) {
this.staxStreamReader = staxCore;
this.saxHandler = saxCore;
this.eagerQuit = eagerQuit;
+ this.fragment = fragment;
}
/*
@@ -152,15 +158,21 @@ public class XMLStreamReaderToContentHandler {
handleEndDocument();
} catch (SAXException e) {
- throw new XMLStreamException(e);
+ throw new XMLStreamException2(e);
}
}
private void handleEndDocument() throws SAXException {
+ if(fragment)
+ return;
+
saxHandler.endDocument();
}
private void handleStartDocument() throws SAXException {
+ if(fragment)
+ return;
+
saxHandler.setDocumentLocator(new Locator() {
public int getColumnNumber() {
return staxStreamReader.getLocation().getColumnNumber();
@@ -184,7 +196,7 @@ public class XMLStreamReaderToContentHandler {
staxStreamReader.getPITarget(),
staxStreamReader.getPIData());
} catch (SAXException e) {
- throw new XMLStreamException(e);
+ throw new XMLStreamException2(e);
}
}
@@ -195,7 +207,7 @@ public class XMLStreamReaderToContentHandler {
staxStreamReader.getTextStart(),
staxStreamReader.getTextLength() );
} catch (SAXException e) {
- throw new XMLStreamException(e);
+ throw new XMLStreamException2(e);
}
}
@@ -203,11 +215,15 @@ public class XMLStreamReaderToContentHandler {
QName qName = staxStreamReader.getName();
try {
+ String pfix = qName.getPrefix();
+ String rawname = (pfix == null || pfix.length() == 0)
+ ? qName.getLocalPart()
+ : pfix + ':' + qName.getLocalPart();
// fire endElement
saxHandler.endElement(
qName.getNamespaceURI(),
qName.getLocalPart(),
- qName.toString());
+ rawname);
// end namespace bindings
int nsCount = staxStreamReader.getNamespaceCount();
@@ -219,7 +235,7 @@ public class XMLStreamReaderToContentHandler {
saxHandler.endPrefixMapping(prefix);
}
} catch (SAXException e) {
- throw new XMLStreamException(e);
+ throw new XMLStreamException2(e);
}
}
@@ -249,7 +265,7 @@ public class XMLStreamReaderToContentHandler {
rawname,
attrs);
} catch (SAXException e) {
- throw new XMLStreamException(e);
+ throw new XMLStreamException2(e);
}
}
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/package-info.java b/jaxws/src/share/classes/com/sun/istack/internal/package-info.java
index a9772934dfb..60a915df58d 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/package-info.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
/**
* istack-commons runtime utilities.
*/
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/tools/APTTypeVisitor.java b/jaxws/src/share/classes/com/sun/istack/internal/tools/APTTypeVisitor.java
index 55dd90b60e5..2678f1437b3 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/tools/APTTypeVisitor.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/tools/APTTypeVisitor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.istack.internal.tools;
import com.sun.mirror.type.TypeMirror;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/AntErrorListener.java b/jaxws/src/share/classes/com/sun/istack/internal/tools/MaskingClassLoader.java
similarity index 51%
rename from jaxws/src/share/classes/com/sun/tools/internal/txw2/AntErrorListener.java
rename to jaxws/src/share/classes/com/sun/istack/internal/tools/MaskingClassLoader.java
index 9a666ee92d2..8159a7e677b 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/AntErrorListener.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/tools/MaskingClassLoader.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,46 +22,47 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
+package com.sun.istack.internal.tools;
-package com.sun.tools.internal.txw2;
-
-import org.apache.tools.ant.Project;
-import org.xml.sax.SAXParseException;
-
-import java.text.MessageFormat;
+import java.util.Collection;
/**
+ * {@link ClassLoader} that masks a specified set of classes
+ * from its parent class loader.
+ *
+ *
+ * This code is used to create an isolated environment.
+ *
* @author Kohsuke Kawaguchi
*/
-public class AntErrorListener implements ErrorListener {
- private final Project project;
+public class MaskingClassLoader extends ClassLoader {
- public AntErrorListener(Project p) {
- this.project = p;
+ private final String[] masks;
+
+ public MaskingClassLoader(String... masks) {
+ this.masks = masks;
}
- public void error(SAXParseException e) {
- print(e,Project.MSG_ERR);
+ public MaskingClassLoader(Collection masks) {
+ this(masks.toArray(new String[masks.size()]));
}
- public void fatalError(SAXParseException e) {
- print(e,Project.MSG_ERR);
+ public MaskingClassLoader(ClassLoader parent, String... masks) {
+ super(parent);
+ this.masks = masks;
}
- public void warning(SAXParseException e) {
- print(e,Project.MSG_WARN);
+ public MaskingClassLoader(ClassLoader parent, Collection masks) {
+ this(parent, masks.toArray(new String[masks.size()]));
}
- private void print(SAXParseException e, int level) {
- project.log(e.getMessage(),level);
- project.log(getLocation(e),level);
- }
+ @Override
+ protected synchronized Class> loadClass(String name, boolean resolve) throws ClassNotFoundException {
+ for (String mask : masks) {
+ if(name.startsWith(mask))
+ throw new ClassNotFoundException();
+ }
- String getLocation(SAXParseException e) {
- return MessageFormat.format(" {0}:{1} of {2}",
- new Object[]{
- String.valueOf(e.getLineNumber()),
- String.valueOf(e.getColumnNumber()),
- e.getSystemId()});
+ return super.loadClass(name, resolve);
}
}
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/tools/ParallelWorldClassLoader.java b/jaxws/src/share/classes/com/sun/istack/internal/tools/ParallelWorldClassLoader.java
new file mode 100644
index 00000000000..013a0aa12ad
--- /dev/null
+++ b/jaxws/src/share/classes/com/sun/istack/internal/tools/ParallelWorldClassLoader.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+package com.sun.istack.internal.tools;
+
+import java.io.InputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.net.URL;
+import java.net.MalformedURLException;
+import java.util.Enumeration;
+
+/**
+ * Load classes/resources from a side folder, so that
+ * classes of the same package can live in a single jar file.
+ *
+ *
+ * For example, with the following jar file:
+ *
+ * /
+ * +- foo
+ * +- X.class
+ * +- bar
+ * +- X.class
+ *
+ *
+ * {@link ParallelWorldClassLoader}("foo/") would load X.class from
+ * /foo/X.class (note that X is defined in the root package, not
+ * foo.X.
+ *
+ *
+ * This can be combined with {@link MaskingClassLoader} to mask classes which are loaded by the parent
+ * class loader so that the child class loader
+ * classes living in different folders are loaded
+ * before the parent class loader loads classes living the jar file publicly
+ * visible
+ * For example, with the following jar file:
+ *
+ * /
+ * +- foo
+ * +- X.class
+ * +- bar
+ * +-foo
+ * +- X.class
+ *
+ *
+ * {@link ParallelWorldClassLoader}(MaskingClassLoader.class.getClassLoader()) would load foo.X.class from
+ * /bar/foo.X.class not the foo.X.class in the publicly visible place in the jar file, thus
+ * masking the parent classLoader from loading the class from foo.X.class
+ * (note that X is defined in the package foo, not
+ * bar.foo.X.
+ *
+ * @author Kohsuke Kawaguchi
+ */
+public class ParallelWorldClassLoader extends ClassLoader {
+
+ /**
+ * Strings like "prefix/", "abc/", or "" to indicate
+ * classes should be loaded normally.
+ */
+ private final String prefix;
+
+ public ParallelWorldClassLoader(ClassLoader parent,String prefix) {
+ super(parent);
+ this.prefix = prefix;
+ }
+
+ protected Class findClass(String name) throws ClassNotFoundException {
+ StringBuffer sb = new StringBuffer(name.length()+prefix.length()+6);
+ sb.append(prefix).append(name.replace('.','/')).append(".class");
+
+ InputStream is = getParent().getResourceAsStream(sb.toString());
+ if (is==null)
+ throw new ClassNotFoundException(name);
+
+ try {
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ byte[] buf = new byte[1024];
+ int len;
+ while((len=is.read(buf))>=0)
+ baos.write(buf,0,len);
+
+ buf = baos.toByteArray();
+ int packIndex = name.lastIndexOf('.');
+ if (packIndex != -1) {
+ String pkgname = name.substring(0, packIndex);
+ // Check if package already loaded.
+ Package pkg = getPackage(pkgname);
+ if (pkg == null) {
+ definePackage(pkgname, null, null, null, null, null, null, null);
+ }
+ }
+ return defineClass(name,buf,0,buf.length);
+ } catch (IOException e) {
+ throw new ClassNotFoundException(name,e);
+ }
+ }
+
+ protected URL findResource(String name) {
+ return getParent().getResource(prefix+name);
+ }
+
+ protected Enumeration findResources(String name) throws IOException {
+ return getParent().getResources( prefix+name);
+ }
+
+ /**
+ * Given the URL inside jar, returns the URL to the jar itself.
+ */
+ public static URL toJarUrl(URL res) throws ClassNotFoundException, MalformedURLException {
+ String url = res.toExternalForm();
+ if(!url.startsWith("jar:"))
+ throw new ClassNotFoundException("Loaded outside a jar "+url);
+ url = url.substring(4); // cut off jar:
+ url = url.substring(0,url.lastIndexOf('!')); // cut off everything after '!'
+ return new URL(url);
+ }
+}
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/tools/package-info.java b/jaxws/src/share/classes/com/sun/istack/internal/tools/package-info.java
index f77048324be..3ce8c80627f 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/tools/package-info.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/tools/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
/**
* istack-commons tool time utilities.
*
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/ws/AnnotationProcessorFactoryImpl.java b/jaxws/src/share/classes/com/sun/istack/internal/ws/AnnotationProcessorFactoryImpl.java
index d976cd66459..c4f8f825a3b 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/ws/AnnotationProcessorFactoryImpl.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/ws/AnnotationProcessorFactoryImpl.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -103,7 +103,7 @@ public class AnnotationProcessorFactoryImpl implements AnnotationProcessorFactor
if (wsAP == null) {
AnnotationProcessorContext context = new AnnotationProcessorContext();
- wsAP = new WebServiceAP(null, null, null, context);
+ wsAP = new WebServiceAP(null, context, null, null);
}
wsAP.init(apEnv);
diff --git a/jaxws/src/share/classes/com/sun/istack/internal/ws/package-info.java b/jaxws/src/share/classes/com/sun/istack/internal/ws/package-info.java
index 9cf442544df..31850e07dd2 100644
--- a/jaxws/src/share/classes/com/sun/istack/internal/ws/package-info.java
+++ b/jaxws/src/share/classes/com/sun/istack/internal/ws/package-info.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
/**
*
* This document describes the {@link com.sun.mirror.apt.AnnotationProcessor AnnotationProcessor}
- * included with JAX-WS 2.0.
+ * included with JAX-WS 2.0.1.
*
*
The {@link com.sun.istack.internal.ws.AnnotationProcessorFactoryImpl AnnoatationnProcessorFactoryImpl} class
* tells the APT
diff --git a/jaxws/src/share/classes/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin b/jaxws/src/share/classes/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin
new file mode 100644
index 00000000000..6b19c805ad8
--- /dev/null
+++ b/jaxws/src/share/classes/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin
@@ -0,0 +1,4 @@
+com.sun.tools.internal.xjc.addon.locator.SourceLocationAddOn
+com.sun.tools.internal.xjc.addon.sync.SynchronizedMethodAddOn
+com.sun.tools.internal.xjc.addon.at_generated.PluginImpl
+com.sun.tools.internal.xjc.addon.episode.PluginImpl
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/ConfigReader.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/ConfigReader.java
index c9afcaa1792..2ec45591cc3 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/ConfigReader.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/ConfigReader.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc;
import java.io.File;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties b/jaxws/src/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties
index ddc5a4ac95b..5dec6daad65 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties
@@ -1,3 +1,28 @@
+#
+# Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation. Sun designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Sun in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+# CA 95054 USA or visit www.sun.com if you need additional information or
+# have any questions.
+#
+
UNEXPECTED_NGCC_TOKEN = \
Unexpected {0} appears at line {1} column {2}
@@ -5,15 +30,16 @@ BASEDIR_DOESNT_EXIST = \
Non-existent directory: {0}
VERSION = \
- schemagen version "JAXB 2.0 in JDK 1.6" \n\
- JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build JAXB 2.0 in JDK 1.6)
+ schemagen version "JAXB 2.1.3" \n\
+ JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build JAXB 2.1.3 in JDK)
USAGE = \
Usage: schemagen [-options ...] \n\
Options: \n\
-\ \ \ \ -d : specify where to place processor and javac generated class files \n\
-\ \ \ \ -cp : specify where to find user specified files \n\
-\ \ \ \ -classpath : specify where to find user specified files \n\
-\ \ \ \ -version : display version information
+\ \ \ \ -d : specify where to place processor and javac generated class files\n\
+\ \ \ \ -cp : specify where to find user specified files\n\
+\ \ \ \ -classpath : specify where to find user specified files\n\
+\ \ \ \ -episode : generate episode file for separate compilation\n\
+\ \ \ \ -version : display version information\n\
\ \ \ \ -help : display this usage message
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/Messages.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/Messages.java
index b1f22f42c8e..8a9656f43f3 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/Messages.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/Messages.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc;
import java.text.MessageFormat;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/NGCCRuntimeEx.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/NGCCRuntimeEx.java
index 8f538075766..699f47828cd 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/NGCCRuntimeEx.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/NGCCRuntimeEx.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc;
import java.io.File;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/SchemaGenerator.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/SchemaGenerator.java
index ef178300eb2..3b268d5e530 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/SchemaGenerator.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/SchemaGenerator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc;
import java.io.File;
@@ -122,7 +121,7 @@ public class SchemaGenerator {
}
Class schemagenRunner = classLoader.loadClass(Runner.class.getName());
- Method mainMethod = schemagenRunner.getDeclaredMethod("main",String[].class);
+ Method mainMethod = schemagenRunner.getDeclaredMethod("main",String[].class,File.class);
List aptargs = new ArrayList();
@@ -150,7 +149,7 @@ public class SchemaGenerator {
aptargs.addAll(options.arguments);
String[] argsarray = aptargs.toArray(new String[aptargs.size()]);
- return (Integer)mainMethod.invoke(null,new Object[]{argsarray});
+ return (Integer)mainMethod.invoke(null,new Object[]{argsarray,options.episodeFile});
}
/**
@@ -204,11 +203,15 @@ public class SchemaGenerator {
}
public static final class Runner {
- public static int main(String[] args) throws Exception {
+ public static int main(String[] args, File episode) throws Exception {
ClassLoader cl = Runner.class.getClassLoader();
Class apt = cl.loadClass("com.sun.tools.apt.Main");
Method processMethod = apt.getMethod("process",AnnotationProcessorFactory.class, String[].class);
- return (Integer) processMethod.invoke(null, new com.sun.tools.internal.jxc.apt.SchemaGenerator(), args);
+
+ com.sun.tools.internal.jxc.apt.SchemaGenerator r = new com.sun.tools.internal.jxc.apt.SchemaGenerator();
+ if(episode!=null)
+ r.setEpisodeFile(episode);
+ return (Integer) processMethod.invoke(null, r, args);
}
}
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationParser.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationParser.java
index 09175235a11..47d1fc41874 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationParser.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationParser.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import java.io.File;
@@ -88,7 +87,7 @@ final class AnnotationParser implements AnnotationProcessor {
// -Aconfig=foo.config:bar.config where : is the pathSeparatorChar
StringTokenizer st = new StringTokenizer(value,File.pathSeparator);
if(!st.hasMoreTokens()) {
- errorListener.error(null,Messages.NO_FILE_SPECIFIED.format());
+ errorListener.error(null,Messages.OPERAND_MISSING.format(Const.CONFIG_FILE_OPTION));
continue;
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationProcessorFactoryImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationProcessorFactoryImpl.java
index ce842f980b3..68aa512346a 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationProcessorFactoryImpl.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/AnnotationProcessorFactoryImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import java.util.Arrays;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Const.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Const.java
index 6b6008b92bd..8ec9cdb55c5 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Const.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Const.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import java.io.File;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/ErrorReceiverImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/ErrorReceiverImpl.java
index 117fec778fe..e9a053414fd 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/ErrorReceiverImpl.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/ErrorReceiverImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/InlineAnnotationReaderImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/InlineAnnotationReaderImpl.java
index 553dc68dd99..3390a5f5502 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/InlineAnnotationReaderImpl.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/InlineAnnotationReaderImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,21 +22,22 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationTargetException;
-import java.util.List;
import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import com.sun.mirror.declaration.AnnotationMirror;
+import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.FieldDeclaration;
import com.sun.mirror.declaration.MethodDeclaration;
import com.sun.mirror.declaration.ParameterDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;
-import com.sun.mirror.declaration.AnnotationMirror;
-import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.type.MirroredTypeException;
+import com.sun.mirror.type.MirroredTypesException;
import com.sun.mirror.type.TypeMirror;
import com.sun.xml.internal.bind.v2.model.annotation.AbstractInlineAnnotationReaderImpl;
import com.sun.xml.internal.bind.v2.model.annotation.AnnotationReader;
@@ -67,6 +68,10 @@ public final class InlineAnnotationReaderImpl extends AbstractInlineAnnotationRe
return f.getAnnotation(annotationType)!=null;
}
+ public boolean hasClassAnnotation(TypeDeclaration clazz, Class extends Annotation> annotationType) {
+ return clazz.getAnnotation(annotationType)!=null;
+ }
+
public Annotation[] getAllFieldAnnotations(FieldDeclaration field, Locatable srcPos) {
return getAllAnnotations(field,srcPos);
}
@@ -94,7 +99,8 @@ public final class InlineAnnotationReaderImpl extends AbstractInlineAnnotationRe
for( AnnotationMirror m : decl.getAnnotationMirrors() ) {
try {
String fullName = m.getAnnotationType().getDeclaration().getQualifiedName();
- Class type = getClass().getClassLoader().loadClass(fullName);
+ Class extends Annotation> type =
+ getClass().getClassLoader().loadClass(fullName).asSubclass(Annotation.class);
Annotation annotation = decl.getAnnotation(type);
if(annotation!=null)
r.add( LocatableAnnotation.create(annotation,srcPos) );
@@ -135,6 +141,26 @@ public final class InlineAnnotationReaderImpl extends AbstractInlineAnnotationRe
}
}
+ public TypeMirror[] getClassArrayValue(Annotation a, String name) {
+ try {
+ a.annotationType().getMethod(name).invoke(a);
+ assert false;
+ throw new IllegalStateException("should throw a MirroredTypesException");
+ } catch (IllegalAccessException e) {
+ throw new IllegalAccessError(e.getMessage());
+ } catch (InvocationTargetException e) {
+ if( e.getCause() instanceof MirroredTypesException ) {
+ MirroredTypesException me = (MirroredTypesException)e.getCause();
+ Collection r = me.getTypeMirrors();
+ return r.toArray(new TypeMirror[r.size()]);
+ }
+ // impossible
+ throw new RuntimeException(e);
+ } catch (NoSuchMethodException e) {
+ throw new NoSuchMethodError(e.getMessage());
+ }
+ }
+
protected String fullName(MethodDeclaration m) {
return m.getDeclaringType().getQualifiedName()+'#'+m.getSimpleName();
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/MessageBundle.properties b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/MessageBundle.properties
index 9f69124cbb2..c9a4d4dd55e 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/MessageBundle.properties
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/MessageBundle.properties
@@ -1,12 +1,34 @@
+#
+# Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation. Sun designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Sun in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+# CA 95054 USA or visit www.sun.com if you need additional information or
+# have any questions.
+#
+
NON_EXISTENT_FILE = \
Directory "{0}" doesn't exist.
UNRECOGNIZED_PARAMETER = \
Unrecognized option {0} is not valid.
-NO_FILE_SPECIFIED = \
- No directory was specified.
-
-NO_CLASSPATH_SPECIFIED = \
- No classpath was specified.
+OPERAND_MISSING = \
+ Option "{0}" is missing an operand.
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Messages.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Messages.java
index 61fc613136d..13f3293fef0 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Messages.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Messages.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import java.text.MessageFormat;
@@ -36,9 +35,8 @@ import java.util.ResourceBundle;
enum Messages {
// Accessor
NON_EXISTENT_FILE, // 1 arg
- NO_FILE_SPECIFIED, // 0 args
- NO_CLASSPATH_SPECIFIED, // 0 args
UNRECOGNIZED_PARAMETER, //1 arg
+ OPERAND_MISSING, // 1 arg
;
private static final ResourceBundle rb = ResourceBundle.getBundle(Messages.class.getPackage().getName() +".MessageBundle");
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Options.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Options.java
index a63f4f9b7bd..fbeb61d75d7 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Options.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/Options.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import java.io.File;
@@ -44,6 +43,8 @@ public class Options {
public File targetDir = null;
+ public File episodeFile = null;
+
public final List arguments = new ArrayList();
public void parseArguments(String[] args) throws BadCommandLineException {
@@ -64,7 +65,7 @@ public class Options {
if (args[i].equals("-d")) {
if (i == args.length - 1)
throw new BadCommandLineException(
- (Messages.NO_FILE_SPECIFIED.format()));
+ (Messages.OPERAND_MISSING.format(args[i])));
targetDir = new File(args[++i]);
if( !targetDir.exists() )
throw new BadCommandLineException(
@@ -72,10 +73,18 @@ public class Options {
return 1;
}
+ if (args[i].equals("-episode")) {
+ if (i == args.length - 1)
+ throw new BadCommandLineException(
+ (Messages.OPERAND_MISSING.format(args[i])));
+ episodeFile = new File(args[++i]);
+ return 1;
+ }
+
if (args[i].equals("-cp") || args[i].equals("-classpath")) {
if (i == args.length - 1)
throw new BadCommandLineException(
- (Messages.NO_CLASSPATH_SPECIFIED.format()));
+ (Messages.OPERAND_MISSING.format(args[i])));
classpath = args[++i];
return 1;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/SchemaGenerator.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/SchemaGenerator.java
index 63f1a508125..bbadce081cc 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/SchemaGenerator.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/SchemaGenerator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.apt;
import java.io.File;
@@ -67,6 +66,8 @@ public class SchemaGenerator implements AnnotationProcessorFactory {
*/
private final Map schemaLocations = new HashMap();
+ private File episodeFile;
+
public SchemaGenerator() {
}
@@ -74,6 +75,10 @@ public class SchemaGenerator implements AnnotationProcessorFactory {
schemaLocations.putAll(m);
}
+ public void setEpisodeFile(File episodeFile) {
+ this.episodeFile = episodeFile;
+ }
+
public Collection supportedOptions() {
return Collections.emptyList();
}
@@ -113,14 +118,20 @@ public class SchemaGenerator implements AnnotationProcessorFactory {
// use the default
file = new File(suggestedFileName);
out = env.getFiler().createBinaryFile(Filer.Location.CLASS_TREE,"",file);
+ file = file.getAbsoluteFile();
}
StreamResult ss = new StreamResult(out);
env.getMessager().printNotice("Writing "+file);
- ss.setSystemId(file.getPath());
+ ss.setSystemId(file.toURL().toExternalForm());
return ss;
}
}, errorListener);
+
+ if(episodeFile!=null) {
+ env.getMessager().printNotice("Writing "+episodeFile);
+ model.generateEpisodeFile(new StreamResult(episodeFile));
+ }
} catch (IOException e) {
errorListener.error(e.getMessage(),e);
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/package.html b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/package.html
index 6042da9a78f..c3bb171c271 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/package.html
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/apt/package.html
@@ -1,3 +1,27 @@
+
APT related code.
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/AttributesImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/AttributesImpl.java
index e6e3a929406..86f8fda6b44 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/AttributesImpl.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/AttributesImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
// AttributesImpl.java - default implementation of Attributes.
// Written by David Megginson, sax@megginson.com
// NO WARRANTY! This class is in the public domain.
@@ -67,6 +66,7 @@ import org.xml.sax.Attributes;
* @since SAX 2.0
* @author David Megginson,
* sax@megginson.com
+ * @version 2.0
*/
public class AttributesImpl implements Attributes
{
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Classes.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Classes.java
index ad701c23a66..475c8311397 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Classes.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Classes.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
/* this file is generated by RelaxNGCC */
package com.sun.tools.internal.jxc.gen.config;
import org.xml.sax.SAXException;
@@ -76,12 +75,6 @@ public class Classes extends NGCCHandler {
$localName = $__local;
$qname = $__qname;
switch($_ngcc_current_state) {
- case 4:
- {
- $_ngcc_current_state = 3;
- $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
- }
- break;
case 12:
{
if(($__uri == "" && $__local == "classes")) {
@@ -93,6 +86,12 @@ public class Classes extends NGCCHandler {
}
}
break;
+ case 4:
+ {
+ $_ngcc_current_state = 3;
+ $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
+ }
+ break;
case 2:
{
if(($__uri == "" && $__local == "excludes")) {
@@ -134,6 +133,17 @@ public class Classes extends NGCCHandler {
$localName = $__local;
$qname = $__qname;
switch($_ngcc_current_state) {
+ case 3:
+ {
+ if(($__uri == "" && $__local == "excludes")) {
+ $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
+ $_ngcc_current_state = 1;
+ }
+ else {
+ unexpectedLeaveElement($__qname);
+ }
+ }
+ break;
case 4:
{
$_ngcc_current_state = 3;
@@ -157,11 +167,6 @@ public class Classes extends NGCCHandler {
}
}
break;
- case 0:
- {
- revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
- }
- break;
case 8:
{
if(($__uri == "" && $__local == "includes")) {
@@ -173,15 +178,9 @@ public class Classes extends NGCCHandler {
}
}
break;
- case 3:
+ case 0:
{
- if(($__uri == "" && $__local == "excludes")) {
- $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
- $_ngcc_current_state = 1;
- }
- else {
- unexpectedLeaveElement($__qname);
- }
+ revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
}
break;
default:
@@ -254,6 +253,20 @@ public class Classes extends NGCCHandler {
public void text(String $value) throws SAXException {
switch($_ngcc_current_state) {
+ case 9:
+ {
+ include_content = $value;
+ $_ngcc_current_state = 8;
+ action2();
+ }
+ break;
+ case 3:
+ {
+ exclude_content = $value;
+ $_ngcc_current_state = 3;
+ action0();
+ }
+ break;
case 4:
{
exclude_content = $value;
@@ -261,7 +274,20 @@ public class Classes extends NGCCHandler {
action0();
}
break;
- case 9:
+ case 2:
+ {
+ $_ngcc_current_state = 1;
+ $runtime.sendText(super._cookie, $value);
+ }
+ break;
+ case 10:
+ {
+ __text = $value;
+ $_ngcc_current_state = 9;
+ action3();
+ }
+ break;
+ case 8:
{
include_content = $value;
$_ngcc_current_state = 8;
@@ -275,38 +301,11 @@ public class Classes extends NGCCHandler {
action1();
}
break;
- case 2:
- {
- $_ngcc_current_state = 1;
- $runtime.sendText(super._cookie, $value);
- }
- break;
case 0:
{
revertToParentFromText(this, super._cookie, $value);
}
break;
- case 8:
- {
- include_content = $value;
- $_ngcc_current_state = 8;
- action2();
- }
- break;
- case 10:
- {
- __text = $value;
- $_ngcc_current_state = 9;
- action3();
- }
- break;
- case 3:
- {
- exclude_content = $value;
- $_ngcc_current_state = 3;
- action0();
- }
- break;
}
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Config.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Config.java
index 961df1c35a8..b58719a3969 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Config.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Config.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
/* this file is generated by RelaxNGCC */
package com.sun.tools.internal.jxc.gen.config;
import org.xml.sax.SAXException;
@@ -79,7 +78,7 @@ public class Config extends NGCCHandler {
case 1:
{
if(($__uri == "" && $__local == "schema")) {
- NGCCHandler h = new Schema(this, super._source, $runtime, 31, baseDir);
+ NGCCHandler h = new Schema(this, super._source, $runtime, 3, baseDir);
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
}
else {
@@ -101,7 +100,7 @@ public class Config extends NGCCHandler {
case 2:
{
if(($__uri == "" && $__local == "schema")) {
- NGCCHandler h = new Schema(this, super._source, $runtime, 32, baseDir);
+ NGCCHandler h = new Schema(this, super._source, $runtime, 4, baseDir);
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
}
else {
@@ -124,7 +123,7 @@ public class Config extends NGCCHandler {
case 4:
{
if(($__uri == "" && $__local == "classes")) {
- NGCCHandler h = new Classes(this, super._source, $runtime, 34);
+ NGCCHandler h = new Classes(this, super._source, $runtime, 6);
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
}
else {
@@ -289,21 +288,21 @@ public class Config extends NGCCHandler {
public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
switch($__cookie__) {
- case 31:
+ case 3:
{
_schema = ((Schema)$__result__);
action0();
$_ngcc_current_state = 1;
}
break;
- case 32:
+ case 4:
{
_schema = ((Schema)$__result__);
action0();
$_ngcc_current_state = 1;
}
break;
- case 34:
+ case 6:
{
classes = ((Classes)$__result__);
$_ngcc_current_state = 2;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventReceiver.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventReceiver.java
index b4ee9898ad1..3c6624a93cc 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventReceiver.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventReceiver.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.gen.config;
import org.xml.sax.Attributes;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventSource.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventSource.java
index ed59a08bb79..6ef8d69e971 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventSource.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCEventSource.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.gen.config;
import org.xml.sax.Attributes;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCHandler.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCHandler.java
index db72354e9a4..279d5651868 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCHandler.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.gen.config;
import org.xml.sax.Attributes;
@@ -31,6 +30,7 @@ import org.xml.sax.SAXException;
/**
*
*
+ * @version $Id: NGCCHandler.java,v 1.9 2002/09/29 02:55:48 okajima Exp $
* @author Kohsuke Kawaguchi (kk@kohsuke.org)
*/
public abstract class NGCCHandler implements NGCCEventReceiver {
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCInterleaveFilter.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCInterleaveFilter.java
index 180a830b71a..2bd6dc42be5 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCInterleaveFilter.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCInterleaveFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.gen.config;
import org.xml.sax.Attributes;
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCRuntime.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCRuntime.java
index 6d942a358f3..581fef308b1 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCRuntime.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCRuntime.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.gen.config;
import java.text.MessageFormat;
@@ -51,6 +50,7 @@ import org.xml.sax.SAXParseException;
*
* TODO: provide support for interleaving.
*
+ * @version $Id: NGCCRuntime.java,v 1.16 2003/03/23 02:47:46 okajima Exp $
* @author Kohsuke Kawaguchi (kk@kohsuke.org)
*/
public class NGCCRuntime implements ContentHandler, NGCCEventSource {
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Schema.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Schema.java
index 4895421cafe..1a7f41f9ca3 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Schema.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/Schema.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
/* this file is generated by RelaxNGCC */
package com.sun.tools.internal.jxc.gen.config;
import org.xml.sax.SAXException;
@@ -66,14 +65,14 @@ public class Schema extends NGCCHandler {
$localName = $__local;
$qname = $__qname;
switch($_ngcc_current_state) {
- case 2:
+ case 6:
{
- if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
+ if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
$runtime.consumeAttribute($ai);
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
}
else {
- $_ngcc_current_state = 1;
+ $_ngcc_current_state = 2;
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
}
}
@@ -94,14 +93,14 @@ public class Schema extends NGCCHandler {
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
}
break;
- case 6:
+ case 2:
{
- if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
+ if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
$runtime.consumeAttribute($ai);
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
}
else {
- $_ngcc_current_state = 2;
+ $_ngcc_current_state = 1;
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
}
}
@@ -120,6 +119,23 @@ public class Schema extends NGCCHandler {
$localName = $__local;
$qname = $__qname;
switch($_ngcc_current_state) {
+ case 6:
+ {
+ if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
+ $runtime.consumeAttribute($ai);
+ $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
+ }
+ else {
+ $_ngcc_current_state = 2;
+ $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
+ }
+ }
+ break;
+ case 0:
+ {
+ revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
+ }
+ break;
case 1:
{
if(($__uri == "" && $__local == "schema")) {
@@ -143,23 +159,6 @@ public class Schema extends NGCCHandler {
}
}
break;
- case 0:
- {
- revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
- }
- break;
- case 6:
- {
- if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
- $runtime.consumeAttribute($ai);
- $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
- }
- else {
- $_ngcc_current_state = 2;
- $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
- }
- }
- break;
default:
{
unexpectedLeaveElement($__qname);
@@ -173,13 +172,13 @@ public class Schema extends NGCCHandler {
$localName = $__local;
$qname = $__qname;
switch($_ngcc_current_state) {
- case 2:
+ case 6:
{
- if(($__uri == "" && $__local == "location")) {
- $_ngcc_current_state = 4;
+ if(($__uri == "" && $__local == "namespace")) {
+ $_ngcc_current_state = 8;
}
else {
- $_ngcc_current_state = 1;
+ $_ngcc_current_state = 2;
$runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
}
}
@@ -189,13 +188,13 @@ public class Schema extends NGCCHandler {
revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
}
break;
- case 6:
+ case 2:
{
- if(($__uri == "" && $__local == "namespace")) {
- $_ngcc_current_state = 8;
+ if(($__uri == "" && $__local == "location")) {
+ $_ngcc_current_state = 4;
}
else {
- $_ngcc_current_state = 2;
+ $_ngcc_current_state = 1;
$runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
}
}
@@ -213,6 +212,17 @@ public class Schema extends NGCCHandler {
$localName = $__local;
$qname = $__qname;
switch($_ngcc_current_state) {
+ case 6:
+ {
+ $_ngcc_current_state = 2;
+ $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
+ }
+ break;
+ case 0:
+ {
+ revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
+ }
+ break;
case 7:
{
if(($__uri == "" && $__local == "namespace")) {
@@ -223,12 +233,6 @@ public class Schema extends NGCCHandler {
}
}
break;
- case 2:
- {
- $_ngcc_current_state = 1;
- $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
- }
- break;
case 3:
{
if(($__uri == "" && $__local == "location")) {
@@ -239,14 +243,9 @@ public class Schema extends NGCCHandler {
}
}
break;
- case 0:
+ case 2:
{
- revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
- }
- break;
- case 6:
- {
- $_ngcc_current_state = 2;
+ $_ngcc_current_state = 1;
$runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
}
break;
@@ -261,11 +260,27 @@ public class Schema extends NGCCHandler {
public void text(String $value) throws SAXException {
int $ai;
switch($_ngcc_current_state) {
- case 4:
+ case 8:
{
- loc = $value;
- $_ngcc_current_state = 3;
- action0();
+ namespace = $value;
+ $_ngcc_current_state = 7;
+ }
+ break;
+ case 6:
+ {
+ if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
+ $runtime.consumeAttribute($ai);
+ $runtime.sendText(super._cookie, $value);
+ }
+ else {
+ $_ngcc_current_state = 2;
+ $runtime.sendText(super._cookie, $value);
+ }
+ }
+ break;
+ case 0:
+ {
+ revertToParentFromText(this, super._cookie, $value);
}
break;
case 2:
@@ -280,27 +295,11 @@ public class Schema extends NGCCHandler {
}
}
break;
- case 8:
+ case 4:
{
- namespace = $value;
- $_ngcc_current_state = 7;
- }
- break;
- case 0:
- {
- revertToParentFromText(this, super._cookie, $value);
- }
- break;
- case 6:
- {
- if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
- $runtime.consumeAttribute($ai);
- $runtime.sendText(super._cookie, $value);
- }
- else {
- $_ngcc_current_state = 2;
- $runtime.sendText(super._cookie, $value);
- }
+ loc = $value;
+ $_ngcc_current_state = 3;
+ action0();
}
break;
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/config.rng b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/config.rng
index 697f3ac9c23..e3c593f25d0 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/config.rng
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/gen/config/config.rng
@@ -1,4 +1,28 @@
+
-
-
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/jxc/model/nav/APTNavigator.java b/jaxws/src/share/classes/com/sun/tools/internal/jxc/model/nav/APTNavigator.java
index 836f191f7ba..4eb70a1e304 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/jxc/model/nav/APTNavigator.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/jxc/model/nav/APTNavigator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,6 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-
package com.sun.tools.internal.jxc.model.nav;
import java.util.ArrayList;
@@ -281,24 +280,21 @@ public class APTNavigator implements Navigator\n"+
- " -o : Specify the directory to place generated source files\n"+
- " -p : Specify the Java package to put the generated classes into\n"+
- " -c : The input schema is written in the RELAX NG compact syntax\n"+
- " -x : The input schema is written in the RELAX NG XML syntax\n"+
- " -xsd : The input schema is written in the XML SChema\n"+
- " -h : Generate code that allows method invocation chaining\n"
- );
- }
-
- public static int run(TxwOptions opts) {
- return new Main(opts).run();
- }
-
- private int run() {
- try {
- NodeSet ns = opts.source.build(opts);
- ns.write(opts);
- opts.codeModel.build(opts.codeWriter);
- return 0;
- } catch (IOException e) {
- opts.errorListener.error(new SAXParseException(e.getMessage(),null,e));
- return 1;
- } catch (IllegalSchemaException e) {
- opts.errorListener.error(new SAXParseException(e.getMessage(),null,e));
- return 1;
- } catch (SAXParseException e) {
- opts.errorListener.error(e);
- return 1;
- } catch (SAXException e) {
- opts.errorListener.error(new SAXParseException(e.getMessage(),null,e));
- return 1;
- }
- }
-
-
- /**
- * Gets the version number of TXW.
- */
- public static String getVersion() {
- try {
- Properties p = new Properties();
- p.load(Main.class.getResourceAsStream("version.properties"));
- return p.get("version").toString();
- } catch( Throwable _ ) {
- return "unknown";
- }
- }
-
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/NameUtil.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/NameUtil.java
deleted file mode 100644
index 99ac2db9ccd..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/NameUtil.java
+++ /dev/null
@@ -1,348 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2;
-
-import com.sun.codemodel.JJavaName;
-
-import java.util.ArrayList;
-
-/**
- * @author Kohsuke Kawaguchi
- */
-public class NameUtil {
-
- protected static boolean isPunct(char c) {
- return (c == '-' || c == '.' || c == ':' || c == '_' || c == '\u00b7'
- || c == '\u0387' || c == '\u06dd' || c == '\u06de');
- }
-
- protected static boolean isDigit(char c) {
- return ((c >= '0' && c <= '9') || Character.isDigit(c));
- }
-
- protected static boolean isUpper(char c) {
- return ((c >= 'A' && c <= 'Z') || Character.isUpperCase(c));
- }
-
- protected static boolean isLower(char c) {
- return ((c >= 'a' && c <= 'z') || Character.isLowerCase(c));
- }
-
- protected static boolean isLetter(char c) {
- return ((c >= 'A' && c <= 'Z')
- || (c >= 'a' && c <= 'z')
- || Character.isLetter(c));
- }
-
- /**
- * Capitalizes the first character of the specified string,
- * and de-capitalize the rest of characters.
- */
- public static String capitalize(String s) {
- if (!isLower(s.charAt(0)))
- return s;
- StringBuffer sb = new StringBuffer(s.length());
- sb.append(Character.toUpperCase(s.charAt(0)));
- sb.append(s.substring(1).toLowerCase());
- return sb.toString();
- }
-
- // Precondition: s[start] is not punctuation
- protected static int nextBreak(String s, int start) {
- int n = s.length();
- for (int i = start; i < n; i++) {
- char c0 = s.charAt(i);
- if (i < n - 1) {
- char c1 = s.charAt(i + 1);
- if (isPunct(c1)) return i + 1;
- if (isDigit(c0) && !isDigit(c1)) return i + 1;
- if (!isDigit(c0) && isDigit(c1)) return i + 1;
- if (isLower(c0) && !isLower(c1)) return i + 1;
- if (isLetter(c0) && !isLetter(c1)) return i + 1;
- if (!isLetter(c0) && isLetter(c1)) return i + 1;
- if (i < n - 2) {
- char c2 = s.charAt(i + 2);
- if (isUpper(c0) && isUpper(c1) && isLower(c2))
- return i + 1;
- }
- }
- }
- return -1;
- }
-
-
- /**
- * Tokenizes a string into words and capitalizes the first
- * character of each word.
- *
- *
- * This method uses a change in character type as a splitter
- * of two words. For example, "abc100ghi" will be splitted into
- * {"Abc", "100","Ghi"}.
- */
- public static String[] toWordList(String s) {
- ArrayList ss = new ArrayList();
- int n = s.length();
- for (int i = 0; i < n;) {
-
- // Skip punctuation
- while (i < n) {
- if (!isPunct(s.charAt(i)))
- break;
- i++;
- }
- if (i >= n) break;
-
- // Find next break and collect word
- int b = nextBreak(s, i);
- String w = (b == -1) ? s.substring(i) : s.substring(i, b);
- ss.add(escape(capitalize(w)));
- if (b == -1) break;
- i = b;
- }
-
-// we can't guarantee a valid Java identifier anyway,
-// so there's not much point in rejecting things in this way.
-// if (ss.size() == 0)
-// throw new IllegalArgumentException("Zero-length identifier");
- return (String[])(ss.toArray(new String[0]));
- }
-
- protected static String toMixedCaseName(String[] ss, boolean startUpper) {
- StringBuffer sb = new StringBuffer();
- if(ss.length>0) {
- sb.append(startUpper ? ss[0] : ss[0].toLowerCase());
- for (int i = 1; i < ss.length; i++)
- sb.append(ss[i]);
- }
- return sb.toString();
- }
-
- protected static String toMixedCaseVariableName(String[] ss,
- boolean startUpper,
- boolean cdrUpper) {
- if (cdrUpper)
- for (int i = 1; i < ss.length; i++)
- ss[i] = capitalize(ss[i]);
- StringBuffer sb = new StringBuffer();
- if( ss.length>0 ) {
- sb.append(startUpper ? ss[0] : ss[0].toLowerCase());
- for (int i = 1; i < ss.length; i++)
- sb.append(ss[i]);
- }
- return sb.toString();
- }
-
-
- /**
- * Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF".
- *
- * @return
- * Always return a string but there's no guarantee that
- * the generated code is a valid Java identifier.
- */
- public static String toConstantName(String s) {
- return toConstantName(toWordList(s));
- }
-
- /**
- * Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF".
- *
- * @return
- * Always return a string but there's no guarantee that
- * the generated code is a valid Java identifier.
- */
- public static String toConstantName(String[] ss) {
- StringBuffer sb = new StringBuffer();
- if( ss.length>0 ) {
- sb.append(ss[0].toUpperCase());
- for (int i = 1; i < ss.length; i++) {
- sb.append('_');
- sb.append(ss[i].toUpperCase());
- }
- }
- return sb.toString();
- }
-
-
-
- /**
- * Escapes characters is the given string so that they can be
- * printed by only using US-ASCII characters.
- *
- * The escaped characters will be appended to the given
- * StringBuffer.
- *
- * @param sb
- * StringBuffer that receives escaped string.
- * @param s
- * String to be escaped. s.substring(start)
- * will be escaped and copied to the string buffer.
- */
- public static void escape(StringBuffer sb, String s, int start) {
- int n = s.length();
- for (int i = start; i < n; i++) {
- char c = s.charAt(i);
- if (Character.isJavaIdentifierPart(c))
- sb.append(c);
- else {
- sb.append("_");
- if (c <= '\u000f') sb.append("000");
- else if (c <= '\u00ff') sb.append("00");
- else if (c <= '\u0fff') sb.append("0");
- sb.append(Integer.toString(c, 16));
- }
- }
- }
-
- /**
- * Escapes characters that are unusable as Java identifiers
- * by replacing unsafe characters with safe characters.
- */
- private static String escape(String s) {
- int n = s.length();
- for (int i = 0; i < n; i++)
- if (!Character.isJavaIdentifierPart(s.charAt(i))) {
- StringBuffer sb = new StringBuffer(s.substring(0, i));
- escape(sb, s, i);
- return sb.toString();
- }
- return s;
- }
-
- /**
- * Escape any characters that would cause the single arg constructor
- * of java.net.URI to complain about illegal chars.
- *
- * @param s source string to be escaped
- */
- public static String escapeURI(String s) {
- StringBuffer sb = new StringBuffer();
- for( int i = 0; i < s.length(); i++ ) {
- char c = s.charAt(i);
- if(Character.isSpaceChar(c)) {
- sb.append("%20");
- } else {
- sb.append(c);
- }
- }
- return sb.toString();
- }
-
- /**
- * Calculate the parent URI path of the given URI path.
- *
- * @param uriPath the uriPath (as returned by java.net.URI#getPath()
- * @return the parent URI path of the given URI path
- */
- public static String getParentUriPath(String uriPath) {
- int idx = uriPath.lastIndexOf('/');
-
- if (uriPath.endsWith("/")) {
- uriPath = uriPath.substring(0,idx); // trim trailing slash
- idx = uriPath.lastIndexOf('/'); // move idx to parent context
- }
-
- return uriPath.substring(0, idx)+"/";
- }
-
- /**
- * Calculate the normalized form of the given uriPath.
- *
- * For example:
- * /a/b/c/ -> /a/b/c/
- * /a/b/c -> /a/b/
- * /a/ -> /a/
- * /a -> /
- *
- * @param uriPath path of a URI (as returned by java.net.URI#getPath()
- * @return the normalized uri path
- */
- public static String normalizeUriPath(String uriPath) {
- if (uriPath.endsWith("/"))
- return uriPath;
-
- // the uri path should always have at least a leading slash,
- // so no need to make sure that ( idx == -1 )
- int idx = uriPath.lastIndexOf('/');
- return uriPath.substring(0, idx+1);
- }
-
- /**
- * determine if two Strings are equal ignoring case allowing null values
- *
- * @param s string 1
- * @param t string 2
- * @return true iff the given strings are equal ignoring case, false if they aren't
- * equal or either of them are null.
- */
- public static boolean equalsIgnoreCase(String s, String t) {
- if (s == t) return true;
- if ((s != null) && (t != null)) {
- return s.equalsIgnoreCase(t);
- }
- return false;
- }
-
- /**
- * determine if two Strings are iqual allowing null values
- *
- * @param s string 1
- * @param t string 2
- * @return true iff the strings are equal, false if they aren't equal or either of
- * them are null.
- */
- public static boolean equal(String s, String t) {
- if (s == t) return true;
- if ((s != null) && (t != null)) {
- return s.equals(t);
- }
- return false;
- }
-
- public static String toClassName(String s) {
- return toMixedCaseName(toWordList(s), true);
- }
- public static String toVariableName(String s) {
- return toMixedCaseName(toWordList(s), false);
- }
- public static String toMethodName(String s) {
- String m = toMixedCaseName(toWordList(s), false);
- if(JJavaName.isJavaIdentifier(m))
- return m;
- else
- return '_'+m;
- }
- public static String toInterfaceName( String token ) {
- return toClassName(token);
- }
- public static String toPropertyName(String s) {
- return toClassName(s);
- }
- public static String toPackageName( String s ) {
- return toMixedCaseName(toWordList(s), false );
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/RELAXNGLoader.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/RELAXNGLoader.java
deleted file mode 100644
index 854bfb25133..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/RELAXNGLoader.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2;
-
-import org.kohsuke.rngom.parse.Parseable;
-import org.kohsuke.rngom.parse.IllegalSchemaException;
-import org.kohsuke.rngom.ast.util.CheckingSchemaBuilder;
-import org.kohsuke.rngom.dt.CascadingDatatypeLibraryFactory;
-import org.kohsuke.rngom.dt.builtin.BuiltinDatatypeLibraryFactory;
-import org.relaxng.datatype.helpers.DatatypeLibraryLoader;
-import com.sun.tools.internal.txw2.model.NodeSet;
-import com.sun.tools.internal.txw2.model.Leaf;
-import com.sun.tools.internal.txw2.builder.relaxng.SchemaBuilderImpl;
-
-/**
- * @author Kohsuke Kawaguchi
- */
-class RELAXNGLoader implements SchemaBuilder {
- private final Parseable parseable;
-
- public RELAXNGLoader(Parseable parseable) {
- this.parseable = parseable;
- }
-
- public NodeSet build(TxwOptions options) throws IllegalSchemaException {
- SchemaBuilderImpl stage1 = new SchemaBuilderImpl(options.codeModel);
- Leaf pattern = (Leaf)parseable.parse(new CheckingSchemaBuilder(stage1,options.errorListener,
- new CascadingDatatypeLibraryFactory(
- new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader()),
- new DatatypeLibraryLoader())));
-
- return new NodeSet(options,pattern);
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/TxwTask.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/TxwTask.java
deleted file mode 100644
index e8f8d5ab5d5..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/TxwTask.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2;
-
-import com.sun.codemodel.writer.FileCodeWriter;
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.kohsuke.rngom.parse.compact.CompactParseable;
-import org.kohsuke.rngom.parse.xml.SAXParseable;
-import org.xml.sax.InputSource;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.MalformedURLException;
-
-/**
- * Ant task interface for txw compiler.
- *
- * @author ryan_shoemaker@dev.java.net
- */
-public class TxwTask extends org.apache.tools.ant.Task {
-
- // txw options - reuse command line options from the main driver
- private final TxwOptions options = new TxwOptions();
-
- // schema file
- private File schemaFile;
-
- // syntax style of RELAX NG source schema - "xml" or "compact"
- private static enum Style {
- COMPACT, XML, XMLSCHEMA, AUTO_DETECT
- }
- private Style style = Style.AUTO_DETECT;
-
- public TxwTask() {
- // default package
- options._package = options.codeModel.rootPackage();
-
- // default codewriter
- try {
- options.codeWriter = new FileCodeWriter(new File("."));
- } catch (IOException e) {
- throw new BuildException(e);
- }
- }
-
- /**
- * Parse @package
- *
- * @param pkg name of the package to generate the java classes into
- */
- public void setPackage( String pkg ) {
- options._package = options.codeModel._package( pkg );
- }
-
- /**
- * Parse @syntax
- *
- * @param style either "compact" for RELAX NG compact syntax or "XML"
- * for RELAX NG xml syntax
- */
- public void setSyntax( String style ) {
- this.style = Style.valueOf(style.toUpperCase());
- }
-
- /**
- * parse @schema
- *
- * @param schema the schema file to be processed by txw
- */
- public void setSchema( File schema ) {
- schemaFile = schema;
- }
-
- /**
- * parse @destdir
- *
- * @param dir the directory to produce generated source code in
- */
- public void setDestdir( File dir ) {
- try {
- options.codeWriter = new FileCodeWriter(dir);
- } catch (IOException e) {
- throw new BuildException(e);
- }
- }
-
- /**
- * parse @methodChaining
- *
- * @param flg true if the txw should generate api's that allow
- * method chaining (when possible, false otherwise
- */
- public void setMethodChaining( boolean flg ) {
- options.chainMethod = flg;
- }
-
- /**
- * launch txw
- */
- public void execute() throws BuildException {
- options.errorListener = new AntErrorListener(getProject());
-
- try {
- InputSource in = new InputSource(schemaFile.toURL().toExternalForm());
-
- String msg = "Compiling: " + in.getSystemId();
- log( msg, Project.MSG_INFO );
-
- if(style==Style.AUTO_DETECT) {
- String fileName = schemaFile.getPath().toLowerCase();
- if(fileName.endsWith("rnc"))
- style = Style.COMPACT;
- else
- if(fileName.endsWith("xsd"))
- style = Style.XMLSCHEMA;
- else
- style = Style.XML;
- }
-
- switch(style) {
- case COMPACT:
- options.source = new RELAXNGLoader(new CompactParseable(in,options.errorListener));
- break;
- case XML:
- options.source = new RELAXNGLoader(new SAXParseable(in,options.errorListener));
- break;
- case XMLSCHEMA:
- options.source = new XmlSchemaLoader(in);
- break;
- }
- } catch (MalformedURLException e) {
- throw new BuildException(e);
- }
-
- // kick off the compiler
- Main.run(options);
- log( "Compilation complete.", Project.MSG_INFO );
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DataPatternBuilderImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DataPatternBuilderImpl.java
deleted file mode 100644
index 0c219e6ce2c..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DataPatternBuilderImpl.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.builder.relaxng;
-
-import com.sun.codemodel.JType;
-import com.sun.tools.internal.txw2.model.Data;
-import com.sun.tools.internal.txw2.model.Leaf;
-import org.kohsuke.rngom.ast.builder.BuildException;
-import org.kohsuke.rngom.ast.builder.DataPatternBuilder;
-import org.kohsuke.rngom.ast.om.ParsedElementAnnotation;
-import org.kohsuke.rngom.ast.util.LocatorImpl;
-import org.kohsuke.rngom.parse.Context;
-
-/**
- * @author Kohsuke Kawaguchi
- */
-final class DataPatternBuilderImpl implements DataPatternBuilder {
- final JType type;
-
- public DataPatternBuilderImpl(JType type) {
- this.type = type;
- }
-
- public Leaf makePattern(LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return new Data(locator,type);
- }
-
- public void addParam(String name, String value, Context context, String ns, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- }
-
- public void annotation(ParsedElementAnnotation parsedElementAnnotation) {
- }
-
- public Leaf makePattern(Leaf except, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return makePattern(locator,annotations);
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DatatypeFactory.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DatatypeFactory.java
deleted file mode 100644
index 37dd621dad8..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/DatatypeFactory.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.builder.relaxng;
-
-import com.sun.tools.internal.txw2.model.Data;
-import com.sun.codemodel.JType;
-import com.sun.codemodel.JCodeModel;
-
-import javax.xml.namespace.QName;
-
-/**
- * Builds {@link Data} from a XML Schema datatype.
- * @author Kohsuke Kawaguchi
- */
-public class DatatypeFactory {
- private final JCodeModel codeModel;
-
- public DatatypeFactory(JCodeModel codeModel) {
- this.codeModel = codeModel;
- }
-
- /**
- * Decides the Java datatype from XML datatype.
- *
- * @return null
- * if none is found.
- */
- public JType getType(String datatypeLibrary, String type) {
- if(datatypeLibrary.equals("http://www.w3.org/2001/XMLSchema-datatypes")
- || datatypeLibrary.equals("http://www.w3.org/2001/XMLSchema")) {
- type = type.intern();
-
- if(type=="boolean")
- return codeModel.BOOLEAN;
- if(type=="int" || type=="nonNegativeInteger" || type=="positiveInteger")
- return codeModel.INT;
- if(type=="QName")
- return codeModel.ref(QName.class);
- if(type=="float")
- return codeModel.FLOAT;
- if(type=="double")
- return codeModel.DOUBLE;
- if(type=="anySimpleType" || type=="anyType")
- return codeModel.ref(String.class);
- }
-
- return null;
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarImpl.java
deleted file mode 100644
index cc49844f001..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarImpl.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.builder.relaxng;
-
-import com.sun.tools.internal.txw2.model.Leaf;
-import com.sun.tools.internal.txw2.model.Ref;
-import org.kohsuke.rngom.ast.builder.BuildException;
-import org.kohsuke.rngom.ast.builder.Grammar;
-import org.kohsuke.rngom.ast.builder.Scope;
-import org.kohsuke.rngom.ast.om.ParsedElementAnnotation;
-import org.kohsuke.rngom.ast.util.LocatorImpl;
-
-/**
- * @author Kohsuke Kawaguchi
- */
-class GrammarImpl extends GrammarSectionImpl
- implements Grammar {
-
- GrammarImpl(Scope scope) {
- super(scope,new com.sun.tools.internal.txw2.model.Grammar());
- }
-
- public Leaf endGrammar(LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return new Ref(locator,grammar,com.sun.tools.internal.txw2.model.Grammar.START);
- }
-
- public Leaf makeParentRef(String name, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return parent.makeRef(name,locator,annotations);
- }
-
- public Leaf makeRef(String name, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return new Ref(locator,grammar,name);
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarSectionImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarSectionImpl.java
deleted file mode 100644
index 635074998d6..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/GrammarSectionImpl.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.builder.relaxng;
-
-import com.sun.tools.internal.txw2.model.Define;
-import com.sun.tools.internal.txw2.model.Grammar;
-import com.sun.tools.internal.txw2.model.Leaf;
-import org.kohsuke.rngom.ast.builder.BuildException;
-import org.kohsuke.rngom.ast.builder.Div;
-import org.kohsuke.rngom.ast.builder.GrammarSection;
-import org.kohsuke.rngom.ast.builder.Include;
-import org.kohsuke.rngom.ast.builder.Scope;
-import org.kohsuke.rngom.ast.om.ParsedElementAnnotation;
-import org.kohsuke.rngom.ast.util.LocatorImpl;
-
-/**
- * @author Kohsuke Kawaguchi
- */
-abstract class GrammarSectionImpl implements GrammarSection {
-
- protected final Scope parent;
-
- protected final Grammar grammar;
-
- GrammarSectionImpl(
- Scope scope,
- Grammar grammar ) {
- this.parent = scope;
- this.grammar = grammar;
- }
-
- public void topLevelAnnotation(ParsedElementAnnotation parsedElementAnnotation) throws BuildException {
- }
-
- public void topLevelComment(CommentListImpl commentList) throws BuildException {
- }
-
- public Div makeDiv() {
- return new DivImpl(parent,grammar);
- }
-
- public Include makeInclude() {
- // TODO
- throw new UnsupportedOperationException();
- }
-
- public void define(String name, Combine combine, Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- Define def = grammar.get(name);
- def.location = locator;
-
- if(combine==null || def.leaf==null) {
- def.leaf = leaf;
- } else {
- def.leaf.merge(leaf);
- }
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/SchemaBuilderImpl.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/SchemaBuilderImpl.java
deleted file mode 100644
index 921676d8765..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/SchemaBuilderImpl.java
+++ /dev/null
@@ -1,213 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.builder.relaxng;
-
-import com.sun.codemodel.JClass;
-import com.sun.codemodel.JCodeModel;
-import com.sun.codemodel.JType;
-import com.sun.tools.internal.txw2.model.Attribute;
-import com.sun.tools.internal.txw2.model.Data;
-import com.sun.tools.internal.txw2.model.Element;
-import com.sun.tools.internal.txw2.model.Empty;
-import com.sun.tools.internal.txw2.model.Leaf;
-import com.sun.tools.internal.txw2.model.List;
-import com.sun.tools.internal.txw2.model.Value;
-import org.kohsuke.rngom.ast.builder.BuildException;
-import org.kohsuke.rngom.ast.builder.DataPatternBuilder;
-import org.kohsuke.rngom.ast.builder.ElementAnnotationBuilder;
-import org.kohsuke.rngom.ast.builder.Grammar;
-import org.kohsuke.rngom.ast.builder.NameClassBuilder;
-import org.kohsuke.rngom.ast.builder.SchemaBuilder;
-import org.kohsuke.rngom.ast.builder.Scope;
-import org.kohsuke.rngom.ast.om.ParsedElementAnnotation;
-import org.kohsuke.rngom.ast.util.LocatorImpl;
-import org.kohsuke.rngom.nc.NameClass;
-import org.kohsuke.rngom.nc.NameClassBuilderImpl;
-import org.kohsuke.rngom.parse.Context;
-import org.kohsuke.rngom.parse.IllegalSchemaException;
-import org.kohsuke.rngom.parse.Parseable;
-
-import javax.xml.namespace.QName;
-
-/**
- * Builds a model from a RELAX NG grammar.
- *
- * @author Kohsuke Kawaguchi
- */
-public final class SchemaBuilderImpl implements SchemaBuilder {
- private final NameClassBuilderImpl ncb = new NameClassBuilderImpl();
- private final JClass string;
- private final DatatypeFactory dtf;
-
- public SchemaBuilderImpl(JCodeModel codeModel) {
- string = codeModel.ref(String.class);
- dtf = new DatatypeFactory(codeModel);
- }
-
-
- public Leaf expandPattern(Leaf leaf) throws BuildException {
- return leaf;
- }
-
-
-
- public NameClassBuilder getNameClassBuilder() throws BuildException {
- return ncb;
- }
-
- private Leaf merge(java.util.List leaves) {
- for( int i=1; i leaves, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return merge(leaves);
- }
-
- public Leaf makeInterleave(java.util.List leaves, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return merge(leaves);
- }
-
- public Leaf makeGroup(java.util.List leaves, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return merge(leaves);
- }
-
- public Leaf makeOneOrMore(Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return leaf;
- }
-
- public Leaf makeZeroOrMore(Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return leaf.merge(new Empty(locator));
- }
-
- public Leaf makeOptional(Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return leaf.merge(new Empty(locator));
- }
-
- public Leaf makeList(Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return new List(locator,leaf);
- }
-
- public Leaf makeMixed(Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return leaf.merge(new Data(locator,string));
- }
-
- public Leaf makeEmpty(LocatorImpl locator, AnnotationsImpl annotations) {
- return new Empty(locator);
- }
-
- public Leaf makeNotAllowed(LocatorImpl locator, AnnotationsImpl annotations) {
- // technically this is incorrect, but we won't be
- // able to handle correctly anyway.
- return new Empty(locator);
- }
-
- public Leaf makeText(LocatorImpl locator, AnnotationsImpl annotations) {
- return new Data(locator,string);
- }
-
- public Leaf makeAttribute(NameClass nameClass, Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- Leaf r = null;
- for( QName n : nameClass.listNames() ) {
- Leaf l = new Attribute(locator,n,leaf);
- if(r!=null) r = r.merge(l);
- else r = l;
- }
- if(r==null) return new Empty(locator);
- return r;
- }
-
- public Leaf makeElement(NameClass nameClass, Leaf leaf, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- Leaf r = null;
- for( QName n : nameClass.listNames() ) {
- Leaf l = new Element(locator,n,leaf);
- if(r!=null) r = r.merge(l);
- else r = l;
- }
- if(r==null) return new Empty(locator);
- return r;
- }
-
- public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, LocatorImpl locator) throws BuildException {
- return new DataPatternBuilderImpl(getType(datatypeLibrary, type));
- }
-
- private JType getType(String datatypeLibrary, String type) {
- JType t = dtf.getType(datatypeLibrary,type);
- if(t==null) t = string;
- return t;
- }
-
- public Leaf makeValue(String datatypeLibrary, String type, String value, Context c, String ns, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException {
- return new Value(locator,getType(datatypeLibrary, type),value);
- }
-
- public Grammar makeGrammar(Scope scope) {
- return new GrammarImpl(scope);
- }
-
- public Leaf annotate(Leaf leaf, AnnotationsImpl annotations) throws BuildException {
- return leaf;
- }
-
- public Leaf annotateAfter(Leaf leaf, ParsedElementAnnotation parsedElementAnnotation) throws BuildException {
- return leaf;
- }
-
- public Leaf makeErrorPattern() {
- return new Empty(null);
- }
-
- public boolean usesComments() {
- return false;
- }
-
- public Leaf makeExternalRef(Parseable current, String uri, String ns, Scope scope, LocatorImpl locator, AnnotationsImpl annotations) throws BuildException, IllegalSchemaException {
- // I'm not too sure if this is correct
- return current.parseExternal(uri, this, scope, ns );
- }
-
- public LocatorImpl makeLocation(String systemId, int lineNumber, int columnNumber) {
- return new LocatorImpl(systemId,lineNumber,columnNumber);
- }
-
- public AnnotationsImpl makeAnnotations(CommentListImpl commentList, Context context) {
- return new AnnotationsImpl();
- }
-
- public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl locator, CommentListImpl commentList, Context context) {
- return new ElementAnnotationBuilderImpl();
- }
-
- public CommentListImpl makeCommentList() {
- return null;
- }
-
- public Leaf commentAfter(Leaf leaf, CommentListImpl commentList) throws BuildException {
- return leaf;
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/package.html b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/package.html
deleted file mode 100644
index 587ef120494..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/relaxng/package.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Reads RELAX NG grammar from RNGOM and builds the model for TXW.
-
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/XmlSchemaBuilder.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/XmlSchemaBuilder.java
deleted file mode 100644
index 804a2154757..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/XmlSchemaBuilder.java
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.builder.xsd;
-
-import com.sun.codemodel.JType;
-import com.sun.tools.internal.txw2.TxwOptions;
-import com.sun.tools.internal.txw2.builder.relaxng.DatatypeFactory;
-import com.sun.tools.internal.txw2.model.Attribute;
-import com.sun.tools.internal.txw2.model.Data;
-import com.sun.tools.internal.txw2.model.Define;
-import com.sun.tools.internal.txw2.model.Empty;
-import com.sun.tools.internal.txw2.model.Grammar;
-import com.sun.tools.internal.txw2.model.Leaf;
-import com.sun.tools.internal.txw2.model.List;
-import com.sun.tools.internal.txw2.model.NodeSet;
-import com.sun.tools.internal.txw2.model.Element;
-import com.sun.tools.internal.txw2.model.Ref;
-import com.sun.xml.xsom.XSAnnotation;
-import com.sun.xml.xsom.XSAttributeDecl;
-import com.sun.xml.xsom.XSAttributeUse;
-import com.sun.xml.xsom.XSComplexType;
-import com.sun.xml.xsom.XSContentType;
-import com.sun.xml.xsom.XSDeclaration;
-import com.sun.xml.xsom.XSFacet;
-import com.sun.xml.xsom.XSIdentityConstraint;
-import com.sun.xml.xsom.XSListSimpleType;
-import com.sun.xml.xsom.XSNotation;
-import com.sun.xml.xsom.XSParticle;
-import com.sun.xml.xsom.XSRestrictionSimpleType;
-import com.sun.xml.xsom.XSSchema;
-import com.sun.xml.xsom.XSSchemaSet;
-import com.sun.xml.xsom.XSSimpleType;
-import com.sun.xml.xsom.XSUnionSimpleType;
-import com.sun.xml.xsom.XSXPath;
-import com.sun.xml.xsom.XSWildcard;
-import com.sun.xml.xsom.XSModelGroupDecl;
-import com.sun.xml.xsom.XSModelGroup;
-import com.sun.xml.xsom.XSElementDecl;
-import com.sun.xml.xsom.XSType;
-import com.sun.xml.xsom.XSAttContainer;
-import com.sun.xml.xsom.XSAttGroupDecl;
-import com.sun.xml.xsom.visitor.XSFunction;
-import com.sun.xml.xsom.visitor.XSSimpleTypeFunction;
-
-import javax.xml.namespace.QName;
-import java.util.Map;
-import java.util.HashMap;
-
-/**
- * @author Kohsuke Kawaguchi
- */
-public final class XmlSchemaBuilder implements XSFunction, XSSimpleTypeFunction {
- public static NodeSet build( XSSchemaSet xs, TxwOptions opts ) {
- XmlSchemaBuilder builder = new XmlSchemaBuilder(xs,opts);
- builder.build(xs);
- return builder.nodeSet;
- }
-
- private void build(XSSchemaSet xs) {
- // make sure that we bind all complex types
- for( XSSchema s : xs.getSchemas() ) {
- for( XSComplexType t : s.getComplexTypes().values() ) {
- t.apply(this);
- }
- }
-
- nodeSet.addAll(complexTypes.values());
- nodeSet.addAll(modelGroups.values());
- nodeSet.addAll(attGroups.values());
- }
-
- public Leaf simpleType(XSSimpleType simpleType) {
- return simpleType.apply((XSSimpleTypeFunction)this);
- }
-
- public Leaf particle(XSParticle particle) {
- return particle.getTerm().apply(this);
- }
-
- public Leaf empty(XSContentType empty) {
- return new Empty(empty.getLocator());
- }
-
- public Attribute attributeDecl(XSAttributeDecl decl) {
- return new Attribute(decl.getLocator(),
- getQName(decl),
- simpleType(decl.getType()));
- }
-
- public Attribute attributeUse(XSAttributeUse use) {
- return attributeDecl(use.getDecl());
- }
-
- public Leaf wildcard(XSWildcard wc) {
- // wildcard can be always written through the well-formedness method.
- // no need to generate anything for this.
- return new Empty(wc.getLocator());
- }
-
- public Leaf modelGroupDecl(XSModelGroupDecl mg) {
- Define def = modelGroups.get(mg);
- if(def==null) {
- def = grammar.get(mg.getName()); // TODO: name collision detection and avoidance
- modelGroups.put(mg,def);
-
- def.addChild(mg.getModelGroup().apply(this));
- }
- return new Ref(mg.getLocator(),def);
- }
-
- public Leaf modelGroup(XSModelGroup mg) {
- XSParticle[] children = mg.getChildren();
- if(children.length==0) return new Empty(mg.getLocator());
-
- Leaf l = particle(children[0]);
- for( int i=1; i modelGroups = new HashMap();
-
- /**
- * We map complex types to interfaces.
- */
- private final Map complexTypes = new HashMap();
-
- /**
- * ... and attribute groups
- */
- private final Map attGroups = new HashMap();
-
- private final Grammar grammar = new Grammar();
-
- private XmlSchemaBuilder(XSSchemaSet xs,TxwOptions opts) {
- this.schemaSet = xs;
- grammar.addChild(new Empty(null));
- this.nodeSet = new NodeSet(opts,grammar);
- this.dtf = new DatatypeFactory(opts.codeModel);
- }
-
-
-
-// won't be used
- public Leaf annotation(XSAnnotation xsAnnotation) {
- throw new IllegalStateException();
- }
-
- public Leaf schema(XSSchema xsSchema) {
- throw new IllegalStateException();
- }
-
- public Leaf facet(XSFacet xsFacet) {
- throw new IllegalStateException();
- }
-
- public Leaf notation(XSNotation xsNotation) {
- throw new IllegalStateException();
- }
-
- public Leaf identityConstraint(XSIdentityConstraint xsIdentityConstraint) {
- throw new IllegalStateException();
- }
-
- public Leaf xpath(XSXPath xsxPath) {
- throw new IllegalStateException();
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/package.html b/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/package.html
deleted file mode 100644
index 1b90dc339cf..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/builder/xsd/package.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Reads XML Schema grammar from XSOM and builds the model for TXW.
-
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Attribute.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Attribute.java
deleted file mode 100644
index 8b901d1f10b..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Attribute.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.model;
-
-import com.sun.codemodel.JAnnotationUse;
-import com.sun.codemodel.JDefinedClass;
-import com.sun.codemodel.JMethod;
-import com.sun.codemodel.JMod;
-import com.sun.codemodel.JType;
-import com.sun.tools.internal.txw2.NameUtil;
-import com.sun.tools.internal.txw2.model.prop.AttributeProp;
-import com.sun.tools.internal.txw2.model.prop.Prop;
-import com.sun.xml.internal.txw2.annotation.XmlAttribute;
-import org.xml.sax.Locator;
-
-import javax.xml.namespace.QName;
-import java.util.HashSet;
-import java.util.Set;
-
-/**
- * Attribute declaration.
- *
- * @author Kohsuke Kawaguchi
- */
-public class Attribute extends XmlNode {
- public Attribute(Locator location, QName name, Leaf leaf) {
- super(location, name, leaf);
- }
-
- void declare(NodeSet nset) {
- ; // attributes won't produce a class
- }
-
- void generate(NodeSet nset) {
- ; // nothing
- }
-
- void generate(JDefinedClass clazz, NodeSet nset, Set props) {
- Set types = new HashSet();
-
- for( Leaf l : collectChildren() ) {
- if (l instanceof Text) {
- types.add(((Text)l).getDatatype(nset));
- }
- }
-
- String methodName = NameUtil.toMethodName(name.getLocalPart());
-
- for( JType t : types ) {
- if(!props.add(new AttributeProp(name,t)))
- continue;
-
- JMethod m = clazz.method(JMod.PUBLIC,
- nset.opts.chainMethod? (JType)clazz : nset.codeModel.VOID,
- methodName);
- m.param(t,"value");
-
- JAnnotationUse a = m.annotate(XmlAttribute.class);
- if(!methodName.equals(name.getLocalPart()))
- a.param("value",name.getLocalPart());
- if(!name.getNamespaceURI().equals(""))
- a.param("ns",name.getNamespaceURI());
-
- }
- }
-
- public String toString() {
- return "Attribute "+name;
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Define.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Define.java
deleted file mode 100644
index c25127fb126..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Define.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.model;
-
-import com.sun.codemodel.JDefinedClass;
-import com.sun.tools.internal.txw2.model.prop.Prop;
-import com.sun.xml.internal.txw2.TypedXmlWriter;
-
-import java.util.HashSet;
-import java.util.Set;
-
-
-/**
- * A named pattern.
- *
- * @author Kohsuke Kawaguchi
- */
-public class Define extends WriterNode {
- public final Grammar scope;
- public final String name;
-
- JDefinedClass clazz;
-
- public Define(Grammar scope, String name) {
- super(null,null);
- if(scope==null) scope = (Grammar)this; // hack for start pattern
- this.scope = scope;
- this.name = name;
- assert name!=null;
- }
-
- /**
- * Returns true if this define only contains
- * one child (and thus considered inlinable.)
- *
- * A pattern definition is also inlineable if
- * it's the start of the grammar (because "start" isn't a meaningful name)
- */
- public boolean isInline() {
- return hasOneChild() || name==Grammar.START;
- }
-
- void declare(NodeSet nset) {
- if(isInline()) return;
-
- clazz = nset.createClass(name);
- clazz._implements(TypedXmlWriter.class);
- }
-
- void generate(NodeSet nset) {
- if(clazz==null) return;
-
- HashSet props = new HashSet();
- for( Leaf l : this )
- l.generate(clazz,nset,props);
- }
-
- void generate(JDefinedClass clazz, NodeSet nset, Set props) {
- if(isInline()) {
- for( Leaf l : this )
- l.generate(clazz,nset, props);
- } else {
- assert this.clazz!=null;
- clazz._implements(this.clazz);
- }
- }
-
- void prepare(NodeSet nset) {
- if(isInline() && leaf instanceof WriterNode && !name.equals(Grammar.START))
- ((WriterNode)leaf).alternativeName = name;
- }
-
- public String toString() {
- return "Define "+name;
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Element.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Element.java
deleted file mode 100644
index 8dad70f6c3b..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Element.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.model;
-
-import com.sun.codemodel.JAnnotationUse;
-import com.sun.codemodel.JDefinedClass;
-import com.sun.codemodel.JMethod;
-import com.sun.codemodel.JMod;
-import com.sun.codemodel.JType;
-import com.sun.tools.internal.txw2.NameUtil;
-import com.sun.tools.internal.txw2.model.prop.ElementProp;
-import com.sun.tools.internal.txw2.model.prop.LeafElementProp;
-import com.sun.tools.internal.txw2.model.prop.Prop;
-import com.sun.xml.internal.txw2.TypedXmlWriter;
-import com.sun.xml.internal.txw2.annotation.XmlElement;
-import org.xml.sax.Locator;
-
-import javax.xml.namespace.QName;
-import java.util.HashSet;
-import java.util.Set;
-
-/**
- * Element declaration.
- *
- * @author Kohsuke Kawaguchi
- */
-public class Element extends XmlNode {
- /**
- * True if this element can be a root element.
- */
- public boolean isRoot;
-
- private Strategy strategy;
-
- public Element(Locator location, QName name, Leaf leaf) {
- super(location, name, leaf);
- }
-
- /**
- * Returns true if this element should generate an interface.
- */
- private Strategy decideStrategy() {
- if(isRoot)
- return new ToInterface();
-
- if(hasOneChild() && leaf instanceof Ref && !((Ref)leaf).isInline())
- return new HasOneRef((Ref)leaf);
-
- Set children = collectChildren();
- for( Leaf l : children ) {
- if( l instanceof XmlNode )
- // if it has attributes/elements in children
- // generate an interface
- return new ToInterface();
- }
-
- // otherwise this element only has data, so just generate methods for them.
- return new DataOnly();
- }
-
- void declare(NodeSet nset) {
- strategy = decideStrategy();
- strategy.declare(nset);
- }
-
- void generate(NodeSet nset) {
- strategy.generate(nset);
- }
-
- void generate(JDefinedClass clazz, NodeSet nset, Set props) {
- strategy.generate(clazz,nset,props);
- }
-
-
- private JMethod generateMethod(JDefinedClass clazz, NodeSet nset, JType retT) {
- String methodName = NameUtil.toMethodName(name.getLocalPart());
-
- JMethod m = clazz.method(JMod.PUBLIC, retT, methodName);
-
- JAnnotationUse a = m.annotate(XmlElement.class);
- if(!methodName.equals(name.getLocalPart()))
- a.param("value",name.getLocalPart());
- if(nset.defaultNamespace==null || !nset.defaultNamespace.equals(name.getNamespaceURI()))
- a.param("ns",name.getNamespaceURI());
-
- return m;
- }
-
- public String toString() {
- return "Element "+name;
- }
-
-
- interface Strategy {
- void declare(NodeSet nset);
- void generate(NodeSet nset);
- void generate(JDefinedClass clazz, NodeSet nset, Set props);
- }
-
- /**
- * Maps to an interface
- */
- private class ToInterface implements Strategy {
- private JDefinedClass clazz;
-
- public void declare(NodeSet nset) {
- String cname;
- if(alternativeName!=null)
- cname = alternativeName;
- else
- cname = name.getLocalPart();
- clazz = nset.createClass(cname);
- clazz._implements(TypedXmlWriter.class);
-
- clazz.annotate(XmlElement.class)
- .param("value",name.getLocalPart());
- // TODO: namespace
- }
-
- public void generate(NodeSet nset) {
- HashSet props = new HashSet();
- for( Leaf l : Element.this )
- l.generate(clazz,nset, props);
- }
-
- public void generate(JDefinedClass outer, NodeSet nset, Set props) {
- if(props.add(new ElementProp(name,clazz)))
- generateMethod(outer, nset, clazz);
- }
- }
-
- /**
- * For things like "element foo {refToAnotherPattern}"
- */
- private class HasOneRef implements Strategy {
- private final Ref ref;
-
- public HasOneRef(Ref ref) {
- this.ref = ref;
- }
-
- public void declare(NodeSet nset) {
- }
- public void generate(NodeSet nset) {
- }
-
- public void generate(JDefinedClass clazz, NodeSet nset, Set props) {
- if(props.add(new ElementProp(name,ref.def.clazz)))
- generateMethod(clazz, nset, ref.def.clazz);
- }
- }
-
- private class DataOnly implements Strategy {
- public void declare(NodeSet nset) {
- }
- public void generate(NodeSet nset) {
- }
-
- // TODO: code share with Attribute
- public void generate(JDefinedClass clazz, NodeSet nset, Set props) {
- Set types = new HashSet();
-
- for( Leaf l : collectChildren() ) {
- if (l instanceof Text) {
- types.add(((Text)l).getDatatype(nset));
- }
- }
-
- for( JType t : types ) {
- if(!props.add(new LeafElementProp(name,t)))
- continue;
- generateMethod(clazz,
- nset, nset.opts.chainMethod? (JType)clazz : nset.codeModel.VOID
- ).param(t,"value");
- }
- }
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Leaf.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Leaf.java
deleted file mode 100644
index 5fccf0c04c0..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/Leaf.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.model;
-
-import com.sun.codemodel.JDefinedClass;
-import com.sun.codemodel.JMethod;
-import com.sun.codemodel.JMod;
-import com.sun.codemodel.JType;
-import com.sun.tools.internal.txw2.model.prop.Prop;
-import com.sun.tools.internal.txw2.model.prop.ValueProp;
-import com.sun.xml.internal.txw2.annotation.XmlValue;
-import org.kohsuke.rngom.ast.om.ParsedPattern;
-import org.xml.sax.Locator;
-
-import java.util.Iterator;
-import java.util.Set;
-
-/**
- * {@link Leaf}s form a set (by a cyclic doubly-linked list.)
- *
- * @author Kohsuke Kawaguchi
- */
-public abstract class Leaf implements ParsedPattern {
- private Leaf next;
- private Leaf prev;
-
- /**
- * Source location where this leaf was defined.
- */
- public Locator location;
-
- protected Leaf(Locator location) {
- this.location = location;
- prev = next = this;
- }
-
- public final Leaf getNext() {
- assert next!=null;
- assert next.prev == this;
- return next;
- }
-
- public final Leaf getPrev() {
- assert prev!=null;
- assert prev.next == this;
- return prev;
- }
-
- /**
- * Combines two sets into one set.
- *
- * @return this
- */
- public final Leaf merge(Leaf that) {
- Leaf n1 = this.next;
- Leaf n2 = that.next;
-
- that.next = n1;
- that.next.prev = that;
- this.next = n2;
- this.next.prev = this;
-
- return this;
- }
-
- /**
- * Returns the collection of all the siblings
- * (including itself)
- */
- public final Iterable siblings() {
- return new Iterable() {
- public Iterator iterator() {
- return new CycleIterator(Leaf.this);
- }
- };
- }
-
- /**
- * Populate the body of the writer class.
- *
- * @param props
- * captures the generatesd {@link Prop}s to
- */
- abstract void generate(JDefinedClass clazz, NodeSet nset, Set props);
-
-
-
-
- /**
- * Creates a prop of the data value method.
- */
- protected final void createDataMethod(JDefinedClass clazz, JType valueType, NodeSet nset, Set props) {
- if(!props.add(new ValueProp(valueType)))
- return;
-
- JMethod m = clazz.method(JMod.PUBLIC,
- nset.opts.chainMethod? (JType)clazz : nset.codeModel.VOID,
- "_text");
- m.annotate(XmlValue.class);
- m.param(valueType,"value");
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/NodeSet.java b/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/NodeSet.java
deleted file mode 100644
index 64c3839271e..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/txw2/model/NodeSet.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*
- * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.txw2.model;
-
-import com.sun.codemodel.ClassType;
-import com.sun.codemodel.JClassAlreadyExistsException;
-import com.sun.codemodel.JCodeModel;
-import com.sun.codemodel.JDefinedClass;
-import com.sun.codemodel.JMod;
-import com.sun.tools.internal.txw2.NameUtil;
-import com.sun.tools.internal.txw2.TxwOptions;
-import com.sun.xml.internal.txw2.annotation.XmlNamespace;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.LinkedHashSet;
-import java.util.Set;
-
-/**
- * Root of the model.
- *
- * @author Kohsuke Kawaguchi
- */
-public class NodeSet extends LinkedHashSet {
-
- /*package*/ final TxwOptions opts;
- /*package*/ final JCodeModel codeModel;
-
- /**
- * Set of all the {@link Element}s that can be root.
- */
- private final Set rootElements = new HashSet();
-
- /** The namespace URI declared in {@link XmlNamespace}. */
- /*package*/ final String defaultNamespace;
-
- public NodeSet(TxwOptions opts, Leaf entry) {
- this.opts = opts;
- this.codeModel = opts.codeModel;
- addAll(entry.siblings());
- markRoot(entry.siblings(),rootElements);
-
- // decide what to put in @XmlNamespace
- Set ns = new HashSet();
- for( Element e : rootElements )
- ns.add(e.name.getNamespaceURI());
-
- if(ns.size()!=1 || opts.noPackageNamespace || opts._package.isUnnamed())
- defaultNamespace = null;
- else {
- defaultNamespace = ns.iterator().next();
-
- opts._package.annotate(XmlNamespace.class)
- .param("value",defaultNamespace);
- }
- }
-
- /**
- * Marks all the element children as root.
- */
- private void markRoot(Iterable c, Set rootElements) {
- for( Leaf l : c ) {
- if( l instanceof Element ) {
- Element e = (Element)l;
- rootElements.add(e);
- e.isRoot = true;
- }
- if( l instanceof Ref ) {
- markRoot(((Ref)l).def,rootElements);
- }
- }
- }
-
- private void addAll(Iterable c) {
- for( Leaf l : c ) {
- if(l instanceof Element)
- if(add((Element)l))
- addAll((Element)l);
- if(l instanceof Grammar) {
- Grammar g = (Grammar)l;
- for( Define d : g.getDefinitions() )
- add(d);
- }
- if(l instanceof Ref) {
- Ref r = (Ref)l;
- Define def = r.def;
-// if(def instanceof Grammar) {
-// for( Define d : ((Grammar)def).getDefinitions() )
-// if(add(d))
-// addAll(d);
-// }
- add(def);
- }
- }
- }
-
- private boolean add(Define def) {
- boolean b = super.add(def);
- if(b)
- addAll(def);
- return b;
- }
-
- public Collection subset(Class t) {
- ArrayList r = new ArrayList(size());
- for( WriterNode n : this )
- if(t.isInstance(n))
- r.add((T)n);
- return r;
- }
-
- /**
- * Generate code
- */
- public void write(TxwOptions opts) {
- for( WriterNode n : this )
- n.prepare(this);
- for( WriterNode n : this )
- n.declare(this);
- for( WriterNode n : this )
- n.generate(this);
- }
-
- /*package*/ final JDefinedClass createClass(String name) {
- try {
- return opts._package._class(
- JMod.PUBLIC, NameUtil.toClassName(name), ClassType.INTERFACE );
- } catch (JClassAlreadyExistsException e) {
- for( int i=2; true; i++ ) {
- try {
- return opts._package._class(
- JMod.PUBLIC, NameUtil.toClassName(name+String.valueOf(i)), ClassType.INTERFACE );
- } catch (JClassAlreadyExistsException e1) {
- ; // continue
- }
- }
- }
- }
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/Invoker.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/Invoker.java
index d2edca837e5..6f53444edb1 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/Invoker.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/Invoker.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -25,13 +25,25 @@
package com.sun.tools.internal.ws;
-import com.sun.tools.internal.xjc.api.util.APTClassLoader;
+import com.sun.istack.internal.tools.MaskingClassLoader;
+import com.sun.istack.internal.tools.ParallelWorldClassLoader;
+import com.sun.tools.internal.ws.resources.WscompileMessages;
import com.sun.tools.internal.xjc.api.util.ToolsJarNotFoundException;
+import com.sun.xml.internal.bind.util.Which;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceFeature;
+import java.io.File;
import java.io.OutputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
/**
* Invokes JAX-WS tools in a special class loader that can pick up APT classes,
@@ -39,40 +51,173 @@ import java.lang.reflect.Method;
*
* @author Kohsuke Kawaguchi
*/
-final class Invoker {
- /**
- * List of packages that need to be loaded in {@link APTClassLoader}.
- */
- private static final String[] prefixes = {
- "com.sun.tools.internal.jxc.",
- "com.sun.tools.internal.xjc.",
- "com.sun.tools.apt.",
- "com.sun.tools.internal.ws.",
- "com.sun.tools.javac.",
- "com.sun.tools.javadoc.",
- "com.sun.mirror."
- };
+public final class Invoker {
+ static int invoke(String mainClass, String[] args) throws Throwable {
+ // use the platform default proxy if available.
+ // see sun.net.spi.DefaultProxySelector for details.
+ try {
+ System.setProperty("java.net.useSystemProxies","true");
+ } catch (SecurityException e) {
+ // failing to set this property isn't fatal
+ }
- static void main(String toolName, String[] args) throws Throwable {
ClassLoader oldcc = Thread.currentThread().getContextClassLoader();
try {
- APTClassLoader cl = new APTClassLoader(Invoker.class.getClassLoader(),prefixes);
+ ClassLoader cl = Invoker.class.getClassLoader();
+ if(Arrays.asList(args).contains("-Xendorsed"))
+ cl = createClassLoader(cl); // perform JDK6 workaround hack
+ else {
+ if(!checkIfLoading21API()) {
+ if(Service.class.getClassLoader()==null)
+ System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED());
+ else
+ System.err.println(WscompileMessages.WRAPPER_TASK_LOADING_20_API(Which.which(Service.class)));
+ return -1;
+ }
+ //find and load tools.jar
+ List urls = new ArrayList();
+ findToolsJar(cl, urls);
+
+ if(urls.size() > 0){
+ List mask = new ArrayList(Arrays.asList(maskedPackages));
+
+ // first create a protected area so that we load JAXB/WS 2.1 API
+ // and everything that depends on them inside
+ cl = new MaskingClassLoader(cl,mask);
+
+ // then this classloader loads the API and tools.jar
+ cl = new URLClassLoader(urls.toArray(new URL[urls.size()]), cl);
+
+ // finally load the rest of the RI. The actual class files are loaded from ancestors
+ cl = new ParallelWorldClassLoader(cl,"");
+ }
+
+ }
+
Thread.currentThread().setContextClassLoader(cl);
- Class compileTool = cl.loadClass("com.sun.tools.internal.ws.wscompile.CompileTool");
- Constructor ctor = compileTool.getConstructor(OutputStream.class,String.class);
- Object tool = ctor.newInstance(System.out,toolName);
+ Class compileTool = cl.loadClass(mainClass);
+ Constructor ctor = compileTool.getConstructor(OutputStream.class);
+ Object tool = ctor.newInstance(System.out);
Method runMethod = compileTool.getMethod("run",String[].class);
boolean r = (Boolean)runMethod.invoke(tool,new Object[]{args});
- System.exit(r ? 0 : 1);
+ return r ? 0 : 1;
} catch (ToolsJarNotFoundException e) {
System.err.println(e.getMessage());
} catch (InvocationTargetException e) {
throw e.getCause();
- } finally {
+ } catch(ClassNotFoundException e){
+ throw e;
+ }finally {
Thread.currentThread().setContextClassLoader(oldcc);
}
- System.exit(1);
+ return -1;
}
+
+ /**
+ * Returns true if the RI appears to be loading the JAX-WS 2.1 API.
+ */
+ public static boolean checkIfLoading21API() {
+ try {
+ Service.class.getMethod("getPort",Class.class, WebServiceFeature[].class);
+ // yup. things look good.
+ return true;
+ } catch (NoSuchMethodException e) {
+ } catch (LinkageError e) {
+ }
+ // nope
+ return false;
+ }
+
+ /**
+ * Creates a classloader that can load JAXB/WS 2.1 API and tools.jar,
+ * and then return a classloader that can RI classes, which can see all those APIs and tools.jar.
+ */
+ public static ClassLoader createClassLoader(ClassLoader cl) throws ClassNotFoundException, MalformedURLException, ToolsJarNotFoundException {
+
+ URL[] urls = findIstackAPIs(cl);
+ if(urls.length==0)
+ return cl; // we seem to be able to load everything already. no need for the hack
+
+ List mask = new ArrayList(Arrays.asList(maskedPackages));
+ if(urls.length>1) {
+ // we need to load 2.1 API from side. so add them to the mask
+ mask.add("javax.xml.bind.");
+ mask.add("javax.xml.ws.");
+ }
+
+ // first create a protected area so that we load JAXB/WS 2.1 API
+ // and everything that depends on them inside
+ cl = new MaskingClassLoader(cl,mask);
+
+ // then this classloader loads the API and tools.jar
+ cl = new URLClassLoader(urls, cl);
+
+ // finally load the rest of the RI. The actual class files are loaded from ancestors
+ cl = new ParallelWorldClassLoader(cl,"");
+
+ return cl;
+ }
+
+ /**
+ * Creates a classloader for loading JAXB/WS 2.1 jar and tools.jar
+ */
+ private static URL[] findIstackAPIs(ClassLoader cl) throws ClassNotFoundException, MalformedURLException, ToolsJarNotFoundException {
+ List urls = new ArrayList();
+
+ if(Service.class.getClassLoader()==null) {
+ // JAX-WS API is loaded from bootstrap classloader
+ URL res = cl.getResource("javax/xml/ws/EndpointReference.class");
+ if(res==null)
+ throw new ClassNotFoundException("There's no JAX-WS 2.1 API in the classpath");
+ urls.add(ParallelWorldClassLoader.toJarUrl(res));
+
+ res = cl.getResource("javax/xml/bind/annotation/XmlSeeAlso.class");
+ if(res==null)
+ throw new ClassNotFoundException("There's no JAXB 2.1 API in the classpath");
+ urls.add(ParallelWorldClassLoader.toJarUrl(res));
+ }
+
+ findToolsJar(cl, urls);
+
+ return urls.toArray(new URL[urls.size()]);
+ }
+
+ private static void findToolsJar(ClassLoader cl, List urls) throws ToolsJarNotFoundException, MalformedURLException {
+ try {
+ Class.forName("com.sun.tools.javac.Main",false,cl);
+ Class.forName("com.sun.tools.apt.Main",false,cl);
+ // we can already load them in the parent class loader.
+ // so no need to look for tools.jar.
+ // this happens when we are run inside IDE/Ant, or
+ // in Mac OS.
+ } catch (ClassNotFoundException e) {
+ // otherwise try to find tools.jar
+ File jreHome = new File(System.getProperty("java.home"));
+ File toolsJar = new File( jreHome.getParent(), "lib/tools.jar" );
+
+ if (!toolsJar.exists()) {
+ throw new ToolsJarNotFoundException(toolsJar);
+ }
+ urls.add(toolsJar.toURL());
+ }
+ }
+
+ /**
+ * The list of package prefixes we want the
+ * {@link MaskingClassLoader} to prevent the parent
+ * classLoader from loading
+ */
+ public static String[] maskedPackages = new String[]{
+ "com.sun.istack.internal.tools.",
+ "com.sun.tools.internal.jxc.",
+ "com.sun.tools.internal.xjc.",
+ "com.sun.tools.internal.ws.",
+ "com.sun.codemodel.internal.",
+ "com.sun.relaxng.",
+ "com.sun.xml.internal.xsom.",
+ "com.sun.xml.internal.bind.",
+ "com.sun.xml.internal.ws."
+ };
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/ToolVersion.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/ToolVersion.java
index fa3c51393dc..7d5aa32531e 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/ToolVersion.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/ToolVersion.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/WsGen.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/WsGen.java
index 7f6fc1ea8d7..a4b3de5da4d 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/WsGen.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/WsGen.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -24,12 +24,37 @@
*/
package com.sun.tools.internal.ws;
-/**
- * @author Vivek Pandey
- */
+import com.sun.tools.internal.ws.wscompile.WsgenTool;
+/**
+ * WsGen tool entry point.
+ *
+ * @author Vivek Pandey
+ * @author Kohsuke Kawaguchi
+ */
public class WsGen {
+ /**
+ * CLI entry point. Use {@link Invoker} to
+ * load tools.jar
+ */
public static void main(String[] args) throws Throwable {
- Invoker.main("wsgen",args);
+ System.exit(Invoker.invoke("com.sun.tools.internal.ws.wscompile.WsgenTool", args));
+ }
+
+ /**
+ * Entry point for tool integration.
+ *
+ *
+ * This does the same as {@link #main(String[])} except
+ * it doesn't invoke {@link System#exit(int)}. This method
+ * also doesn't play with classloaders. It's the caller's
+ * responsibility to set up the classloader to load all jars
+ * needed to run the tool, including $JAVA_HOME/lib/tools.jar
+ *
+ * @return
+ * 0 if the tool runs successfully.
+ */
+ public static int doMain(String[] args) throws Throwable {
+ return new WsgenTool(System.out).run(args) ? 0 : 1;
}
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/WsImport.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/WsImport.java
index 98be2983479..94fd2a83a41 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/WsImport.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/WsImport.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -24,12 +24,37 @@
*/
package com.sun.tools.internal.ws;
-/**
- * @author Vivek Pandey
- */
+import com.sun.tools.internal.ws.wscompile.WsimportTool;
+/**
+ * WsImport tool entry point.
+ *
+ * @author Vivek Pandey
+ * @author Kohsuke Kawaguchi
+ */
public class WsImport {
+ /**
+ * CLI entry point. Use {@link Invoker} to
+ * load tools.jar
+ */
public static void main(String[] args) throws Throwable {
- Invoker.main("wsimport",args);
+ System.exit(Invoker.invoke("com.sun.tools.internal.ws.wscompile.WsimportTool", args));
+ }
+
+ /**
+ * Entry point for tool integration.
+ *
+ *
+ * This does the same as {@link #main(String[])} except
+ * it doesn't invoke {@link System#exit(int)}. This method
+ * also doesn't play with classloaders. It's the caller's
+ * responsibility to set up the classloader to load all jars
+ * needed to run the tool, including $JAVA_HOME/lib/tools.jar
+ *
+ * @return
+ * 0 if the tool runs successfully.
+ */
+ public static int doMain(String[] args) throws Throwable {
+ return new WsimportTool(System.out).run(args) ? 0 : 1;
}
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/api/TJavaGeneratorExtension.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/TJavaGeneratorExtension.java
new file mode 100644
index 00000000000..c9c2ff3d62b
--- /dev/null
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/TJavaGeneratorExtension.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.tools.internal.ws.api;
+
+import com.sun.codemodel.internal.JMethod;
+import com.sun.tools.internal.ws.api.wsdl.TWSDLOperation;
+import com.sun.tools.internal.ws.processor.generator.JavaGeneratorExtensionFacade;
+
+/**
+ * Provides Java SEI Code generation Extensiblity mechanism.
+ *
+ * @see JavaGeneratorExtensionFacade
+ * @author Vivek Pandey
+ */
+public abstract class TJavaGeneratorExtension {
+ /**
+ * This method should be used to write annotations on {@link JMethod}.
+ *
+ * @param wsdlOperation non-null wsdl extensiblity element - wsdl:portType/wsdl:operation.
+ * @param jMethod non-null {@link JMethod}
+ */
+ public abstract void writeMethodAnnotations(TWSDLOperation wsdlOperation, JMethod jMethod);
+}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensible.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensible.java
new file mode 100644
index 00000000000..0f5be2fa8a3
--- /dev/null
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensible.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.tools.internal.ws.api.wsdl;
+
+
+import javax.xml.namespace.QName;
+
+/**
+ * A WSDL element or attribute that can be extended.
+ *
+ * @author Vivek Pandey
+ */
+public interface TWSDLExtensible {
+ /**
+ * Gives the wsdl extensiblity element's name attribute value. It can be null as @name on some of the wsdl
+ * extensibility elements are optinal such as wsdl:input
+ */
+ String getNameValue();
+
+ /**
+ * Gives namespace URI of a wsdl extensibility element.
+ */
+ String getNamespaceURI();
+
+ /**
+ * Gives the WSDL element or WSDL extensibility element name
+ */
+ QName getWSDLElementName();
+
+ /**
+ * An {@link TWSDLExtensionHandler} will call this method to add an {@link TWSDLExtension} object
+ *
+ * @param e non-null extension object
+ */
+ void addExtension(TWSDLExtension e);
+
+ /**
+ * Gives iterator over {@link TWSDLExtension}s
+ */
+ Iterable extends TWSDLExtension> extensions();
+
+ /**
+ * Gives the parent of a wsdl extensibility element.
+ *
+ * For example,
+ *
+ *
+ *
+ * ...
+ * Here, the {@link TWSDLExtensible}representing wsdl:operation's parent would be wsdl:portType
+ *
+ * @return null if the {@link TWSDLExtensible} has no parent, root of wsdl document - wsdl:definition.
+ */
+ TWSDLExtensible getParent();
+}
diff --git a/jaxws/src/share/classes/com/sun/xml/internal/ws/model/Mode.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtension.java
similarity index 80%
rename from jaxws/src/share/classes/com/sun/xml/internal/ws/model/Mode.java
rename to jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtension.java
index 3691fce609d..c709b30e5c1 100644
--- a/jaxws/src/share/classes/com/sun/xml/internal/ws/model/Mode.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtension.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -23,19 +23,16 @@
* have any questions.
*/
-package com.sun.xml.internal.ws.model;
+package com.sun.tools.internal.ws.api.wsdl;
/**
- * Defines parameter mode, IN, OUT or INOUT
+ * A WSDL extension
*
* @author Vivek Pandey
*/
-
-public enum Mode {
- IN(0), OUT(1), INOUT(2);
-
- private Mode(int mode){
- this.mode = mode;
- }
- private final int mode;
+public interface TWSDLExtension {
+ /**
+ * Gives Parent {@link TWSDLExtensible} element
+ */
+ TWSDLExtensible getParent();
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensionHandler.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensionHandler.java
new file mode 100644
index 00000000000..5b7fe935ca4
--- /dev/null
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLExtensionHandler.java
@@ -0,0 +1,215 @@
+/*
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.tools.internal.ws.api.wsdl;
+
+import com.sun.tools.internal.ws.wsdl.document.WSDLConstants;
+import org.w3c.dom.Element;
+
+/**
+ * JAXWS WSDL parser {@link com.sun.tools.internal.ws.wsdl.parser.WSDLParser} will call an {@link TWSDLExtensionHandler} registered
+ * with it for the WSDL extensibility elements thats not already defined in the WSDL 1.1 spec, such as SOAP or MIME.
+ *
+ * @author Vivek Pandey
+ */
+public abstract class TWSDLExtensionHandler {
+ /**
+ * Gives the namespace of an extensibility element.
+ *
+ * For example a soap 1.1 XXExtensionHandler would return ""http://schemas.xmlsoap.org/wsdl/soap/"
+ */
+ public String getNamespaceURI() {
+ return null;
+ }
+
+ /**
+ * This interface is called during WSDL parsing on detecting any wsdl extension.
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean doHandleExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_DEFINITIONS)) {
+ return handleDefinitionsExtension(context, parent, e);
+ } else if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_TYPES)) {
+ return handleTypesExtension(context, parent, e);
+ } else if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_PORT_TYPE)) {
+ return handlePortTypeExtension(context, parent, e);
+ } else if (
+ parent.getWSDLElementName().equals(WSDLConstants.QNAME_BINDING)) {
+ return handleBindingExtension(context, parent, e);
+ } else if (
+ parent.getWSDLElementName().equals(WSDLConstants.QNAME_OPERATION)) {
+ return handleOperationExtension(context, parent, e);
+ } else if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_INPUT)) {
+ return handleInputExtension(context, parent, e);
+ } else if (
+ parent.getWSDLElementName().equals(WSDLConstants.QNAME_OUTPUT)) {
+ return handleOutputExtension(context, parent, e);
+ } else if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_FAULT)) {
+ return handleFaultExtension(context, parent, e);
+ } else if (
+ parent.getWSDLElementName().equals(WSDLConstants.QNAME_SERVICE)) {
+ return handleServiceExtension(context, parent, e);
+ } else if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_PORT)) {
+ return handlePortExtension(context, parent, e);
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * Callback for wsdl:portType
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handlePortTypeExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:definitions
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleDefinitionsExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:type
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleTypesExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:binding
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleBindingExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:portType/wsdl:operation
.
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleOperationExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:input
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:output
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:fault
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:service
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handleServiceExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+
+ /**
+ * Callback for wsdl:port
+ *
+ * @param context Parser context that will be passed on by the wsdl parser
+ * @param parent The Parent element within which the extensibility element is defined
+ * @param e The extensibility elemenet
+ * @return false if there was some error during the extension handling otherwise returns true. If returned false
+ * then the WSDL parser can abort if the wsdl extensibility element had required
attribute set to true
+ */
+ public boolean handlePortExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
+ return false;
+ }
+}
diff --git a/jaxws/src/share/classes/com/sun/xml/internal/ws/model/ExceptionType.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLOperation.java
similarity index 74%
rename from jaxws/src/share/classes/com/sun/xml/internal/ws/model/ExceptionType.java
rename to jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLOperation.java
index ff7d1eb9770..45d0a3a42a8 100644
--- a/jaxws/src/share/classes/com/sun/xml/internal/ws/model/ExceptionType.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLOperation.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,21 +22,21 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
-package com.sun.xml.internal.ws.model;
+
+package com.sun.tools.internal.ws.api.wsdl;
+
+import com.sun.codemodel.internal.JClass;
+
+import java.util.Map;
+
/**
- * Type of java exception
+ * Abstracts wsdl:portType/wsdl:operation
*
* @author Vivek Pandey
*/
-public enum ExceptionType {
- WSDLException(0), UserDefined(1);
-
- ExceptionType(int exceptionType){
- this.exceptionType = exceptionType;
- }
-
- public int value() {
- return exceptionType;
- }
- private final int exceptionType;
+public interface TWSDLOperation extends TWSDLExtensible{
+ /**
+ * Gives a Map of fault name attribute value to the {@link JClass}
+ */
+ Map getFaults();
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLParserContext.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLParserContext.java
new file mode 100644
index 00000000000..6f6e3e00c7f
--- /dev/null
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/api/wsdl/TWSDLParserContext.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package com.sun.tools.internal.ws.api.wsdl;
+
+import org.w3c.dom.Element;
+import org.xml.sax.Locator;
+
+/**
+ * Provides WSDL parsing context. It should be used by the WSDL extension handlers to register their namespaces so that
+ * it can be latter used by other extensions to resolve the namespaces.
+ *
+ * @author Vivek Pandey
+ */
+public interface TWSDLParserContext {
+
+ /**
+ * Pushes the parsing context
+ */
+ void push();
+
+ /**
+ * pops the parsing context
+ */
+ void pop();
+
+ /**
+ * Gives the namespace URI for a given prefix
+ *
+ * @param prefix non-null prefix
+ * @return null of the prefix is not found
+ */
+ String getNamespaceURI(String prefix);
+
+ /**
+ * Gives the prefixes in the current context
+ */
+ Iterable getPrefixes();
+
+ /**
+ * Gives default namespace
+ *
+ * @return null if there is no default namespace declaration found
+ */
+ String getDefaultNamespaceURI();
+
+ /**
+ * Registers naemespace declarations of a given {@link Element} found in the WSDL
+ *
+ * @param e {@link Element} whose namespace declarations need to be registered
+ */
+ void registerNamespaces(Element e);
+
+ /**
+ * gives the location information for the given Element.
+ */
+ Locator getLocation(Element e);
+
+}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/package-info.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/package-info.java
index 1889080b291..a3a514020ad 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/package-info.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/package-info.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -24,8 +24,8 @@
*/
/**
- * JAX-WS 2.0 Tools
- * This document describes the tools included with JAX-WS 2.0.
+ * JAX-WS 2.0.1 Tools
+ * This document describes the tools included with JAX-WS 2.0.1.
*
* {@DotDiagram
digraph G {
@@ -53,9 +53,8 @@
"WsImport ANT Task" -> wsimport -> CompileTool;
CompileTool -> APT -> WSAP -> WebServiceAP;
- CompileTool -> Processor;
- CompileTool -> Modeler;
- CompileTool -> ProcessorActions;
+ CompileTool -> Processor -> Modeler;
+ Processor -> ProcessorActions;
CompileTool -> WebServiceAP;
Modeler -> WSDLModeler;
@@ -70,11 +69,11 @@
* {@link com.sun.tools.internal.ws.ant.Apt Apt}
* An ANT task to invoke APT.
- * {@link com.sun.tools.internal.ws.ant.WsGen WsGen}
+ * {@link com.sun.tools.internal.ws.ant.WsGen2 WsGen}
*
* An ANT task to invoke {@link com.sun.tools.internal.ws.WsGen WsGen}
- * {@link com.sun.tools.internal.ws.ant.WsImport WsImport}
+ * {@link com.sun.tools.internal.ws.ant.WsImport2 WsImport}
*
* An ANT task to invoke {@link com.sun.tools.internal.ws.WsImport WsImport}
*
@@ -91,29 +90,17 @@
* Tool to process a compiled javax.jws.WebService annotated class and to generate the necessary classes to make
* it a Web service.
- * {@link com.sun.tools.internal.ws.ant.WsImport WsImport}
+ * {@link com.sun.tools.internal.ws.ant.WsImport2 WsImport}
*
* Tool to import a WSDL and to generate an SEI (a javax.jws.WebService) interface that can be either implemented
* on the server to build a web service, or can be used on the client to invoke the web service.
*
* Implementation Classes
*
- {@link com.sun.tools.internal.ws.wscompile.CompileTool CompileTool}
- * This is the main implementation class for both WsGen and WsImport.
- *
- *
- * {@link com.sun.tools.internal.ws.processor.Processor Processor}
- * This abstract class is used to process a particular {@link com.sun.tools.internal.ws.processor.config.Configuration
- * Configuration} to build a {@link com.sun.tools.internal.ws.processor.model Model} and to run
- * {@link com.sun.tools.internal.ws.processor.ProcessorAction ProcessorActions} on that model.
-
* {@link com.sun.tools.internal.ws.processor.model.Model Model}
* The model is used to represent the entire Web Service. The JAX-WS ProcessorActions can process
* this Model to generate Java artifacts such as the service interface.
*
- {@link com.sun.tools.internal.ws.processor.ProcessorAction ProcessorActions}
- * A ProcessorAction is used to perform some operation on a Model object such as
- * generating a Java source file.
*
* {@link com.sun.tools.internal.ws.processor.modeler.Modeler Modeler}
* A Modeler is used to create a Model of a Web Service from a particular Web
@@ -128,7 +115,7 @@
* javax.xml.ws.* annotations. This class is used either by the WsGen (CompileTool) tool or
* idirectly via the {@link com.sun.istack.internal.ws.WSAP WSAP} when invoked by APT.
*
- * {@link com.sun.istack.internal.ws.WSAP WSAP}
+ * {@link com.sun.istack.internal.ws.AnnotationProcessorFactoryImpl WSAP}
* This is the entry point for the WebServiceAP when APT is invoked on a SEI
* annotated with the javax.jws.WebService annotation.
*
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/Processor.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/Processor.java
deleted file mode 100644
index 8b899c5f6eb..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/Processor.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.ws.processor;
-
-import com.sun.tools.internal.ws.processor.config.Configuration;
-import com.sun.tools.internal.ws.processor.config.ModelInfo;
-import com.sun.tools.internal.ws.processor.model.Model;
-import com.sun.tools.internal.ws.processor.util.ProcessorEnvironment;
-import com.sun.xml.internal.ws.util.exception.JAXWSExceptionBase;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Properties;
-
-/**
- * This abstract class contains methods for getting a Modeler and creating a model
- * from that Modeler given a particular configuration. ProcessorActions can also
- * be registered and run with instances of this class.
- *
- * @author WS Development Team
- *
- */
-public class Processor {
-
- public Processor(Configuration configuration, Properties options, Model model) {
- this(configuration,options);
- _model = model;
- }
-
- public Processor(Configuration configuration, Properties options) {
- _configuration = configuration;
- _options = options;
-
- // find the value of the "print stack traces" property
- _printStackTrace = Boolean.valueOf(_options.getProperty(ProcessorOptions.PRINT_STACK_TRACE_PROPERTY));
- _env = _configuration.getEnvironment();
- }
-
- public void add(ProcessorAction action) {
- _actions.add(action);
- }
-
- public Model getModel() {
- return _model;
- }
-
- public void run() {
- runModeler();
- if (_model != null) {
- runActions();
- }
- }
-
- public void runModeler() {
- try {
- ModelInfo modelInfo = _configuration.getModelInfo();
- if (modelInfo == null) {
- throw new ProcessorException("processor.missing.model");
- }
-
- _model = modelInfo.buildModel(_options);
-
- } catch (JAXWSExceptionBase e) {
- if (_printStackTrace) {
- _env.printStackTrace(e);
- }
- _env.error(e);
- }
- }
-
- public void runActions() {
- try {
- if (_model == null) {
- // avoid reporting yet another error here
- return;
- }
-
- for (ProcessorAction action : _actions) {
- action.perform(_model, _configuration, _options);
- }
- } catch (JAXWSExceptionBase e) {
- if (_printStackTrace || _env.verbose()) {
- _env.printStackTrace(e);
- }
- _env.error(e);
- }
- }
-
- private final Properties _options;
- private final Configuration _configuration;
- private final List _actions = new ArrayList();
- private Model _model;
- private final boolean _printStackTrace;
- private final ProcessorEnvironment _env;
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorActionVersion.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorActionVersion.java
deleted file mode 100644
index 54eb4cb6a65..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorActionVersion.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-package com.sun.tools.internal.ws.processor;
-
-/**
- * @author WS Development Team
- *
- * Typesafe enum class to hold the ProcessorActionVersion
- */
-public enum ProcessorActionVersion {
- PRE_20("1.1.2"), VERSION_20("2.0");
-
- ProcessorActionVersion(String version) {
- this.version = version;
- }
-
- public String value() {
- return version;
- }
-
- private final String version;
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorConstants.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorConstants.java
deleted file mode 100644
index b3345117a7d..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorConstants.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.ws.processor;
-
-/**
- * Constants used by Model, Modelers, Config ProcessorActions
- *
- * @author WS Development Team
- */
-public class ProcessorConstants {
- public final static String SOAP_VERSION_1_1 = "SOAP 1.1";
- public final static String SOAP_VERSION_1_2 = "SOAP 1.2";
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java
index 6f13aff45d9..fd998f244de 100644
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java
+++ b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java
@@ -1,5 +1,5 @@
/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
package com.sun.tools.internal.ws.processor;
import com.sun.xml.internal.ws.util.exception.JAXWSExceptionBase;
-import com.sun.xml.internal.ws.util.localization.Localizable;
/**
* ProcessorException represents an exception that occurred while processing
@@ -42,11 +41,15 @@ public class ProcessorException extends JAXWSExceptionBase {
super(key, args);
}
+ public ProcessorException(String msg){
+ super(msg);
+ }
+
public ProcessorException(Throwable throwable) {
super(throwable);
}
- public String getResourceBundleName() {
+ public String getDefaultResourceBundleName() {
return "com.sun.tools.internal.ws.resources.processor";
}
}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorOptions.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorOptions.java
deleted file mode 100644
index de198cd375a..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/ProcessorOptions.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.ws.processor;
-
-/**
- * Property names used by ProcessorActions
- *
- * @author WS Development Team
- */
-public class ProcessorOptions {
-
- public final static String SOURCE_DIRECTORY_PROPERTY = "sourceDirectory";
- public final static String DESTINATION_DIRECTORY_PROPERTY =
- "destinationDirectory";
- public final static String NONCLASS_DESTINATION_DIRECTORY_PROPERTY =
- "nonclassDestinationDirectory";
- public final static String VALIDATE_WSDL_PROPERTY = "validationWSDL";
- public final static String EXPLICIT_SERVICE_CONTEXT_PROPERTY =
- "explicitServiceContext";
- public final static String PRINT_STACK_TRACE_PROPERTY = "printStackTrace";
- public final static String DONOT_OVERWRITE_CLASSES = "doNotOverWrite";
- public final static String NO_DATA_BINDING_PROPERTY = "noDataBinding";
- public final static String USE_WSI_BASIC_PROFILE = "useWSIBasicProfile";
- public final static String STRICT_COMPLIANCE = "strictCompliance";
- public final static String JAXWS_SOURCE_VERSION = "sourceVersion";
- public final static String UNWRAP_DOC_LITERAL_WRAPPERS =
- "unwrapDocLitWrappers";
- public final static String BINDING_FILES = "bindingFiles";
- public final static String EXTENSION = "extension";
- public final static String PROTOCOL = "protocol";
- public final static String TRANSPORT = "transport";
- public final static String WSDL_LOCATION = "wsdllocation";
- public final static String DEFAULT_PACKAGE = "defaultpackage";
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ClassModelInfo.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ClassModelInfo.java
deleted file mode 100644
index eda6fa2cb43..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ClassModelInfo.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.ws.processor.config;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Properties;
-
-import com.sun.tools.internal.ws.processor.modeler.Modeler;
-import com.sun.tools.internal.ws.processor.ProcessorOptions;
-import com.sun.xml.internal.ws.util.VersionUtil;
-
-/**
- *
- * @author WS Development Team
- */
-public class ClassModelInfo extends ModelInfo {
-
- public ClassModelInfo(String className) {
- this.className = className;
- }
-
-
- public Modeler getModeler(Properties properties) {
- return null;
- }
-
- public void setClassName(String className) {
- this.className = className;
- }
-
- public String getClassName() {
- return className;
- }
-
- private String className;
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ModelInfo.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ModelInfo.java
deleted file mode 100644
index ca07bc57a7b..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/ModelInfo.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.ws.processor.config;
-
-import java.util.Properties;
-
-import com.sun.tools.internal.ws.processor.model.Model;
-import com.sun.tools.internal.ws.processor.modeler.Modeler;
-import com.sun.xml.internal.ws.util.xml.XmlUtil;
-import org.xml.sax.EntityResolver;
-
-/**
- * This class contiains information used by {@link com.sun.tools.internal.ws.processor.modeler.Modeler
- * Modelers} to build {@link com.sun.tools.internal.ws.processor.model.Model Models}.
- *
- * @author WS Development Team
- */
-public abstract class ModelInfo {
-
- protected ModelInfo() {}
-
- public Configuration getParent() {
- return _parent;
- }
-
- public void setParent(Configuration c) {
- _parent = c;
- }
-
- public String getName() {
- return _name;
- }
-
- public void setName(String s) {
- _name = s;
- }
-
- public Configuration getConfiguration() {
- return _parent;
- }
-
- public HandlerChainInfo getClientHandlerChainInfo() {
- return _clientHandlerChainInfo;
- }
-
- public void setClientHandlerChainInfo(HandlerChainInfo i) {
- _clientHandlerChainInfo = i;
- }
-
- public HandlerChainInfo getServerHandlerChainInfo() {
- return _serverHandlerChainInfo;
- }
-
- public void setServerHandlerChainInfo(HandlerChainInfo i) {
- _serverHandlerChainInfo = i;
- }
-
- public String getJavaPackageName() {
- return _javaPackageName;
- }
-
- public void setJavaPackageName(String s) {
- _javaPackageName = s;
- }
-
- public Model buildModel(Properties options){
- return getModeler(options).buildModel();
- }
-
- public EntityResolver getEntityResolver() {
- return entityResolver;
- }
-
- public void setEntityResolver(EntityResolver entityResolver) {
- this.entityResolver = entityResolver;
- }
-
- public String getDefaultJavaPackage() {
- return _defaultJavaPackage;
- }
-
- public void setDefaultJavaPackage(String _defaultJavaPackage) {
- this._defaultJavaPackage = _defaultJavaPackage;
- }
-
- protected abstract Modeler getModeler(Properties options);
-
- private Configuration _parent;
- private String _name;
- private String _javaPackageName;
- private String _defaultJavaPackage;
- private HandlerChainInfo _clientHandlerChainInfo;
- private HandlerChainInfo _serverHandlerChainInfo;
- private EntityResolver entityResolver;
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/WSDLModelInfo.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/WSDLModelInfo.java
deleted file mode 100644
index 12eab008ac9..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/WSDLModelInfo.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-
-package com.sun.tools.internal.ws.processor.config;
-
-
-import java.util.*;
-
-import org.w3c.dom.Element;
-import org.w3c.dom.Document;
-import org.xml.sax.InputSource;
-
-import com.sun.tools.internal.ws.processor.modeler.Modeler;
-import com.sun.tools.internal.ws.util.JAXWSClassFactory;
-
-/**
- *
- * @author WS Development Team
- */
-public class WSDLModelInfo extends ModelInfo {
-
- public WSDLModelInfo() {}
-
- protected Modeler getModeler(Properties options) {
- return JAXWSClassFactory.newInstance().createWSDLModeler(this, options);
- }
-
- public String getLocation() {
- return _location;
- }
-
- public void setLocation(String s) {
- _location = s;
- }
-
- public Map getJAXWSBindings(){
- return _jaxwsBindings;
- }
-
- public void putJAXWSBindings(String systemId, Document binding){
- _jaxwsBindings.put(systemId, binding);
- }
-
- public Set getJAXBBindings(){
- return _jaxbBindings;
- }
-
- public void addJAXBBIndings(InputSource jaxbBinding){
- _jaxbBindings.add(jaxbBinding);
- }
-
- public void setHandlerConfig(Element handlerConfig){
- this.handlerConfig = handlerConfig;
- }
-
- public Element getHandlerConfig(){
- return handlerConfig;
- }
-
- private Element handlerConfig;
-
- private String _location;
-
- //external jaxws:bindings elements
- private Map _jaxwsBindings = new HashMap();
-
- //we need an array of jaxb:binding elements, they are children of jaxws:bindings
- //and could come from an external customization file or wsdl.
- private Set _jaxbBindings = new HashSet();
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/CustomizationParser.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/CustomizationParser.java
deleted file mode 100644
index 72670bf2245..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/CustomizationParser.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-package com.sun.tools.internal.ws.processor.config.parser;
-
-import java.net.URL;
-import java.util.*;
-
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Document;
-import org.xml.sax.InputSource;
-import org.xml.sax.EntityResolver;
-
-import com.sun.tools.internal.ws.processor.ProcessorOptions;
-import com.sun.tools.internal.ws.processor.config.Configuration;
-import com.sun.tools.internal.ws.processor.config.WSDLModelInfo;
-import com.sun.tools.internal.ws.processor.util.ProcessorEnvironment;
-import com.sun.xml.internal.ws.streaming.XMLStreamReaderFactory;
-import com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil;
-import com.sun.xml.internal.ws.util.JAXWSUtils;
-import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBindingsConstants;
-
-import javax.xml.stream.XMLStreamReader;
-
-/**
- * @author Vivek Pandey
- *
- */
-public class CustomizationParser extends InputParser {
-
- /**
- * @param entityResolver
- * @param env
- * @param options
- */
- public CustomizationParser(EntityResolver entityResolver, ProcessorEnvironment env, Properties options) {
- super(env, options);
- this.entityResolver = entityResolver;
- }
-
-
- /* (non-Javadoc)
- * @see com.sun.xml.internal.ws.processor.config.parser.InputParser#parse(java.io.File[], java.lang.String)
- */
- protected Configuration parse(List inputFiles) throws Exception{
- //File wsdlFile = inputFiles[0];
- Configuration configuration = new Configuration(getEnv());
- wsdlModelInfo = new WSDLModelInfo();
- wsdlModelInfo.setLocation(inputFiles.get(0));
- if(_options.get(ProcessorOptions.WSDL_LOCATION) == null)
- _options.setProperty(ProcessorOptions.WSDL_LOCATION, inputFiles.get(0));
-
- //modelInfoParser = (JAXWSBindingInfoParser)getModelInfoParsers().get(JAXWSBindingsConstants.JAXWS_BINDINGS);
- modelInfoParser = new JAXWSBindingInfoParser(getEnv());
-
- //get the jaxws bindingd file and add it to the modelInfo
- Set bindingFiles = (Set)_options.get(ProcessorOptions.BINDING_FILES);
- for(String bindingFile : bindingFiles){
- addBinding(bindingFile);
- }
-
-
- for(InputSource jaxwsBinding : jaxwsBindings){
- Document doc = modelInfoParser.parse(jaxwsBinding);
- if(doc != null){
- wsdlModelInfo.putJAXWSBindings(jaxwsBinding.getSystemId(), doc);
- }
- }
-
- //copy jaxb binding sources in modelInfo
- for(InputSource jaxbBinding : jaxbBindings){
- wsdlModelInfo.addJAXBBIndings(jaxbBinding);
- }
-
- addHandlerChainInfo();
- configuration.setModelInfo(wsdlModelInfo);
- return configuration;
- }
-
- private void addBinding(String bindingLocation) throws Exception{
- JAXWSUtils.checkAbsoluteness(bindingLocation);
- InputSource is = null;
- if(entityResolver != null){
- is = entityResolver.resolveEntity(null, bindingLocation);
- }
- if(is == null)
- is = new InputSource(bindingLocation);
-
- XMLStreamReader reader =
- XMLStreamReaderFactory.createFreshXMLStreamReader(is, true);
- XMLStreamReaderUtil.nextElementContent(reader);
- if(reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)){
- jaxwsBindings.add(is);
- }else if(reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS)){
- jaxbBindings.add(is);
- }else{
- warn("configuration.notBindingFile");
- }
- }
-
- private void addHandlerChainInfo() throws Exception{
- //setup handler chain info
- for(Map.Entry entry:wsdlModelInfo.getJAXWSBindings().entrySet()){
- Element e = entry.getValue().getDocumentElement();
- NodeList nl = e.getElementsByTagNameNS(
- "http://java.sun.com/xml/ns/javaee", "handler-chains");
- if(nl.getLength()== 0)
- continue;
- //take the first one, anyway its 1 handler-config per customization
- Element hc = (Element)nl.item(0);
- wsdlModelInfo.setHandlerConfig(hc);
- return;
- }
- }
-
- private WSDLModelInfo wsdlModelInfo;
- private JAXWSBindingInfoParser modelInfoParser;
- private Set jaxwsBindings = new HashSet();
- private Set jaxbBindings = new HashSet();
- private EntityResolver entityResolver;
-
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/InputParser.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/InputParser.java
deleted file mode 100644
index a2e2b08d154..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/InputParser.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-package com.sun.tools.internal.ws.processor.config.parser;
-
-import java.io.InputStream;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.namespace.QName;
-
-import org.xml.sax.InputSource;
-
-import com.sun.tools.internal.ws.processor.util.ProcessorEnvironment;
-import com.sun.tools.internal.ws.processor.config.Configuration;
-import com.sun.xml.internal.ws.util.localization.LocalizableMessageFactory;
-
-/**
- * @author Vivek Pandey
- *
- *
- */
-public abstract class InputParser{
- protected LocalizableMessageFactory _messageFactory =
- new LocalizableMessageFactory(
- "com.sun.tools.internal.ws.resources.configuration");
-
- public InputParser(ProcessorEnvironment env, Properties options) {
- this._env = env;
- this._options = options;
- _modelInfoParsers = new HashMap();
-
-// /*
-// * Load modelinfo parsers from the plugins which want to extend
-// * this functionality
-// */
-// Iterator i = ToolPluginFactory.getInstance().getExtensions(
-// ToolPluginConstants.WSCOMPILE_PLUGIN,
-// ToolPluginConstants.WSCOMPILE_MODEL_INFO_EXT_POINT);
-// while(i != null && i.hasNext()) {
-// ModelInfoPlugin plugin = (ModelInfoPlugin)i.next();
-// _modelInfoParsers.put(plugin.getModelInfoName(),
-// plugin.createModelInfoParser(env));
-// }
- }
-
- protected Configuration parse(InputStream is) throws Exception{
- //TODO: Not implemented exception
- return null;
- }
-
- protected Configuration parse(InputSource is) throws Exception{
- //TODO: Not implemented exception
- return null;
- }
-
- protected Configuration parse(List inputSources) throws Exception{
- //TODO: Not implemented exception
- return null;
- }
-
- /**
- * @return Returns the _env.
- */
- public ProcessorEnvironment getEnv(){
- return _env;
- }
-
- /**
- * @param env The ProcessorEnvironment to set.
- */
- public void setEnv(ProcessorEnvironment env){
- this._env = env;
- }
-
- protected void warn(String key) {
- _env.warn(_messageFactory.getMessage(key));
- }
-
- protected void warn(String key, String arg) {
- _env.warn(_messageFactory.getMessage(key, arg));
- }
-
- protected void warn(String key, Object[] args) {
- _env.warn(_messageFactory.getMessage(key, args));
- }
-
- protected void info(String key) {
- _env.info(_messageFactory.getMessage(key));
- }
-
- protected void info(String key, String arg) {
- _env.info(_messageFactory.getMessage(key, arg));
- }
-
- protected ProcessorEnvironment _env;
- protected Properties _options;
- protected Map _modelInfoParsers;
-}
diff --git a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/JAXWSBindingInfoParser.java b/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/JAXWSBindingInfoParser.java
deleted file mode 100644
index e4e560f8273..00000000000
--- a/jaxws/src/share/classes/com/sun/tools/internal/ws/processor/config/parser/JAXWSBindingInfoParser.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Sun designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Sun in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- */
-package com.sun.tools.internal.ws.processor.config.parser;
-
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.FactoryConfigurationError;
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.xml.sax.ErrorHandler;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
-
-import com.sun.tools.internal.ws.processor.util.ProcessorEnvironment;
-import com.sun.tools.internal.ws.util.xml.NullEntityResolver;
-import com.sun.tools.internal.ws.wsdl.framework.ParseException;
-
-/**
- * @author Vivek Pandey
- *
- * External jaxws:bindings parser
- */
-public class JAXWSBindingInfoParser {
-
- private ProcessorEnvironment env;
-
- /**
- * @param env
- */
- public JAXWSBindingInfoParser(ProcessorEnvironment env) {
- this.env = env;
- }
-
- public Document parse(InputSource source) {
- try {
- DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
- builderFactory.setNamespaceAware(true);
- builderFactory.setValidating(false);
- DocumentBuilder builder = builderFactory.newDocumentBuilder();
- builder.setErrorHandler(new ErrorHandler() {
- public void error(SAXParseException e)
- throws SAXParseException {
- throw e;
- }
-
- public void fatalError(SAXParseException e)
- throws SAXParseException {
- throw e;
- }
-
- public void warning(SAXParseException err)
- throws SAXParseException {
- // do nothing
- }
- });
-
- builder.setEntityResolver(new NullEntityResolver());
- return builder.parse(source);
- } catch (ParserConfigurationException e) {
- throw new ParseException("parsing.parserConfigException",e);
- } catch (FactoryConfigurationError e) {
- throw new ParseException("parsing.factoryConfigException",e);
- }catch(SAXException e){
- throw new ParseException("parsing.saxException",e);
- }catch(IOException e){
- throw new ParseException("parsing.saxException",e);
- }
- }
-
- public final Set outerBindings = new HashSet