-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Why "reflection optimizer disabled"?
PostPosted: Thu Apr 01, 2004 10:15 am 
Newbie

Joined: Wed Mar 24, 2004 6:17 am
Posts: 2
Hello.

I get a number of these messages:
Code:
17:04:05,046  INFO [       ReflectHelper] reflection optimizer disabled for: com.User, IllegalArgumentException: Cannot find matching method/constructor

Code:
17:04:05,203  INFO [       ReflectHelper] reflection optimizer disabled for: com.RoleImpl, BulkBeanException: tried to access method com.Role.setResponsibleParticipant(Lcom/Participant;)V from class com.RoleImpl$$BulkBeanByCGLIB$$fb9fadbb (property setResponsibleParticipant)


I have the feeling that this is due to the fact that:
    a. The default no-arg constructor is protected.
    b. The property setter is protected.


Am I correct?
I did not make the constructor and setters private, but I don't want them public. However "public"-shing the constructor solves the "Cannot find matching ..." message.

Is there a way to actualy use protected setters and constructors. I did not think this is fatal for CGLIB... Protected members are accessible from the child classes...

If you wander why I would have a protected setter/constructor, that is because I want a read-only property that is only set upon creation...

These problems DO NOT break Hibernate.
I can still correctly load/save objects.

Lachezar.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.