Incorrect warning in JDK 5.0 RC

I get the following warning
warning: [unchecked] unchecked assignment to variable _cleanValue of raw type class com.globalrefund.db.psql.PsqlRow.ColumnImpl
for this statement:
column._cleanValue = null;
I think there should never be a warning when I set a reference to null (or do I miss something)

Alternatively - does it make sense for the compiler to NOT issue the warning for one particular expression that evaluates to the only value that could be determined safe?
It IS an assignment, and it IS unchecked, even tho', for this 1 particular value of the RHS, it will not cause a problem.
Even tho' for this particular RHS expression , the compiler could determine that the warning was not necessary, there are many other RHS expressions that evaluate to null where the compiler could not determine that.
If the language started incorporating special rules for these sorts of corner cases then I suggest the following would result
* The compiler would get more complex (i.e. more bugs - slower execution)
* The language spec would get more complex (i.e. more reading and understanding required)
With regard to the supplied code the actual coding "imperfection" ( I won't call it an error), is not even on this line, and at least the message gives you early warning that something is not 100% right with your code.
If you later copy and paste that loop and start assigning something else, you will heading into a danger zone.
You may have spent quite a bit some time determining that that you didn't really need the type argument on the loop variable, and it is a bit frustrating that that effort was wasted - however I would suggest that you embrace this message as a friend rather than as an enemy.

Similar Messages

  • Oracle Lite installation - 'Missing or Incorrect version of JDK' problem

    Dear Experts,
    I am attempting to install Oracle Lite 10g and when I go through the Universal Installer steps, after asking to install the demo applications, the next screen gives me 'Missing or Incorrect version of JDK'.
    I have downloaded the J2EE package from Sun and put it in a separate directory. This version is 1.4.2 and I have got the following in my environment varibles:
    PATH is 'C:\j2sdk1.4.2\bin;C:\oracle\product\10.2.0\db_1
    \NETWORK\ADMIN;C:\oracle\product\10.2.0\db_1\BIN'
    CLASSPATH is ''C:\j2sdk1.4.2\bin'
    I have Oracle 10g EE database already installed and my operating system is MS Windows 2000 service pack 4. When I navigate to 'C:\j2sdk1.4.2\bin' and type '>java -version' I get 'build 1.4.2_...'
    Many thanks for your help,
    Mark

    It appears the problem was that I had J2EE 1.4.2 and actually required J2SDK 1.4.2 i.e. the Standard edition rather than the Enterprise edition. Even though there are exactly the same files in the 'bin' directory in both versions. The installation now works.
    Mark

  • Incorrect warning for import directive with wildcard

    Some (all?) imports with wildcards seem to be getting incorrect warnings. For example, if I do:
    import flash.events.*
    I get a warning "The import flash.events.*" is not used locally, which is not true, since I am using ProgressEvent, IOErrorEvent, SecurityErrorEvent, etc. in the same file. This did not happen in FB 4.6.

    I created an account on the bugs site and no amount of searching (or using the direct link) will reveal this 'bug' entity.
    I too am having a similar difficulty (at least I think it is), though no wildcard character is involved.
    In FB7 I have a Mobile Project created fresh after installing FB7. The main application MXML type was selected within the wizard when creating the project, and that type was TabbedViewNavigatorApplication. I created a directory under the 'src' directory by the name of 'skins' and started a fresh .as file.  As quoted.  (actually, I'm going to post a screenshot as I'm incredulous that even in advanced editing mode, that a forum -> on programming and development <- seems to have no obvious way to insert formatted code and indeed ignores such tags when added in the HTML view of the editor     If that functionality is there, it's -far- from obvious or intiutive. )

  • Incorrect warning when parsing query with group by clause

    I am using SQL Developer 4.0.0.13.80 with JDK 1.7.0_51 x64 on Windows 8.1
    I have the following SQL, which works perfectly:
    select substr(to_char(tot_amount), 0, 1) as digit, count(*)
    from transactions
    where tot_amount <> 0
    group by substr(to_char(tot_amount), 0, 1)
    order by digit;
    However, SQL Developer is yellow-underlining the first line, telling me that:
    SELECT list is inconsistent with GROUP BY; amend GROUP BY clause to: substr(to_char(rep_tot_amount), 0, 1), substr(to_char(rep_tot_amount),
    which is clearly wrong.
    Message was edited by: JamHan
    Added code formatting.

    Hello,
    I also have found the same issue with the GROUP BY hint. Another problem I found is that the hint suggests to amend the GROUP BY members to add also constant values that are included in the SELECTed columns and whenever those constants include strings with spaces, it generates an invalid query. Normally, constant values won't affect grouping functions and as such they can be omitted from the GROUP BY members, but it seems SQL Dev thinks it differently.
    For example, if you try the following query:
    SELECT d.DNAME, sum(e.sal) amt, 'Total salary' report_title, 100 report_nr
    FROM scott.emp e, scott.dept d
    WHERE e.DEPTNO = d.DEPTNO
    GROUP BY d.DNAME;
    when you hover the mouse pointer on the yellow hint, a popup will show the following message:
    SELECT list inconsistent with GROUP BY; amend GROUP BY clause to:
    d.DNAME, 'Total, 100
    If you click on the hint, it will amend the group by members to become:
    GROUP BY d.DNAME, 'Total, 100;
    that is clearly incorrect syntax. You may notice that after the change the yellow hint is still there, suggesting to amend further the GROUP BY members. If you click again on the hint, you will end with the following:
    GROUP BY d.DNAME, 'Total, 100;
    , 'Total, 100
    and so on.
    I am not sure if this behaviour was already known (Vadim??), but it would be nice if somebody could file a bug against it.
    Finally when writing big queries with complex functions and constant columns, those yellow lines extend all over the select list and they are visually annoying, so I wonder if there is a way to disable the GROUP BY hint until it gets fixed.
    Thanks for any suggestion,
    Paolo

  • Ignoring Sun proprietary API warning in JDK 1.6.0_13.

    We are upgrading our application from JDK 1.5.0_17 to JDK 1.6.0_13 and we get so many warnings regarding Sun proprietary API.
    Can someone help me in telling when this API's will be removed from Sun API and is there any problem in using this API's as long as we use JDK 1.6.0_13.
    At the same time can u suggest the alternate API's which can be used in place of this.
    Warinings :
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\SSLTunnelSocketFactory.java:9:
    warning: sun.net.www.protocol.http.HttpURLConnection is Sun proprietary API and may be removed in a future release
    [javac] import sun.net.www.protocol.http.HttpURLConnection;
    [javac] ^
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\SSLTunnelSocketFactory.java:111:
    warning: sun.net.www.protocol.http.HttpURLConnection is Sun proprietary API and may be removed in a future release
    [javac] String s1 = "CONNECT " + s + ":" + i + " HTTP/1.0\n" + "User-Agent: " + HttpURLConnection.userAgent;
    [javac] ^
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\RedirectGSGRequestThread.java:160:
    warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    [javac]      s2 = "Basic " + (new BASE64Encoder()).encode(s2.getBytes());
    [javac]      ^
    Any help appreciated.

    Can someone help me in telling from which release this Sun API's will be removed. I answered that. No. Nobody can help you. What Sun say here is 'From one release to another, these classes may be removed, or they may be moved from one package to another, and it's fairly likely that their interface (method names and signatures) will change.' There's no statement there that they will be removed, and certainly no implication that there is a single release in which they will all be removed at the same time.
    So as of now we can migrate to JDK 1.6.0_13 ignoring warnings msgs. Will there be any problem in still using the same api's?I answered that too.
    Does this API's work in JDK 1.7 and from where can I download JDK 1.7?You will have to test it yourself. Google will find it for you.
    Is there any alternate API to get the user agent string of sun.net.www.protocol.http.HttpURLConnection.userAgentI answered that. You don't need it in a CONNECT command.

  • Incorrect Low Disk Space Warning from HP Support Assistant

    I have an HP Envy m7 notebook. I am getting a warning from the HP Support Assistant that the Primary Drive C:  has low disk space. However, my Windows 8.1 Properties box for the C: drive says more that 90% of the drive is free, as I guessed. Why am I getting this seemingly incorrect warning?

    Hi sheryltoo,
    Thank you for your query, I will do my best to assist you.
    I understand the HP support assistant is giving you a low disk space error, but you have plenty of free space available.
    Did the error pertain to a different drive letter other then you main drive?
    I suggest you uninstall and reinstall the  The HP Support Assistant.  If you have an older versions installed that may be why you are getting a false error.
    Please let me know the outcome.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Oracle Lite10G Installation JDK missing

    Hi , I am trying to install olite 10g downloaded recently from technet .Installation goes smoothly till it asks for the port number on oc4j Http listener . the next it gives me error message saying
    "Missing or Incorrect version of jdk " as title and
    dialog body says
    "installer could not find correct version of JDK installed on your system . mobile server requires JDK1.4.1 or higher .
    whereas i have
    C:\Documents and Settings\sathishk>java -version
    java version "1.4.2_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
    Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
    And also i checked path and classpath . both points to above mentioned version ?

    After you install the J2SDK from Sun, you will need to make sure the first entry in the PATH and CLASSPATH is the directory where the J2SDK is installed.
    It appears that the JDK you are using is coming from another directory.
    Just a Guess!!!?

  • Iplanet 6.0 JDK settings ??

    I have downloaded and installed Sun One 6.0. on a PC. It's working fine, But I can't figure out how to set the JDK? If I go to "Global Settings" then select "Configure JRE/JDK paths". I have JRE set with JDK disabled. Checking the JDK box enables me to enter the path to my JDK 1.3.08 install. Any path I type here show invalid... Message is returned with.."Incorrect Usage The JDK path does not exist".
    \Program Files\java\j2re1.3.08
    c:\program files\java\j2re...
    I even installed it under \java directory
    and get the same results...
    Grrrr... this has got to be simple and I'm just missing something.
    Thx all

    It should work just fine, all you need to specify is the
    JDK Path and leave the other two variables blank(they get set automatically based on the JDK path).
    e.g.
    JDK Path: c:/jdk1.3.1_06
    This gets set in registry files. After setting this, first start a webserver instance(don't yet restart the admin server instance) and test if it picks up the new jdk correctly and starts up fine. If the instance starts up fine, then go ahead and restart your admin server instance as well.
    Thanks
    Manish

  • It raises a mistake when I try to use ResultSet. What do I incorrectly?

    It raises a mistake when I try to use ResultSet. What do I incorrectly?
    What do I incorrectly?
    Oracle10g,JDK 1.4.2, JDBC driver version is 10.1.0.3.0
    When I try to test this:
    import java.sql.*;
    public class test{
    public static void main(String[] args) {
    Connection conn;
    try {
    conn = DriverManager.getConnection("jdbc:default:connection");
    Statement stmt = conn.createStatement();
    ResultSet rs;
    rs = stmt.executeQuery("SELECT 'This is the test.' FROM dual");
    while(rs.next()){
    System.out.println(rs.getString(1));
    catch (SQLException e) {
    e.printStackTrace();
    I receive these messages:
    java.sql.SQLException: Inadmissible index of a column
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.OracleResultSetImpl.getString(Native Method)

    It raises a mistake when I try to use ResultSet. What
    do I incorrectly?
    What do I incorrectly?
    Oracle10g,JDK 1.4.2, JDBC driver version is
    10.1.0.3.0
    When I try to test this:
    import java.sql.*;
    public class test{
    public static void main(String[] args) {
    Connection conn;
    try {
    conn =
    DriverManager.getConnection("jdbc:default:connection")
    Statement stmt = conn.createStatement();
    ResultSet rs;
    rs = stmt.executeQuery("SELECT 'This is the test.'
    FROM dual");
    Do you have a column named "This is the test" in your "dual" table ???? O_o
    while(rs.next()){
    System.out.println(rs.getString(1));
    catch (SQLException e) {
    e.printStackTrace();
    I receive these messages:
    java.sql.SQLException: Inadmissible index of a
    column
    at
    oracle.jdbc.driver.DatabaseError.throwSqlException(Dat
    abaseError.java:158)
    at
    oracle.jdbc.driver.DatabaseError.throwSqlException(Dat
    abaseError.java:206)
    at
    oracle.jdbc.driver.OracleResultSetImpl.getString(Nativ
    e Method)

  • Error opening files on a server "Application is missing" for every file type

    Hello,
    I have got quite a strange problem with Maverick and a server (Isilon NAS).
    When we connect to this server, with SMB or CIFS, it's impossible to open a file because "The application is missing". They are .PDF or .XLSX files mainly, so nothing exotic.
    If we copy those files locally we are able to open them. The problem is only happening on two new MacBook Pro, we have roughly 40 other various Macs without this bug.
    It's possible to "fix" the problem temporary by connecting to the same server, but on another share : smb://my_server/one_share -> "The application is missing", smb://my_server/another_share -> Working as expected. But next time "another_share" won't work, but "one_share" will...
    We tried to troubleshoot the problem but it looks like a really rare bug, we are going to install the Combo Updates to see if it helps.
    Any suggestion or idea is welcomed.
    Have a nice day

    Hi
    Did you try some steps given in the following article
    "Some files on the server may be missing or incorrect" Warning Message
    See if that helps. Do let me know if you have any question.

  • Unicode conversion on Informix

    Hello All,
    We are doing unicode conversion on SAP ECC 5.0 system running on Informix database.
    We want to use the table split method. In the table split preparation step, we give the file with the large tables and the number of splits the file is as below:
    aablg%3
    auak%2
    aufk%9
    bkpf%14
    bsad%12
    bsak%14
    bsas%2
    bse_clr%4
    bsis%17
    cdcls%9
    cdhdr%6
    cobk%9
    cobrb%2
    The preparation step fails with error
    WARNING: build_dbdiff_list(): description for "MLICHECK" may be missing or incorrect
    WARNING: build_dbdiff_list(): description for "SCI_TEMPT" may be missing or incorrect
    WARNING: build_dbdiff_list(): description for "TRDIR" may be missing or incorrect
    ERROR: aablg is not a DB table
    ERROR: couldn't read file "Split/table_splitter_R3ldctl.txt"
    ERROR      2011-03-25 15:58:31
               CJSlibModule::writeError_impl()
    CJS-00396  Call to R3ldctl failed. Return code: 2
    Any clue why this could be happening??
    Thanks!

    HI,
    Thnks for the update.
    It got solved.
    Cheers,
    Vamshi T

  • Could not connect to host localhost on port 21212

    Hi Experts,
    I am trying to install SAP NW 2004s SR1 with Linux [Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
    , Kernel (2.6.9-42.EL)] and Oracle 10.2. I am getting the following error:
    =============
    SAP NetWeaver
    SAPinst Installation GUI
    Could not connect to host localhost on port 21212
    java.net.ConnectException:Connection refused
    Host: localhost
    Port 21212
    ==================
    I am using SDK 1.4.2_16.
    Kindly  help me to resolve go ahead in installation.
    Regards.......Yogesh

    Hi Yogesh,
    The error comes if  :-
    1. Incorrect version of JDK.
    2. Java_Home is not set.
    3.The port is already as an old binary is using it.
    Please check on the above lines.
    Thanks
    Pankaj

  • Underlying task failed on exit?

    I've recently been having troubles with my main drive, which is a raid mirror of two 250GB Maxtor drives which were pulls from G5's. when I would startup the computer, startup would take forever...it would just sit on the grey apple screen for minutes before starting up. when it did start up, before I'd have a chance to open anything at all, the screen would fade to the blue shutting down screen.
    after getting started up on another drive I had as a scratch disk, I got a "device was removed incorrectly" warning, and my raid disappeared. I could see it in Disk Utility, but it would not mount. I could not verify it, and I couldn't repair it. it would report "Underlying task failed on exit."
    I somehow got the raid back online, but I've not yet been successful booting on it. today it mysteriously disconnected itself again, and I found that i could verify the disk. I tried that, and it said the disk needed minor Volume header repair. I repaired that, and tried to set up the raid, but it failed, again due to "Underlying task failed on exit."
    does anyone have any insight as to what is going on, or what i can do?
    Zack

    Since you do not say how the RAID is mounted, I am going to guess it is in the G5 internal dual bays. In that configuration I have seen problems between two Maxtors in the past. If it was my Mac I would remove the RAID and use one of the Maxtor 250GB drives as my boot drive. I would remove the second Maxtor while setting up the first one. After the first drive is configured as the boot drive I would install the second Maxtor and reformat it. This fixed my problem with two Maxtor SATA hard drives in the Apple bays in a G5.
    When using the Apple SATA bus I have not seen a huge improvement using two drives as a striped RAID set vs using a single boot drive with a second drive for user files. The only time the RAID will be faster is when copying or duplicating large files on the boot disk and I do not find this to be a frequent activity for me.
    I hope this helps,
    Michael
    =========

  • Problem with Tablet version of website and javascript.

    When I export my site as HTML and upload using FTP client, desktop and phone versions appear correctly but tablet version seems to have dropped javascript. Is there a solution for this? Tablet version appeared correctly yesterday and I haven't made any changes to that part of the Muse file, but tablet site isn't working today. Thanks for your help.
    Update: I created a new folder on my desktop for the exported HTML files, re-exported new HTML files from Muse, re-published with FTP client, and tablet site seems to be working okay. If anyone has a more efficient or sensible option for this issue please comment. Thanks again.
    This post: "Some files on the server may be missing or incorrect" Warning Message was helpful in my troubleshooting. I used my best guess ^ in attempting one of the solutions he described.
    Message was edited by: Alicia Marcinko

    Hi Alicia,
    Try using Muse inbuilt FTP client to upload the files.
    Regards,
    Neha

  • Reinstalling Crystal errors

    Hi,
    I'm getting an error when I try to reinstall Crystal on my computer.  "The Product key code "actual key shown" is not valid or has expired."  I've verified the key and it is correct.  Any suggestions?

    Hi,
    Give it a try by
    Delete the following registry keys:
    WARNING: This resolution can be applied if Crystal Reports  is the only software installed on the computer that uses the Business Objects directories, files and registry keys. For example, Crystal Analysis, Crystal Enterprise and BusinessObjects Enterprise are applications that may share the same directories, files and registry keys. Removing these directories, files and registry keys may cause other software to function incorrectly
    WARNING: The following resolution involves editing the registry. Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall the Microsoft Windows operating system. Use the Registry Editor at your own risk. HELP: For information on how to edit the registry key, view the 'Changing Keys And Values' online Help topic in the Registry Editor (Regedit.exe).
    RECOMMENDATION: It is strongly recommended that you make a backup copy of the registry files (System.dat and User.dat on Win9x computers) before you edit the registry.
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects u2022 HKEY_CURRENT_USER\Software\Business Objects u2022 HKEY_USERS\S-#-#-##-...-####\Software\Business Objects (The number signs (#) represent a series of numbers that are different on each computer.)
    NOTE: After making changes to the registry, restart the affected service or application as required.
    Now reinstall the CR.
    Hope it helps!!
    Regards,
    Amit

Maybe you are looking for

  • Automatic multiple batches creation during GR

    Hi Experts, I have a problem, wherein in a PO i m entering 1 line with a material code, but vendor sends total quantity in multiple lots specified in invoice.My query is how can i do GR for multiple lots in single transaction? Thanks KDS

  • ARE YOU USING DIGITONE CALL BLOCKER ?

    Have Verizon Freedom Essentials Verizon Call Assist works great on my Desktop Would appreciate comments from anyone who is presently using Digitone Call Blocker 10 What equipment do you use with it...Brand names? Tom Freedom Essentials, QIP 7100 1,Bo

  • Plant sepcific number ranges

    Hi all, My client is having 3 plants under one company code at different locations. He is requesting for different number ranges for all FI postings  to plant specific number ranges. Is is possible to define different number ranges for each plant wis

  • FontExplorer X and Pages?

    Hello, I just installed iWork '08. I want to create a flyer template for a client so they don't have to learn Illustrator. I'm using Linotype FontExplorer X to manage my fonts, however, the only fonts listed in Pages are the System fonts. Without sen

  • Need Help  Endeca Dev to QA build process

    Hi, Could someone please guide me on how to move or publish a project from DEV to QA environment, along with the merchansising rules and page_builder_templates? Thanks, Shwetha