Sitemap

Amicuk Programming Answers

Bug or Feature in 1.5.0?

-0001-11-30   Views:0

Advertisement

Bug or Feature in 1.5.0? My exsisting code behaves different in 1.4.x. and 1.5.0 Runtime environment. I have roughtly the following code: import java.util.*; // any java.sql.* is NOT importet   Activitylog al = whatever... // init   Date lastInvDate

Bug or Feature in 1.5.0?
My exsisting code behaves different in 1.4.x. and 1.5.0 Runtime environment.
I have roughtly the following code:
import java.util.*;
// any java.sql.* is NOT importet
  Activitylog al = whatever... // init
  Date lastInvDate = al.getDate();
  Date invDate     = invoice.getInvoiceDate();
  if(lastInvDate.compareTo(invDate) < 0) {  // <- Exception hereException in thread "Thread-50" java.lang.ClassCastException: java.sql.Date
     at java.sql.Timestamp.compareTo(Unknown Source)
     at ***********.validateCancelledAccount(ValidateInvoice.java:1195)
al.getDate() Sourcecode in Activitylog: public java.util.Date getDate() {
but initial the Date inside Activitylog was created by
java.sql.Resultset rs = whatever... // init
Date date = rs.getTimestamp(3);With 1.4.X the Code works as i expected.
lastInvDate.compareTo(invDate) < 0is calling java.util.Date.compareTo(java.util.Date)
but with 1.5.0_04
lastInvDate.compareTo(invDate) < 0 is calling java.sql.Timestamp.compareTo(java.sql.Timestamp) and leads
to the ClassCastException
Is it a bug or a feature of 1.5.0?

The replay answer
Advertisement
Well it looks like your exact problem is listed on that incompatibility list:
JDBC - As of 5.0, comparing a java.sql.Timestamp to a java.util.Date by invoking compareTo on the Timestamp results in a ClassCastException. For example, the following code successfully compares a Timestamp and Date in 1.4.2, but fails with an exception in 5.0:
aTimeStamp.compareTo(aDate) //NO LONGER WORKS
This change affects even pre-compiled code, resulting in a binary compatibility problem where compiled code that used to run under earlier releases fails in 5.0. We expect to fix this problem in a future release.
For more information, see bug 5103041.
Michael Bishop

Go to See the other 7 answers

BUGS and FEATURES REQUESTED. Please add to it.

Category:DefaultRelease time:2015-10-11Views:130

I've been using the z10 for the past couple weeks and wanted to start a thread of comprehensive Bugs and Features Requested. I've labeled Bugs by letters (A,B,C...) and Features Requested by numbers (1, 2, 3...) so that others can add sequentially. B[More]

Drag File From Safari Download Window to Other Volume - Moves not Copies File - Bug or Feature ?

Category:DefaultRelease time:2015-10-11Views:130

Hi, Appreciate comment on what I thought was unusual Mac OS behavior.  Running Safari 5.1.5, OS 10.6.8. Mac OSs in my experience copy a file when it is dragged and dropped to another volume/drive. (Let's leave classic desktop out of this.) It may be[More]

Bug or feature : Using portlets with edit mode on a page in the portal

Category:DefaultRelease time:2015-10-11Views:130

Hi, i am using Workshop 8.1 (GA release july) and i have discovered a bug (or a feature) with respect to the beta version. i have created a simple portlet with a view mode and an edit mode. When i place the portlet on the very first page of a one boo[More]

Bug list/feature observations for BB10 on Z10

Category:DefaultRelease time:2015-10-11Views:130

BUG LIST/FEATURE OBSERVATIONS - Z10/BB10: 1. CRITICAL granular control of notifcations/alerts e.g. a different sound/volume/vibration per mailbox or alert type has been completely removed in BB10 and needs to be reinstated as an urgency 2. support fo[More]

Is this BUG or Feature of APEX 4.0.1 - Any expert please help to answer

Category:DefaultRelease time:2015-10-11Views:130

Try this to stimulate the BUG or Feature - Development - 1. Create Basic Master Detail with tabular form 2. Create a basic LOV and display NULL -> RETURN NULL - Run - 1. Run the Page click "ADD ROW" 2. Do not enter any data into the tabular 3[More]

Bug or feature: Finder's sidebar and shared drives

Category:DefaultRelease time:-0001-11-30Views:130

I don't know if this is a bug or an incomplete feature. I have a Windows fileserver on the network. In Finder if I go to afp://<ipaddress> and authenticate with name and password I get a window with the list of available Apple shares. So far so good[More]

BUG or Feature?   Width & Height in Top Bar only in %, not in Pixel no Chance to change this

Category:DefaultRelease time:-0001-11-30Views:130

Hello --- First: Please, im very sorry for my bad spelling - english is not my native language! Hope u can understand, what i mean. If it sounds bad or yelling someone - its not my intention! --- My Question: If i do Strg+T with a layer (ie. image or[More]

Bug or feature? -- Unconditional branch using "Go To Page &P12_PREV_PAGE."

Category:DefaultRelease time:-0001-11-30Views:130

I have used unconditional branch "Go To Page &P12_PREV_PAGE." successfully for updating a table record page and then returing to the previous page stored in the P12_PREV_PAGE item. But the same approach failed when I deleted a table record p[More]

Bug or feature limitation: can't pin header on Phone version of site

Category:DefaultRelease time:-0001-11-30Views:130

Hi, Check out this file. Look at it in phone view. Preview and note that I can't pin the header/nav. Bug or feature limitation? Dropbox - MicrositeRedesign04.muse.zip DaveIt isn't a bug. It is a limitation of mobile browsers. Pinning isn't supported[More]

Bug or Feature in 1.5.0?

Category:DefaultRelease time:-0001-11-30Views:130

Bug or Feature in 1.5.0? My exsisting code behaves different in 1.4.x. and 1.5.0 Runtime environment. I have roughtly the following code: import java.util.*; // any java.sql.* is NOT importet   Activitylog al = whatever... // init   Date lastInvDate[More]

Bug or feature?. Can`t input symbol in inputfield in webdynpro screen.

Category:DefaultRelease time:-0001-11-30Views:130

Hi all. Sometimes in EP after open webdynpro sreen inputfield available for input (focused field is yellow), BUT cursor is not visible in field and i can`t write text. I try open screen without EP and can`t view this bug. Maybe couse in EP? SAP Netwe[More]

Hot
Hi Friends, I have a table defaulted to 4 rows. I have a add button to add a new row in the table. When i have already 4 rows in table, and when i click add its adding that 5th row correctly( and i used set_lead_selection for this new row ). But i wa [More]
I would like to download photos from my new iMac but I am unable to see my Generation 2 Apple TV under the left-hand tab column in iTunes 10.6.1.  There is no mention of Apple TV under the iTunes Preferences.  I am unable to download movies to my App [More]
Hi All, The requirement is: Create another infotype during some infotype creation. Two options I could think of are: 1. Create using BADI HRPAD00INFTY - But we should not commit inside badi to prevent incomplete data getting updated in database (from [More]
In Scott Kelby's "Adobe Photoshop Lightroom Book for Digital Photographers" he describes a process to automate sharpening in Photoshop, (chapter 5, page 218).  It involves creating an "Action" in Photoshop that can automatically sharpe [More]
hi i developed very simple JSF application.I deployed using tomcat web server and its working fine.But next i tried to deploy using jboss app server,i am not getting the desired output. can anybody tell me what went wrong?should i need to add any ext [More]
Hi,  I am not able to remove " (double quotes) from a sting. I am using replace function in webi but getting error. example sting: Yellow stone"discovery" i have tried like this: =replace([varible];""";"")  but gett [More]
Hi I am not experiened on integrating/consuming Peoplesoft functionality from external system/application/BPEL/OSB. What i understood after reading few messages that Peoplesoft Intergration Broker can be used to expose Peoplesoft component interface [More]
Hi Guys, I am facing a unique problem. All services in INFRA and AS are running fine. But the moment I start "OracleORA_ASASControl" and "OracleORA_InfraASControl" services, application server goes sluggish all processes seems to halt. [More]
Hi With T Code MM02 the screen is displayed which has Field Material . In This i want to search all the material Like Raw Material , Semi Finished and finished .When i press F4 to search material , the next screen is Initial Class First fiels is of C [More]
Hello, I want to create a program that gets a location of a file (string) and uploads the file on [http://imageshack.us] and returns the address of the uploaded picture. I know how to use sockets , I can create a socket that connects to [http://image [More]