Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Jaguar build 35038 and union IDL type error

2 posts in General Discussion (old) Last posting was on 2000-03-31 12:01:35.0Z
James Stansell Posted on 2000-03-31 00:32:59.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 30 Mar 2000 18:32:59 -0600
From: James Stansell <stansell@wcg.net>
Organization: Williams Network <URL: http://www.williams.com/>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Jaguar build 35038 and union IDL type error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 82
NNTP-Posting-Host: securit-v1.twc.com 151.142.252.11
Message-ID: <347_38E3F23B.5C04E609@wcg.net>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25161
Article PK: 154260

I believe I'm seeing an error that was introduced in Jaguar build
35038. I say that because I didn't have this problem in build 35036, or
with build 20054.

The problem is with the java stub files generated by Jaguar for union
IDL types.

This is third party IDL with many definitions. With build 35038 the
java files generated for the union types stopped being able to compile.
I'm including some snippets below.

By changing the offending "<stubname>.NULL" to just "null" I am able to
compile the stubs. Obviously I don't want to be changing generated
files. Also, I don't know if the modified stub even runs - I'm still
working on configuring my runtime environment.

Thanks in advance,

-james.

P.S. Someone else that's used this IDL says that some of the names in
it are now reserved keywords in CORBA 2.3. Does build 35038 switch from
2.2 to 2.3, and could that be a factor here? I hadn't noticed anything
like that in the notes included with the SWR.


module NetExpert_v1
{
enum TargetType
{
Object,
Objects,
Relationship
};
};


module NetExpert_v1
{
union Target switch (::NetExpert_v1::TargetType)
{
case Object: ::NetExpert_v1::ObjectId objectId;
case Objects: ::NetExpert_v1::ObjectIds objectIds;
case Relationship: ::NetExpert_v1::ObjectGroup objectGroup;
};
};




------ Target.java ------
package NetExpert_v1;

/**
** Generated by Jaguar CTS 3.5 - Thu Mar 30 17:49:56 CST 2000
**
** from NetExpert_v1::Target (file
D:\sybase\Jaguar35\Repository\IDL\NetExpert_v1\Target.idl, line 15).
**
** Please do not modify this file.
**/

public final class Target implements org.omg.CORBA.portable.IDLEntity
{
private NetExpert_v1.TargetType _switch;

private java.lang.Object _object;

public Target()
{
_switch = NetExpert_v1.TargetType.NULL;
}
...
/* A TargetType.NULL reference is generated here, but does not exist in
the generated TargetType.java file. /*


------ TargetType.java ------
package NetExpert_v1;

/**
** Generated by Jaguar CTS 3.5 - Thu Mar 30 17:49:55 CST 2000
**
** from NetExpert_v1::TargetType (file
D:\sybase\Jaguar35\Repository\IDL\NetExpert_v1\TargetType.idl, line 6).
**
** Please do not modify this file.
**/

public final class TargetType implements
org.omg.CORBA.portable.IDLEntity
{
private int _enum;

private TargetType
(int _value)
{
_enum = _value;
}

public int value()
{
return _enum;
}

public static final int _Object = 0;

public static final TargetType Object = new TargetType(0);

public static final int _Objects = 1;

public static final TargetType Objects = new TargetType(1);

public static final int _Relationship = 2;

public static final TargetType Relationship = new TargetType(2);

public static TargetType from_int
(int _value)
{
switch (_value)
{
case 0: return Object;
case 1: return Objects;
case 2: return Relationship;
default: throw new org.omg.CORBA.BAD_PARAM();
}
}
}


Dave Wolf [Sybase] Posted on 2000-03-31 12:01:35.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Jaguar build 35038 and union IDL type error
Date: Fri, 31 Mar 2000 07:01:35 -0500
Lines: 139
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: nomad6-3.sybase.com 157.133.176.3
Message-ID: <347_EKRuFmwm$GA.52@forums.sybase.com>
References: <347_38E3F23B.5C04E609@wcg.net>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25130
Article PK: 154228

Please open a case with support. Ask for me to be cc'd on the case.

Dave Wolf
Internet Applications Division

"James Stansell" <stansell@wcg.net> wrote in message
news:38E3F23B.5C04E609@wcg.net...
> I believe I'm seeing an error that was introduced in Jaguar build
> 35038. I say that because I didn't have this problem in build 35036, or
> with build 20054.
>
> The problem is with the java stub files generated by Jaguar for union
> IDL types.
>
> This is third party IDL with many definitions. With build 35038 the
> java files generated for the union types stopped being able to compile.
> I'm including some snippets below.
>
> By changing the offending "<stubname>.NULL" to just "null" I am able to
> compile the stubs. Obviously I don't want to be changing generated
> files. Also, I don't know if the modified stub even runs - I'm still
> working on configuring my runtime environment.
>
> Thanks in advance,
>
> -james.
>
> P.S. Someone else that's used this IDL says that some of the names in
> it are now reserved keywords in CORBA 2.3. Does build 35038 switch from
> 2.2 to 2.3, and could that be a factor here? I hadn't noticed anything
> like that in the notes included with the SWR.
>
>
> module NetExpert_v1
> {
> enum TargetType
> {
> Object,
> Objects,
> Relationship
> };
> };
>
>
> module NetExpert_v1
> {
> union Target switch (::NetExpert_v1::TargetType)
> {
> case Object: ::NetExpert_v1::ObjectId objectId;
> case Objects: ::NetExpert_v1::ObjectIds objectIds;
> case Relationship: ::NetExpert_v1::ObjectGroup objectGroup;
> };
> };
>
>
>
>
> ------ Target.java ------
> package NetExpert_v1;
>
> /**
> ** Generated by Jaguar CTS 3.5 - Thu Mar 30 17:49:56 CST 2000
> **
> ** from NetExpert_v1::Target (file
> D:\sybase\Jaguar35\Repository\IDL\NetExpert_v1\Target.idl, line 15).
> **
> ** Please do not modify this file.
> **/
>
> public final class Target implements org.omg.CORBA.portable.IDLEntity
> {
> private NetExpert_v1.TargetType _switch;
>
> private java.lang.Object _object;
>
> public Target()
> {
> _switch = NetExpert_v1.TargetType.NULL;
> }
> ...
> /* A TargetType.NULL reference is generated here, but does not exist in
> the generated TargetType.java file. /*
>
>
> ------ TargetType.java ------
> package NetExpert_v1;
>
> /**
> ** Generated by Jaguar CTS 3.5 - Thu Mar 30 17:49:55 CST 2000
> **
> ** from NetExpert_v1::TargetType (file
> D:\sybase\Jaguar35\Repository\IDL\NetExpert_v1\TargetType.idl, line 6).
> **
> ** Please do not modify this file.
> **/
>
> public final class TargetType implements
> org.omg.CORBA.portable.IDLEntity
> {
> private int _enum;
>
> private TargetType
> (int _value)
> {
> _enum = _value;
> }
>
> public int value()
> {
> return _enum;
> }
>
> public static final int _Object = 0;
>
> public static final TargetType Object = new TargetType(0);
>
> public static final int _Objects = 1;
>
> public static final TargetType Objects = new TargetType(1);
>
> public static final int _Relationship = 2;
>
> public static final TargetType Relationship = new TargetType(2);
>
> public static TargetType from_int
> (int _value)
> {
> switch (_value)
> {
> case 0: return Object;
> case 1: return Objects;
> case 2: return Relationship;
> default: throw new org.omg.CORBA.BAD_PARAM();
> }
> }
> }
>