This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : RC1 ] [ JDK VERSION : 1.6.0_02 ] Hi, When I generate a mobile WS client using NB, all goes well but for arguments of type Long, or for objects with a field of type Long. The code generated in the XX_stub.java source is something like: private static Object player_toObject( player obj ) { if(obj == null) return null; Object result[] = new Object[ 7 ]; result[0] = obj.getLanguage(); result[1] = obj.getTag(); result[2] = obj.getName(); result[3] = new Long(obj.getId()); result[4] = obj.getMobileNumber(); result[5] = obj.getEmail(); result[6] = new Integer(obj.getErrorCode()); return result; } The compiler error is at the line result[3] = new Long(obj.getId()); which should be result[3] = new Long(obj.getId().longValue()); Iwan
thanks for the report, Iwan. Misk, all the wrappers seems to be wrong... private static Object myObjectWithAllTypes_toObject( myObjectWithAllTypes obj ) { if(obj == null) return null; Object result[] = new Object[ 14 ]; result[0] = new Boolean(obj.getMyBoolean()); result[1] = new Byte(obj.getMyByte()); result[2] = new Double(obj.getMyDouble()); result[3] = new Float(obj.getMyFloat()); result[4] = new Integer(obj.getMyInt()); result[5] = new Long(obj.getMyLong()); result[6] = new Short(obj.getMyShort()); ! result[7] = new Boolean(obj.getMyBooleanWrapper()); ! result[8] = new Byte(obj.getMyByteWrapper()); ! result[9] = new Double(obj.getMyDoubleWrapper()); ! result[10] = new Float(obj.getMyFloatWrapper()); ! result[11] = new Integer(obj.getMyIntegerWrapper()); ! result[12] = new Long(obj.getMyLongWrapper()); ! result[13] = new Short(obj.getMyShortWrapper()); return result; }
Created attachment 53105 [details] web project with all the types for testing
this is candidate to be fixed into RC2. The fix has to be able till Saturday night because it has to be in the branch before Sundays midnight. According to the http://wiki.netbeans.org/wiki/view/NB6HighResistance, there *must be* 24 hours delay for review. I'm available to verify it on Saturday or early Sunday. I'm adding Suchys on CC for review. Michale, provide the fix, ask someone(Suchys?) for code review, commit it to trunk, add the diff here(or link to the commit on deadock), ask for review at reviewers@netbeans, wait for QE verification, then if you have all ready you can commit to release60 branch (24 hours after the email to reviewers@netbeans).
I reviewed and put into trunk. From scenarios I tested the fix looks OK. Checking in src/org/netbeans/modules/e2e/wsdl/wsdl2java/WSDL2JavaImpl.java; /cvs/mobility/end2end/jsr172/src/org/netbeans/modules/e2e/wsdl/wsdl2java/WSDL2JavaImpl.java,v <-- WSDL2JavaImpl.java new revision: 1.24; previous revision: 1.23 done
Created attachment 53167 [details] Stacktrace during hang
I tested with All build (Product Version: NetBeans IDE Dev (Build 20071118095622)). The fix works fine.
Where can I get that latest build, so I can start using it? Iwan
Iwan, the daily build of trunk are at http://deadlock.netbeans.org/hudson/job/trunk/ Use any build from #4486.
Committed to branch release60: Checking in WSDL2JavaImpl.java; /cvs/mobility/end2end/jsr172/src/org/netbeans/modules/e2e/wsdl/wsdl2java/WSDL2JavaImpl.java,v <-- WSDL2JavaImpl.java new revision: 1.23.2.1; previous revision: 1.23
verified in release60 build Product Version: NetBeans IDE 6.0 RC2 (Build 200711201000)
verified in 60-patch1