Mantis - Resin
Viewing Issue Advanced Details
301 minor always 07-10-05 00:00 02-05-06 11:03
francoisb  
ferg  
normal  
closed 3.0.14  
3.0.14 fixed  
none    
none 3.0.18  
0000301: Persistence 3.0: inheritance with cmr
RSN-340
Hi:

When using inheritance together with cmr (container managed relationship), the child's class generated code doesn't compile.

com.caucho.loader.enhancer.EnhancerRuntimeException: java.lang.ClassNotFoundException:
/home/francois/webapps/resin/rsn_inhe_cmr/WEB-INF/work/pre-enhance/example/Prefect__ResinExt.java:38:
__caucho__house has private access in example.Student__ResinExt
    ((example.Student__ResinExt) o).__caucho__house = __caucho__house;
    ^
/home/francois/webapps/resin/rsn_inhe_cmr/WEB-INF/work/pre-enhance/example/Prefect__ResinExt.java:38:
__caucho__house has private access in example.Student__ResinExt
    ((example.Student__ResinExt) o).__caucho__house = __caucho__house;
                                                      ^
/home/francois/webapps/resin/rsn_inhe_cmr/WEB-INF/work/pre-enhance/example/Prefect__ResinExt.java:76:
__caucho__house has private access in example.Student__ResinExt
    if (__caucho__house != null) {
        ^
/home/francois/webapps/resin/rsn_inhe_cmr/WEB-INF/work/pre-enhance/example/Prefect__ResinExt.java:77:
__caucho__house has private access in example.Student__ResinExt
      pstmt.setLong(index++, ((Number) __caucho__house).longValue());
                                       ^

....

The attached file is based on the resin's tutorials (Student, Prefect and House).

Francois

resin 3.0.14, Sun jdk 1.5.0_02, linux 2.4.21

Notes
(0000865)
ferg   
02-05-06 11:03   
ejb/0l40