Coupling error: class file file:/space/src/excludes_49026/nbbuild/testuserdir/var/cache/index/0.1/s17/classes/java/io/FileDescriptor.sig, source file file:/space/src/jdk7/j2se/src/windows/classes/java/io/FileDescriptor.java ----- Sig file content: ------------------------------------------- GM11;Njava.io.FileDescriptor;;Ljava.lang.Object;;; AM2;INfd;X;; AM2;Ljava.util.concurrent.atomic.AtomicInteger;NuseCount;X;; EM1;N;()()V;; EM2;N;(M200000000;INfd;)()V;; AM40019;Ljava.io.FileDescriptor;Nin;X;; AM40019;Ljava.io.FileDescriptor;Nout;X;; AM40019;Ljava.io.FileDescriptor;Nerr;X;; EM1;Nvalid;()()Z;; EM101;Nsync;()(Ljava.io.SyncFailedException;)V;; EM10a;NinitIDs;()()V;; EM0;NincrementAndGetUseCount;()()I;; EM0;NdecrementAndGetUseCount;()()I;; W; ----- Source file content: ---------------------------------------- /* * @(#)FileDescriptor.java 1.6 07/01/04 * * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.io; import java.util.concurrent.atomic.AtomicInteger; /** * Instances of the file descriptor class serve as an opaque handle * to the underlying machine-specific structure representing an open * file, an open socket, or another source or sink of bytes. The * main practical use for a file descriptor is to create a * FileInputStream or FileOutputStream to * contain it. *

* Applications should not create their own file descriptors. * * @author Pavani Diwanji * @version 1.6, 01/04/07 * @see java.io.FileInputStream * @see java.io.FileOutputStream * @since JDK1.0 */ public final class FileDescriptor { private int fd; private long handle; /** * A use counter for tracking the FIS/FOS/RAF instances that * use this FileDescriptor. The FIS/FOS.finalize() will not release * the FileDescriptor if it is still under use by any stream. */ private AtomicInteger useCount; /** * Constructs an (invalid) FileDescriptor * object. */ public /**/ FileDescriptor() { fd = -1; handle = -1; useCount = new AtomicInteger(1); } static { initIDs(); } /** * A handle to the standard input stream. Usually, this file * descriptor is not used directly, but rather via the input stream * known as System.in. * * @see java.lang.System#in */ public static final FileDescriptor in = standardStream(0); /** * A handle to the standard output stream. Usually, this file * descriptor is not used directly, but rather via the output stream * known as System.out. * @see java.lang.System#out */ public static final FileDescriptor out = standardStream(1); /** * A handle to the standard error stream. Usually, this file * descriptor is not used directly, but rather via the output stream * known as System.err. * * @see java.lang.System#err */ public static final FileDescriptor err = standardStream(2); /** * Tests if this file descriptor object is valid. * * @return true if the file descriptor object represents a * valid, open file, socket, or other active I/O connection; * false otherwise. */ public boolean valid() { return ((handle != -1) || (fd != -1)); } /** * Force all system buffers to synchronize with the underlying * device. This method returns after all modified data and * attributes of this FileDescriptor have been written to the * relevant device(s). In particular, if this FileDescriptor * refers to a physical storage medium, such as a file in a file * system, sync will not return until all in-memory modified copies * of buffers associated with this FileDesecriptor have been * written to the physical medium. * * sync is meant to be used by code that requires physical * storage (such as a file) to be in a known state For * example, a class that provided a simple transaction facility * might use sync to ensure that all changes to a file caused * by a given transaction were recorded on a storage medium. * * sync only affects buffers downstream of this FileDescriptor. If * any in-memory buffering is being done by the application (for * example, by a BufferedOutputStream object), those buffers must * be flushed into the FileDescriptor (for example, by invoking * OutputStream.flush) before that data will be affected by sync. * * @exception SyncFailedException * Thrown when the buffers cannot be flushed, * or because the system cannot guarantee that all the * buffers have been synchronized with physical media. * @since JDK1.1 */ public native void sync() throws SyncFailedException; /* This routine initializes JNI field offsets for the class */ private static native void initIDs(); private static native long set(int d); private static FileDescriptor standardStream(int fd) { FileDescriptor desc = new FileDescriptor(); desc.handle = set(fd); return desc; } // package private methods used by FIS, FOS and RAF. int incrementAndGetUseCount() { return useCount.incrementAndGet(); } int decrementAndGetUseCount() { return useCount.decrementAndGet(); } } ----- Tree: ------------------------------------------------------- private long handle ----- Coupling Error: --------------------------------------------- com.sun.tools.javac.util.CouplingAbort at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:644) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:695) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:391) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:403) at com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:414) at com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1050) at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1017) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:760) at com.sun.tools.javac.comp.Enter.complete(Enter.java:516) at com.sun.tools.javac.comp.Enter.main(Enter.java:494) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:824) at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:347) at com.sun.tools.javac.api.JavacTaskImpl.enterTrees(JavacTaskImpl.java:379) at org.netbeans.modules.java.source.usages.RepositoryUpdater.batchCompile(RepositoryUpdater.java:1450) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.updateFolder(RepositoryUpdater.java:1054) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.scanRoots(RepositoryUpdater.java:923) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.access$1500(RepositoryUpdater.java:620) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:711) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:648) at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:49) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:645) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:620) at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1107) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)