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 241653 - Application does not compile
Summary: Application does not compile
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 17:34 UTC by jon80
Modified: 2014-02-11 14:39 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
IDE log (67.84 KB, text/plain)
2014-02-10 17:34 UTC, jon80
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jon80 2014-02-10 17:34:03 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 8 version 6.2 running on x86
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) Client VM 24.45-b08

The following code snippet did not execute within Netbeans, although it compiled successfully within an advanced text editor i.e. TextPad.  
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author slyth_000
 */
public class FirstClass {
    
    public static void main (String... args)
    {
        int result = add(1,02);
        System.out.println(result);   
    }
    
    private static int add (int a, int b)
    {
        return a + b;
    }
    
}

I also missed a program from the recent projects menu since the last upgrade, and cannot figure out where it ended up.  I either deleted it accidentally or else it was deleted accidentally during the upgrade.  Alternatively it might be some configuration change which I am not yet aware about.
Comment 1 jon80 2014-02-10 17:34:07 UTC
Created attachment 144997 [details]
IDE log
Comment 2 Jiri Prox 2014-02-11 14:39:20 UTC
Can you please provide more info?
How did you try to run the code snippet? (as single file, as project ...)

Was there any error message?