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.

Bug 143095 - The cpuManufacturer does not correctly recognized for Solaris 10
Summary: The cpuManufacturer does not correctly recognized for Solaris 10
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: Registration (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 17:45 UTC by mesnik
Modified: 2009-02-19 20:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mesnik 2008-08-06 17:45:50 UTC
Here is the code for Solaris CPU Manufacturer. 
 private String getSolarisCpuManufacturer() {
        // not fully accurate, this could be another manufacturer (fujitsu for example)
        if ("sparc".equalsIgnoreCase(System.getProperty("os.arch"))) {
            return "Sun Microsystems, Inc";
        }

        // if we're here, then we'll try smbios (type 3)
        return getSmbiosData("3", "Manufacturer: ");
    }
However it is needed to check the paramter "4" to get CPU information.
-----------------
-->/usr/sbin/smbios -t 4
ID    SIZE TYPE
4     66   SMB_TYPE_PROCESSOR (processor)

  Manufacturer: AMD
  Version: AMD               
  Location Tag: CPU1    
..
I checked on "SunOS 5.11 snv_79 i86pc i386 i86pc".
Comment 1 mslama 2008-09-19 14:29:32 UTC
I filed issue #6750389 into Bugtraq against JDK. I will update our code once it will get fixed.
Comment 2 mslama 2008-11-11 14:13:51 UTC
Got fix from JDK.
Comment 3 mslama 2008-11-11 15:09:34 UTC
core-main #9fa0bcf643a9
Comment 4 Quality Engineering 2008-11-12 05:00:51 UTC
Integrated into 'main-golden', will be available in build *200811120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9fa0bcf643a9
User: Marek Slama <mslama@netbeans.org>
Log: #143095: Fix cpuManufacturer retrieval.