Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / September 2003

Tip: Looking for answers? Try searching our database.

weird jdo ri enhancer error

Thread view: 
Gerbrand van Dieijen - 16 Sep 2003 23:46 GMT
Hello,

I have developed a JDO application using FastObjects (Commun. Edition) and
I'm now trying to use it with TJDO.

However I'm having problems getting it to compile:
I get the error :
[apply] com.sun.jdori.enhancer.util.InternalError: assertion
    failed: field modifier 'UNSPECIFIED':
             nl/package/myclass.field

Both the class and the field exist, and other classes in the package do
compile.

Does anyone know what this errror means and what I can do about it?

Signature

Gerbrand van Dieijen

WWW: http://twisted.warande.net
ICQ: 19345450

Michael Amling - 17 Sep 2003 15:19 GMT
> Hello,
>
[quoted text clipped - 11 lines]
>
> Does anyone know what this errror means and what I can do about it?

  I had a similar experience with Jikes. There was a certain error in
the source code, but the compiler had a bug that caused it to terminate
abnormally with an assertion failure when it compiled that source,
rather than just issuing a message about the error and continuing. By
editing down the program that I was compiling to smaller and smaller
pieces, I eventually found the statement it was choking on, which was
indeed not valid Java.
  It may be that there is some error in the source you're compiling, an
error that your compiler isn't handling properly. Perhaps it is a
problem with a modifier in a field declaration. Try dividing your source
in half and seeing if you get the InternalError when compiling one of
the halves.

--Mike Amling
Gerbrand van Dieijen - 17 Sep 2003 16:36 GMT
>> I have developed a JDO application using FastObjects (Commun. Edition) and
>> I'm now trying to use it with TJDO.
[quoted text clipped - 4 lines]
>>      failed: field modifier 'UNSPECIFIED':
>>               nl/package/myclass.field

>   It may be that there is some error in the source you're compiling, an
>error that your compiler isn't handling properly. Perhaps it is a
>problem with a modifier in a field declaration. Try dividing your source
>in half and seeing if you get the InternalError when compiling one of
>the halves.

It does compile correctly, only the enhancer fails. If I use another
enhancer, it works fine.
Did you have the error with a JDO Enhancer or when you compiled it?
It could be the enhancer was compiled using jikes.

Signature

Gerbrand van Dieijen

WWW: http://twisted.warande.net
ICQ: 19345450



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.