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 113698

Summary: NB sources do not compile on Mac
Product: java Reporter: Tomasz Slota <tslota>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: jbecicka, jglick
Priority: P1    
Version: 6.x   
Hardware: All   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Tomasz Slota 2007-08-24 09:50:17 UTC
This problem has been reported by several people on the nb-dev and nb-tech mailing lists.

The build fails with a message:

-compile-default-platform:
    [mkdir] Created dir: /Users/tomslot/SUN/src/nb/java/source/build/classes
    [javac] Compiling 174 source files to /Users/tomslot/SUN/src/nb/java/source/build/classes
   [repeat] /Users/tomslot/SUN/src/nb/java/source/src/org/netbeans/api/java/source/JavaSource.java:37: com.sun.tools.javadoc.JavadocMemberEnter is 
not public in com.sun.tools.javadoc; cannot be accessed from outside package
   [repeat] import com.sun.tools.javadoc.JavadocMemberEnter;
   [repeat]                              ^
   [repeat] /Users/tomslot/SUN/src/nb/java/source/src/org/netbeans/modules/java/source/builder/TreeFactory.java:32: cannot find symbol
   [repeat] symbol  : class WildcardType
   [repeat] location: class com.sun.tools.javac.code.Type
   [repeat] import com.sun.tools.javac.code.Type.WildcardType;

.....

   [repeat]                               ^
   [repeat] Note: Some input files use unchecked or unsafe operations.
   [repeat] Note: Recompile with -Xlint:unchecked for details.
   [repeat] 100 errors
   [repeat] 53 warnings
  [nbmerge] Failed to build target: all-java/source

BUILD FAILED
/Users/tomslot/SUN/src/nb/nbbuild/build.xml:654: The following error occurred while executing this line:
/Users/tomslot/SUN/src/nb/nbbuild/build.xml:649: The following error occurred while executing this line:
/Users/tomslot/SUN/src/nb/nbbuild/build.xml:699: The following error occurred while executing this line:
/Users/tomslot/SUN/src/nb/java/source/build.xml:50: Compile failed; see the compiler error output for details.

This is a P1 since it is blocking at least 20% of developers (those using a Mac).

The problem was possibly started after this change:

User: jglick
Date: 2007/08/23 17:21:35

Removed:
   java/external/javac-api-license.txt
   java/external/javac-api.jar
   java/external/javac-impl-license.txt
   java/external/javac-impl.jar

Added:
   java/source/javacapi/external/javac-api-license.txt
   java/source/javacapi/external/javac-api.jar
   java/source/javacimpl/external/javac-impl-license.txt
   java/source/javacimpl/external/javac-impl.jar

Modified:
   java/source/javacapi/build.xml
   java/source/javacapi/nbproject/project.properties
   java/source/javacapi/nbproject/project.xml
   java/source/javacimpl/build.xml
   java/source/javacimpl/nbproject/project.properties
   java/source/javacimpl/nbproject/project.xml
Comment 1 Jan Becicka 2007-08-24 10:15:05 UTC
Fixed by tzezula
http://java.netbeans.org/source/browse/java/source/build.xml?r1=1.7&r2=1.8
Comment 2 Jesse Glick 2007-08-24 10:56:10 UTC
Fix correct.
Comment 3 Tomasz Slota 2007-08-24 11:33:08 UTC
verified.