From: Meskauskas Audrius <audriusa@bluewin.ch>
To: mauve-discuss@sources.redhat.com
Subject: Possible Mauve bug.
Date: Sat, 03 Sep 2005 11:12:00 -0000 [thread overview]
Message-ID: <431984FE.50308@bluewin.ch> (raw)
[-- Attachment #1: Type: text/plain, Size: 987 bytes --]
The attached test case specifically fails when running as part of the
Mauve under Sun's jre 1.4.2 but succeeds if executed as standalone
program under the mentioned Sun's jre. GNU Classpath implementation
passes this test regardless if it is executed standalone or as part of
the Mauve.
The test case is derived from the prepared Mauve tests for the
org.omg.PortableInterceptor. I am not sure if I can commit the test set
that totally fails under Sun's jre due, I think, Mauve related reason.
This set runs perfectly under JUnit.
As I cannot look into the Sun's sources, it is very difficult for me to
find the exact reason, why the test fails. All I can do is guess looking
at my own code that is working. The CORBA implementation must call
Class.forName(String) somewhere; probably that call fails?
Probably the problem could be easier solved by somebody who knows Mauve
on much better level "I wrote it" (I did not participate in Mauve
development).
Regards
Audrius
[-- Attachment #2: mt.java --]
[-- Type: text/x-java, Size: 1427 bytes --]
// Tags: JDK1.4
package gnu.testlet.org.omg.PortableInterceptor.Interceptor;
import gnu.testlet.TestHarness;
import gnu.testlet.Testlet;
import org.omg.CORBA.LocalObject;
import org.omg.CORBA.ORB;
import org.omg.PortableInterceptor.ORBInitInfo;
import org.omg.PortableInterceptor.ORBInitializer;
import java.util.Properties;
public class mt extends LocalObject implements Testlet, ORBInitializer
{
static boolean was_pre_init;
static boolean was_post_init;
public void test(TestHarness harness)
{
try
{
Properties initialisers = new Properties();
initialisers.setProperty(
"org.omg.PortableInterceptor.ORBInitializerClass." +
getClass().getName(),
""
);
// Create and initialize the ORB
ORB orb = org.omg.CORBA.ORB.init(new String[ 0 ], initialisers);
}
catch (Exception e)
{
e.printStackTrace();
}
if (!was_pre_init || !was_post_init)
System.out.println("mt:TEST FAILED");
else
System.out.println("mt:Test passed");
}
public void pre_init(ORBInitInfo parm1)
{
System.out.println("mt:Pre init called");
was_pre_init = true;
}
public void post_init(ORBInitInfo parm1)
{
System.out.println("mt:Post init called");
was_post_init = true;
}
public static void main(String[] args)
{
// Run as standalone application.
new mt().test(null);
}
}
next reply other threads:[~2005-09-03 11:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-03 11:12 Meskauskas Audrius [this message]
2005-09-03 12:08 Jeroen Frijters
2005-09-03 14:52 ` Meskauskas Audrius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=431984FE.50308@bluewin.ch \
--to=audriusa@bluewin.ch \
--cc=mauve-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).